How to pass values using Yahoo AJAX?
June 7, 2006 12:28 PM
Subscribe
I'm making the AJAX plunge, and working with Yahoo's
AJAX User Interface Library (specifically
Dialog to create form sumission dialog boxes. But I don't know how to pass values into the box that pops up.
I deconstructed their exampel enough to get a button to open a dialog with a form in it that allows a user to add a name to a list. I want to use a different button to open a different dialog box to remove a name.
How do I pass the ID of the item to remove from the button into the remove dialog?
My button:
<button onclick="YAHOO.item.container.remove.show()"> REMOVE </button>
My javascript skills are very weak, but I would guess I could put the ID into the onclick command "YAHOO.item.container.remove.show('myID'). But then what? how do I get that value to be used in the form? Am I even going about this the right way?
Finally, is there a "yahoo ajax for dummies" site I could reference, or is there an easier AJAX library I could use to cut my teeth on?
posted by jazon to computers & internet (7 comments total)
2. Google's Web Toolkit may or may not be easier to use for your project.
posted by b1tr0t at 1:45 PM on June 7, 2006