|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
HTML - Passing parameter in URL in IE
Hello,
I am trying to pass a parameter from one page to a form in another page. It works OK in Firefox, but I am getting "Object does not support this property or method" error in IE. Here is the code I am using to pass: <dd><a href="contact.aspx?formOpt=genlOpt">info@paynetonline.com</a></dd> |
|
#2
|
||||
|
||||
|
can you post some more code ??
__________________
“Life may not be the party we hoped for, but while we are here we should sing, dance and be merry all the time....... "
|
|
#3
|
|||
|
|||
|
What code would be helpful?
|
|
#4
|
||||
|
||||
|
Quote:
As far as I know the dd tag is supported in all major browsers so I cant see that is what is causing the problem. Apart from that the code you posted is just a simple hyperlink that will display in the description of the item, that looks fine to me. When exactly do you get the error, is it when you click on the hyperlink or is it on the page that this calls? If it is on a different page then can you post all relevant code. |
|
#5
|
||||
|
||||
|
Quote:
so in order to help you, we need to see the code causing that error. it might be some global JavaScript code running after the page load and messing with your links. worst case post your whole code, or link where we can see it live and we'll see. |
|
#6
|
|||
|
|||
|
The error is in the receiving script. Here is the code I am using to read the parameter. It works fine in Firefox, but IE errors.
<script type="text/javascript"> var locate = window.location.toString(); var text = locate; function delineate2(str) { point = str.lastIndexOf("="); return(str.substring(point+1,str.length)); } var passOpt = delineate2(text); |
|
#7
|
||||
|
||||
|
the code works fine for me.
is it working for other pages in IE? you can always wrap it inside try..catch block to avoid showing errors. |
![]() |
| Viewing: ASP Free Forums > Programming > HTML, JavaScript And CSS Help > HTML - Passing parameter in URL in IE |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|