Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.