cssfreakie Posted February 22, 2011 Share Posted February 22, 2011 Hi all, i am running netbeans and i got a little warning mark on the .onload function in a little script i have. .onload is part of the jquery framework. Does anyone know what i should be using instead or any other advise? Sorry for all my asking but i am a complete noob in javascript. [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/228464-onload-support/ Share on other sites More sharing options...
trq Posted February 22, 2011 Share Posted February 22, 2011 onload is not part of the jQuery framework. Can we see your code. Link to comment https://forums.phpfreaks.com/topic/228464-onload-support/#findComment-1178062 Share on other sites More sharing options...
cssfreakie Posted February 22, 2011 Author Share Posted February 22, 2011 yeah sure. <script type="text/javascript"> $.ajaxSetup ({ cache: false }); var ajax_load = "<img class='loading' src='images/wait.gif' alt='loading...' />"; // load() functions var loadUrl = "script.php"; $("#load_basic").click(function spitOut(){ $("#result").html(ajax_load).load(loadUrl); // <<<< that is the .load which results ina warning setTimeout(function(){spitOut();},5000); //re run it }); </script> edit: i should have said .load instead of onload Link to comment https://forums.phpfreaks.com/topic/228464-onload-support/#findComment-1178068 Share on other sites More sharing options...
trq Posted February 22, 2011 Share Posted February 22, 2011 I would suggest this is a Netbeans bug. Link to comment https://forums.phpfreaks.com/topic/228464-onload-support/#findComment-1178074 Share on other sites More sharing options...
cssfreakie Posted February 22, 2011 Author Share Posted February 22, 2011 I would suggest this is a Netbeans bug. okay cool, thanks a lot Thorpe than this one is solved i guess cheers! Link to comment https://forums.phpfreaks.com/topic/228464-onload-support/#findComment-1178295 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.