im getting an error from IE6 when i use this code.
works just fine in later versions and in firefox, but
this particular version of IE doesnt like it.
Code:
window.location = "skel4.php?step=1b&"+output;
generates the url....
http://localhost/docs/upload3/skel4.php?step=1b...blah..blah..blah
anyone have nay guesses ?
Was this answer helpful ?
Yes No
What url are you expecting it to generate?
Try adding .href on the end.
Was this answer helpful ?
Yes No
Was this answer helpful ?
Yes No
thanks people.
adding ".href" did not fix it, but you've all provided
me with plenty of links that will hopefully solve
the problem.
i'll post when i find the answer.
Was this answer helpful ?
Yes No
Try using location.pathname and location.search.
Was this answer helpful ?
Yes No
Quote:
| Originally Posted by frankieluccini thanks people.
adding ".href" did not fix it, but you've all provided
me with plenty of links that will hopefully solve
the problem.
i'll post when i find the answer. |
TRY using the complete URL like
Code:
location.href="http://www.yourdomain.com/skel4.php?step=1b&"+output;
HTH
- johnmanoahs
Was this answer helpful ?
Yes No
the problem is within one or both of 2 lines in the entire script.
i've been trying different methods, and it seems that
windows will recognize the initial webpage the link is
pointing to, but it will not bring thru any passed variables
provided in the script's loop.
below is the function.
the lines im dealing with are
// glue = (i)?'&':'?';
and
// window.location.href = "skel4.php?step=1b&"+output;
one of these things (or both) is the problem.
firefox reads everything just fine- this is only an IE6 problem.
the window.location has to be provided within the function,
in order to grab all the variables. i've already tried having
the function "return" the output var, to test window.location
outside of the function. that did not work.
thanks for everyone's help.
i hope we can figure this out soon.
Code:
function myUpdateCallback() {
var myArray = new Array()
var dnum = "0";
for( url in rs_fileAttributes ) {
for( name in rs_fileAttributes[url] ) { dnum ++; var currentvar = rs_fileAttributes[url][ name ]; myArray[dnum] = currentvar; }
}
output = '';
for(i=0;i<myArray.length;i++){
glue = (i)?'&':'?';
output += glue+'myArray['+i+']='+escape(myArray[i]);
}
window.location.href = "skel4.php?step=1b&"+output;
}
ps. i have tried all of your suggestions listed in this post
Was this answer helpful ?
Yes No