Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #7800 (closed defect: untested)

Opened 1 year ago

Last modified 1 year ago

cannot access data returned by AJAX with $('foo')

Reported by: kedadi Assigned to: sam
Priority: normal Milestone: 1.x
Component: Prototype Version: edge
Severity: normal Keywords:
Cc:

Description

i cant access data returned by AJAX with $('foo') (in this case im trying to get the value of a field which has been returned by AJAX and is not part of original page) but i can using lets say: document.formname.field_id (which is not standard compliant).

Ex: <div><input id="bar" value="some_value" type="text"></div> <!-- $('bar').value works fine -->

<!-- this div is filled with some data returned by Ajax.Updater which contains a form and a text field with id="foo" --> <div id="ajax"></div> <!-- $('foo').value cannot be accessed -->

Change History

03/20/07 11:56:02 changed by mislav

  • status changed from new to closed.
  • resolution set to untested.

sorry, but you'll have to provide us with a more complete test case (try to keep it minimal, though)