Jump to content

.onload support


cssfreakie

Recommended Posts

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. :D

?action=dlattach;attach=13995;image

 

 

[attachment deleted by admin]

Link to comment
https://forums.phpfreaks.com/topic/228464-onload-support/
Share on other sites

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.