Re: Populating a selectTag using jQuery AJAX

2008-09-18 Thread peterhf
First, thank you both, teknoid and hydra12, for your contributions. They got me headed in the right direction. BTW, this version of the JavaScript only displays the xml text in an alert for testing purposes. Second, this is working for me:

Re: Populating a selectTag using jQuery AJAX

2008-09-17 Thread hydra12
In your controller, you need to $this->set('xml',$xml); Set the layout to be blank (1.2 has an ajax layout that would work for this, but I don't know if 1.1 does or not). You need a view called get_events that does this: Your jquery is calling Attendance/get_events, so there has to be a view ca

Re: Populating a selectTag using jQuery AJAX

2008-09-17 Thread teknoid
Perhaps I didn't look at your code very closely, but after you've made the xml string ($xml) what happens? Shouldn't your action output (return) that xml? I'm not sure if 1.1 has the ability to use RequestHandler to respond as xml, otherwise you could just make an empty layout, which would only d

Populating a selectTag using jQuery AJAX

2008-09-17 Thread peterhf
Using: CakePHP 1.1.19.6305 jquery-1.2.6.min.js In the view: select a campaign: selectTag( 'Campaign/CampaignID', $options_C, null, array( 'onchange' => 'display_select_event()','id' => 'select_campaign' ), null, true, false ); ?> In the JavaScript: function display_select_event() { . . .