Forum Moderators: open
In IE, the page reloads as it is coded. In Netscape, an intermediary page is displayed with the words "Object Moved" in h2 size, and a link to the original page.
Does anyone know anything about this and how to avoid it????????
(edited by: txbakers at 3:27 am (gmt) on Dec. 16, 2001)
I am using image buttons for the submit buttons. I set the onClick event to form.submit() on one page. this page updates and refreshes like it is supposed to.
On another page, the onClick event calls a validation javascript first, before submitting the form. this page returns the "Object Moved" page.
How can I validate the form before submitting and not get the Object Moved page upon refreshing.
Thanks.
I think this is the result of an archaic bit of security in NN4 for POST requests.
You've more than likely got an ASP reponse.redirect on the page you are posting to ... Netscape 4 doesn't like this and you get an "object moved" message.
Let me know if this is your problem.
Josh
If you're sending up only a little data, and it isn't too sensitive then you may be able to send the data from the client as a GET (i.e. use querystrings instead of form post - see this recent thread [webmasterworld.com]).
This should get rid of the problem. There are many ways to work around things like this, and they can be tedious, but how depends on exactly what you're doing.
Someone else suggested that I use response.write with the code to the same URL instead of the response.redirect. The redirect causes a 302 HTTP code which means that the.......Object was temporarily Moved.
I was using images for my submit buttons as <img> tags with onClick() methods. With netscape I needed to also code a <A href> tag upon which to attach the onClick().
I was using either the myVoid() or the "#". That was the problem.
I'm using ASP code, so I grabbed the Action of the Form tag and made that my <A href=>. the OnClick method superceded the A Href and poof - no Object Moved and it even loaded faster.
Bizarre. But I'm glad it's solved.