AJAX Forums

Problem with onchange event on SELECT

This is a discussion on Problem with onchange event on SELECT within the AJAX Questions forums, part of the Beginners AJAX category; I am using Ajax to provide dynamic HTML SELECTs in what is a very static legacy web app. I build the SELECT/OPTION tags using the DOM api. I set ...


Go Back   AJAX Forums > Beginners AJAX > AJAX Questions

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
Old 05-13-2008, 04:32 PM   #1 (permalink)
Junior Member
 
Join Date: Apr 2008
Posts: 5
Rep Power: 0 javarunner is on a distinguished road
Problem with onchange event on SELECT

I am using Ajax to provide dynamic HTML SELECTs in what is a very static legacy web app. I build the SELECT/OPTION tags using the DOM api. I set an attribute on each SELECT to point to an 'onchange' event.
Everything works fine until I port to IE7, in which the events do not fire. It works correctly in Firefox and Safari.
Does anyone know of a work-around for this odd IE behaviour?
TIA...
javarunner is offline   Reply With Quote
Old 05-14-2008, 03:17 PM   #2 (permalink)
Junior Member
 
Join Date: Apr 2008
Posts: 5
Rep Power: 0 javarunner is on a distinguished road
Typical! I solved this issue right after I posted.
IE is not compliant with DOM rules, so the event is registered using:
document.getElementById('foo').onchange = foobar;
Hope this helps someone in the IE swamp.
javarunner is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
BT Select Cisco Virtualization Based Routers for Next-Generation Managed Services microbee AJAX Help 0 07-16-2008 04:44 PM
AJAX Jobs : AJAX select replacement by conchur admin AJAX Freelance Jobs 0 06-25-2008 07:35 AM
How to Select RIA Technologies microbee AJAX Help 0 07-12-2007 04:27 PM
How can I populate HTML SELECT menus with XML data using AJAX? bostonianaz XML and XSLT 1 06-25-2007 01:28 PM
AJAX Or Flex? How To Select an RIA Technology microbee AJAX Help 0 01-09-2007 09:14 AM


All times are GMT -4. The time now is 02:56 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5
Copyright ©2006 - 2008, AJAXwith.com