View Single Post
Old 11-08-2012, 04:18 PM   #6
photon
The new goggles also do nothing.
 
photon's Avatar
 
Join Date: Oct 2001
Location: Calgary
Exp:
Default

It's still kind of on me because when I'm creating the code to generate the ajax, I have to build the params of the URL myself, so it looks something like

Code:
<select onchange="${remoteFunction(
				controller: 'aController',
					action: 'anAction',
					params: '\'obj.id=\' + document.getElementById(\'element\').value',
					update: 'anotherElement'
			)}" etc
(Last night I had a nightmare about nested escaped apostrophes in a markup language, unrelated I'm sure)

The examples and documentation all have "element.value" instead of document.getElementById('element').value of course.

Now I get a different issue, the update portion (which basically replaces the markup for the element defined by the update field) doesn't work, or it seems to but the region dropdown is empty, but I'll have to debug that another day, and that's definitely a jQuery thing being called.

EDIT: And people ask me why I try and stick with server side programming.

EDIT2: And fixed the second one, I guess the update part expects a div tag so I put the select I was updating in a div tag and updated that instead and it works, again worked fine in Firefox/Chrome but not in IE, probably the same issue in the background.
__________________
Uncertainty is an uncomfortable position.
But certainty is an absurd one.
photon is offline   Reply With Quote