Jump to content

IE confusing me again.


stockton

Recommended Posts

I have a form containing a field defined as:-

<td colspan="2" width=50%><input type=text name="BundleNum" id="BundleNum" onChange="submit_click()"></td></tr>

 

and the submit_click() is defined as :-

function submit_click()

    {

    var BN = document.getElementById("BundleNum").value;

    window.location="TI4SCAN-4.php?BundleNum="+BN;

    }

</script>

and this all works perfectly in Firefox but all I get out of IE is a click when I enter data into the BundleNum field and press Enter?

 

Please tell me how I fix this to work with IE(any version, but probable 6 or 7).

 

Link to comment
Share on other sites

I would not say on_change casue that means every time they type a single letter or number into it...

 

try,...  onchange.  then try this:

 

TI4SCAN-4.php?BundleNum

 

change that to a FULL url not a relative url.

 

in IE if you say "./TI4SCAN-4.php?BundleNum" it will automatically convert it to a full url.

Link to comment
Share on other sites

<a href=./TI4SCAN-4.php?BundleNum=document.getElementById(\"BundleNum\").value&Diva=<?php echo rand() ?> ><img src=images/Issue.png></a>

 

 

I have tried the above but obviously I do not understand the DOM. Please tell me how to repair same.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.