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
https://forums.phpfreaks.com/topic/72308-ie-confusing-me-again/
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
https://forums.phpfreaks.com/topic/72308-ie-confusing-me-again/#findComment-364902
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
https://forums.phpfreaks.com/topic/72308-ie-confusing-me-again/#findComment-365335
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.