hi alan, im confused? i only have a onRequest:function(), in the first file and thats fine. i have no issues there? the problem is on the second page (ajaxtest2.php) there i want a HTML request after the onCoplete thing instead of the alert....
thank you randy --- On Fri, 8/4/11, Alan Chandler <[email protected]> wrote: From: Alan Chandler <[email protected]> Subject: Re: [Moo] beginner problem with a countdown script calling a HTML.Request To: [email protected] Date: Friday, 8 April, 2011, 22:08 On 08/04/11 22:51, Randy Tomlinson wrote: > hello all, > > i am new to mootools and already love it! but unfotunately i am > strugling with something that probably is a "ridiculous" problem. i am > currently trying to create a little game. inside this game we have > buildings. i click on a link and i pass a variable to another page which > starts a countdown. after this countdown it should call a PHP page (does > a mysql query with these variable) i have tried for about two days and > just can't figure it. i am aware i have actually everything i need > inside my first page, calling a HTML request for a second page but i > just can't implement this into my second page. god knows why this wont work. > > here is a link with a live demo. if u click on the link it passes the > id=1 to ajaxtest2.php and then inside there...anyway, instead of the > alert after the countdown i want to call a HTML request > > http://www.randytomlinson.com/test/ajaxtest.php > > the 3 files are here in .rar package to download. please someone can > help me? i would be extremely relieved and happy as i tried for 2 days > and did i mention i have read docus on the mootools site? > > http://www.randytomlinson.com/test/test.rar > > thank you very much > randy > > ps: i was even considering to pay 5$ per peypal if one helps me... > The problem seems to me that the javascript has an error in it. the onRequest:function(), line is the one that is wrong. Firstly you don't need it, it does nothing but if you did the syntax would be onRequest:function() {}, ie the function needs a body. -- Alan Chandler http://www.chandlerfamily.org.uk
