[thelist] Javascript to alter a select list
raanders at mailporter.net
raanders at mailporter.net
Wed Jul 13 13:34:18 CDT 2005
Christian Heilmann wrote:
> This general defiance is as unhelpful as some other developers' "use
> AJAX for everything" attitude.
Actually my reference to AJAX was for a totally different question from
a couple of weeks ago. Sorry.
> Actually this example could greatly be improved with an XHR layer.
> The issues:
After some research and reading I see what you mean.
> - As the app stands now it is dependent on JavaScript to work and has
> crucial information in JavaScript - I can read the promotional codes
> by reading the JS source.
Personally , and application-wise , we may force Javascript. Another
portion of the product requires Javascript so the signup is a good
filter that will preclude disappointed users/customers.
> - To circumvent that you need to send the form to the server and
> generate the dropdown on the server side - this would also enable you
> to do the promotional lookup in a database
> - If you keep the dropdown generation in one include you can call the
> include when you load the page and via XHR when you leave the field
> and replace the dropdown via the DOM.
I was hoping I understood XMLHttpRequest ( XHR ) correctly. This is
exactly what I need. Again using it will filter the non-Javascript
users out early.
> That way both the JavaScript and the non JavaScript visitor will get
> the dropdown options and you are safe from XSS.
Another new term/mnemonic. What does it stand for / mean?
Thanks Chris.
Rod
--
---
[Certified Virus free by MailPorter Mail Services. www.MailPorter.com ]
More information about the thelist
mailing list