Displaying 2 results from an estimated 2 matches for "sub_focus_id".
2006 Mar 01
1
Accessing AJAX''ed elements via javascript
Is there a way to get access (via javascript) the page elements that
were populated with AJAX (observe_field)? If you look at my source I
have:
<select name="resource[sub_focus_id]"
id="resource_sub_focus_id"></select>
But the actual select menu is filled with options because I used the
observe_field to fill in the options. Now I want to be able to access
those options.
Can I get access to these?
Seth Buntin
-------------- next part ----...
2006 Mar 02
0
Help with this comparison and loop
I am sending this information:
<%= observe_field "resource_focus_id",
:frequency => 0.25,
:url => { :action => :add_sub_focus},
:with => "''focus_id=''+ value +
''&sf_id=#{@resource.sub_focus_id}''",
:update => "resource_sub_focus_id" %>
Which turns out to be:
<script type="text/javascript">
//<![CDATA[
new Form.Element.Observer(''resource_focus_id'', 0.25, function(element,
value) {new Ajax.Updater(''re...