On 8 Oct 2008, at 14:46, Jay Pangmi wrote:
> > Frederick Cheung wrote: >> On 8 Oct 2008, at 13:32, Jay Pangmi wrote: >> >>>>> neither any error is shown it happens like as if nothing is set to >>> http://localhost:3000/user/online_booking then it works but if i >>> open >>> the index page first which will be http://localhost/user and open >>> the >>> page where these combo boxes are with a link in the index page, its >>> then >>> when the second combo box stops getting updated. thnx >> >> What I'm trying to get you to pinpoint is where it breaks when it >> breaks, or to put it another way, does it fail because: >> - changing the combo box doesn't fire an ajax request >> - changing the combo box fires an ajax request with incorrect >> parameters >> - the controller screws something up >> - the page does the wrong thing with the response from the controller >> >> Your first step has to be to identify which of the above are >> happening >> (use firebug etc... to see what is happening) >> >> Fred > > I'm using aptana studio for this and i'm using aptana browser where at > least after doing something the updating thing works but when i try > the > same in IE or firefox, no matter how i load the page second combo box > doesn't gets updated at all. > By the way i checked in the error console after i load the page in > firefox by directly passing http://localhost:3000/user/online_booking > there was 'form is not defined' heree is the extracted line as i Assuming it was "Form is not defined", then it means that the prototype javascript library is not being loaded (see javascript_include_tag) Fred > > couldn't make any sense of it: > new Form.Element.EventObserver('great_walks', function(element, value) > {new Ajax.Updater('campsites_list', '/user/update_campsites', > {asynchronous:true, evalScripts:true, parameters:'id=' + value + > '&authenticity_token=' + > encodeURIComponent('596f343332f1b5ff9a9bcd36fe9545a71a293677')})}) > > thanks. > -- > Posted via http://www.ruby-forum.com/. > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

