sandis_m Posted April 1, 2010 Report Share Posted April 1, 2010 Jokus pie malas. Viss nopietni -_- Tiek izmantots jQuery. Javascript: <script language="javascript"> function jauns_logs(identifikators) { $(document).ready(function() { $.blockUI({ message: $('#jaunslogs'), css: { width: '520px', } }); $('.close').attr('title','Click to unblock').click($.unblockUI); }); } </script> Un diasplayed none div's, kurš pēc <a href="#" onclick="jauns_logs('1');">spied te</a> nospiešanas parādās. <div style="display:none;" id="jaunslogs"> Chau </div> Kā var pēc tā Chau dabūt identifikatoru? Es tiešām esmu nūģis javaskriptā. Quote Link to comment Share on other sites More sharing options...
waplet Posted April 1, 2010 Report Share Posted April 1, 2010 identifikatoru kam? div'am? maybe parent? , hmm es nezinu ko es te muldu :D Quote Link to comment Share on other sites More sharing options...
sandis_m Posted April 1, 2010 Author Report Share Posted April 1, 2010 identifikatoru kam? div'am? maybe parent? , hmm es nezinu ko es te muldu :D Nu ķipa echo identifikators, bet es nezinu kā javaskriptā. Quote Link to comment Share on other sites More sharing options...
2easy Posted April 1, 2010 Report Share Posted April 1, 2010 php echo vietā ir js alert(), ja tu to domāji Quote Link to comment Share on other sites More sharing options...
sandis_m Posted April 1, 2010 Author Report Share Posted April 1, 2010 php echo vietā ir js alert(), ja tu to domāji Man nevajag alertus. Es biju domājis tā,ka to identifikatoru, kas tika piešķirts tai 'jauns_logs' funkcijai, viņu itkā echo aiz Chau <div style="display:none;" id="jaunslogs"> Chau [identifikators te] </div> Quote Link to comment Share on other sites More sharing options...
waplet Posted April 1, 2010 Report Share Posted April 1, 2010 html(); html(identifikaators); Quote Link to comment Share on other sites More sharing options...
2easy Posted April 1, 2010 Report Share Posted April 1, 2010 document.getElementById("jaunslogs").innerHTML += "blabla identifikators"; Quote Link to comment Share on other sites More sharing options...
sandis_m Posted April 1, 2010 Author Report Share Posted April 1, 2010 (edited) document.getElementById("jaunslogs").innerHTML += "blabla identifikators"; Paldies.Izdevās. Dīvaini, kāpēc man likās, ka jābūt kaut kam līdzīgam echo variable.lol Edited April 1, 2010 by who_i_am Quote Link to comment Share on other sites More sharing options...
waplet Posted April 1, 2010 Report Share Posted April 1, 2010 safanojies par php tāpēc :D Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.