anonīms Posted April 14, 2011 Report Share Posted April 14, 2011 Kas varētu būt par iemeslu, ka vienkārša fja var content_height = $("#popup_block #iframe_popup").height(); alert(content_height); caur firebug palaižot iet, bet caur webu alerts izmet "NULL" ? Quote Link to comment Share on other sites More sharing options...
0 xPtv45z Posted April 14, 2011 Report Share Posted April 14, 2011 Viens no iemesliem, ka webā tu javascript izsauc ātrāk, nekā parādās attiecīgais elements. Quote Link to comment Share on other sites More sharing options...
0 codez Posted April 14, 2011 Report Share Posted April 14, 2011 pamēģini webā: $(function(){ var content_height = $("#popup_block #iframe_popup").height(); alert(content_height); }); Quote Link to comment Share on other sites More sharing options...
0 anonīms Posted April 14, 2011 Author Report Share Posted April 14, 2011 (edited) xPtv45z, pārbaudīšu tavu variantu. codez, es to daļu vnk nekopēju iekšā, jo neuzskatīju par svarīgu. EDIT: tomēr tas, ka pirms vai pēc arī nav īstais, jo tas arī tika notestēts. Vēl kādi varianti? Edited April 14, 2011 by anonīms Quote Link to comment Share on other sites More sharing options...
0 daGrevis Posted April 14, 2011 Report Share Posted April 14, 2011 jQuery ir pieejams? Ja nav, vari izmantot jQuerify Bookmarklet! Labojums: Fu, ko sajaucu... Bet varbūt kādam links noderēs. Quote Link to comment Share on other sites More sharing options...
0 codez Posted April 14, 2011 Report Share Posted April 14, 2011 visdrīzāk tev nav vēl izveidots tas objekts. Bez dziļāka konteksta, kā tev kas tiek veidots, grūti pateikt. Quote Link to comment Share on other sites More sharing options...
0 wintermute Posted April 14, 2011 Report Share Posted April 14, 2011 Varbūt pienācis laiks atmest alert() un sākt izmantot console.log() kā lielam puikam ? Quote Link to comment Share on other sites More sharing options...
0 briedis Posted April 14, 2011 Report Share Posted April 14, 2011 hmm? $(document).ready(function(){ }); ? Quote Link to comment Share on other sites More sharing options...
0 indoom Posted April 15, 2011 Report Share Posted April 15, 2011 briedis, $(document).ready(function(){ }); ir tas pats kas $(function() { }); Quote Link to comment Share on other sites More sharing options...
0 daGrevis Posted April 15, 2011 Report Share Posted April 15, 2011 ...jā, tas ir "short-hand's". Quote Link to comment Share on other sites More sharing options...
0 briedis Posted April 15, 2011 Report Share Posted April 15, 2011 brrr, jāsāk izmantot :D Quote Link to comment Share on other sites More sharing options...
Question
anonīms
Kas varētu būt par iemeslu, ka vienkārša fja
caur firebug palaižot iet, bet caur webu alerts izmet "NULL" ?
Link to comment
Share on other sites
10 answers to this question
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.