Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Javascript works on Firefox but not in IE 6 or 7
Old 05-22-2007, 05:49 PM Javascript works on Firefox but not in IE 6 or 7
Junior Talker

Posts: 3
Name: Aidan
Trades: 0
I've got a dropdown list that I've made into a dynamic control. When someone selects a value, it will fill out all the other labels and text boxes via PHP. This is all working lovely on firefox, but ie is having problems.

Here's the Code I;m using

Code:
<script language="JavaScript" type="text/javascript">
    function presubmit(dropdown)
        {
            var i  = dropdown.selectedIndex
            document.perform.action= ("index.php?type=user&edit=music&name=" + dropdown.options[i].value);
            document.perform.submit();
        }
</script>
Called by

Code:
<select name="performer" id="performer"  onchange="presubmit(this.form.performer)">
When in IE, I change the control and the page does indeed send data the string to index.php but minus the value of the dropdown list (index.php?type=user&edit=music&name=). I'm don't know much about javascript so any help would be appreciated.
breachware is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-23-2007, 01:27 PM Re: Javascript works on Firefox but not in IE 6 or 7
Junior Talker

Posts: 3
Name: Aidan
Trades: 0
Been looking some more into this and it's definitely something about IE.

I found this on a brief search and have followed exactly what it says as can be seen here and it won't work with IE. Firefox is fine with it as is opra, and avant, but IE goes through the motions but won't copy the value of the select list into the URL path.

Any insight or advice welcome as this is holding the go live of a project up. I could work around it, but it's a shame to let such a neat feature pass due to IE throwing a wobler
breachware is offline
Reply With Quote
View Public Profile
 
Old 05-23-2007, 01:52 PM Re: Javascript works on Firefox but not in IE 6 or 7
Junior Talker

Posts: 3
Name: Aidan
Trades: 0
Applied some grey matter and managed to get this one worked out.

<option> has another event called value.

<option value="value1">value1</option>

did the job lovely. didn't mention that in any article I came accross. Hope this helps someone else.
breachware is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Javascript works on Firefox but not in IE 6 or 7
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.12323 seconds with 12 queries