bob_the _builder Posted January 21, 2009 Share Posted January 21, 2009 Hi, Is there another way to replace the following code breaking it from the body tag? onLoad="AjaxRequest('main','./includes/eventdisplay.php?id=0');AjaxRequest('menu','./includes/eventlist.php?id=0')" Thanks Quote Link to comment https://forums.phpfreaks.com/topic/141728-solved-onload/ Share on other sites More sharing options...
Zane Posted January 21, 2009 Share Posted January 21, 2009 <br /> window.onLoad = function() {<br /> AjaxRequest('main','./includes/eventdisplay.php?id=0');<br /> AjaxRequest('menu','./includes/eventlist.php?id=0');<br /> }<br /> Quote Link to comment https://forums.phpfreaks.com/topic/141728-solved-onload/#findComment-741957 Share on other sites More sharing options...
bob_the _builder Posted January 21, 2009 Author Share Posted January 21, 2009 oh thats simple .. Thank you Quote Link to comment https://forums.phpfreaks.com/topic/141728-solved-onload/#findComment-741959 Share on other sites More sharing options...
bob_the _builder Posted January 21, 2009 Author Share Posted January 21, 2009 Hi Is there any obvious reason the code above wouldnt work, as it works fine using onload in the body tag..? Seems to look fine Thanks Quote Link to comment https://forums.phpfreaks.com/topic/141728-solved-onload/#findComment-741975 Share on other sites More sharing options...
Zane Posted January 21, 2009 Share Posted January 21, 2009 No reason to double post man... What exactly isn't working about it... it doesn't load at all? Quote Link to comment https://forums.phpfreaks.com/topic/141728-solved-onload/#findComment-741987 Share on other sites More sharing options...
bob_the _builder Posted January 21, 2009 Author Share Posted January 21, 2009 Hi, Yes sorry about that, tried to remove the solved but it didnt and asumed people wouldnt take notice being marked. Nothing loads, as if the onLoad doesnt exist... Thanks Quote Link to comment https://forums.phpfreaks.com/topic/141728-solved-onload/#findComment-741990 Share on other sites More sharing options...
Zane Posted January 21, 2009 Share Posted January 21, 2009 change it to this <br /> window.onLoad = function() {<br /> alert('Is it the AJAX function?');<br /> AjaxRequest('main','./includes/eventdisplay.php?id=0');<br /> AjaxRequest('menu','./includes/eventlist.php?id=0');<br /> alert("Yep, it's definitely the AJAX function");<br /> }<br /> and see if it does anything Quote Link to comment https://forums.phpfreaks.com/topic/141728-solved-onload/#findComment-741992 Share on other sites More sharing options...
bob_the _builder Posted January 21, 2009 Author Share Posted January 21, 2009 No prompts at all.. Odd, The code is in the head tags, and removed from the body onLoad. Quote Link to comment https://forums.phpfreaks.com/topic/141728-solved-onload/#findComment-741993 Share on other sites More sharing options...
RichardRotterdam Posted January 21, 2009 Share Posted January 21, 2009 change onLoad to onload in undercast and it should work fine Quote Link to comment https://forums.phpfreaks.com/topic/141728-solved-onload/#findComment-741994 Share on other sites More sharing options...
Zane Posted January 21, 2009 Share Posted January 21, 2009 change onLoad to onload in undercast and it should work fine That is just crazy enough to work...that's my bad Quote Link to comment https://forums.phpfreaks.com/topic/141728-solved-onload/#findComment-741995 Share on other sites More sharing options...
bob_the _builder Posted January 21, 2009 Author Share Posted January 21, 2009 Wow that worked.. Didnt think the letter case made any difference. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/141728-solved-onload/#findComment-741996 Share on other sites More sharing options...
juliston Posted January 27, 2009 Share Posted January 27, 2009 thanks for the info. It was also useful to me. Quote Link to comment https://forums.phpfreaks.com/topic/141728-solved-onload/#findComment-747313 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.