Forum Moderators: travelin cat

Message Too Old, No Replies

Form Post to same page in Mac IE?

         

kevinj

7:50 pm on Nov 2, 2003 (gmt 0)

10+ Year Member



I have a page that contains a form that posts to the same page to check a password. The user enters the password, hits submit and then the page posts to itself. This page works perfect on a PC IE, but in Mac, it does not get the form field values. A simple Request.Form("client_login") on the reload is not working. Is anyone aware of something else I need to do for this to work on MAC IE?

Thanks,
Kevin

kevinj

12:57 am on Nov 4, 2003 (gmt 0)

10+ Year Member



The problem I figured out has to do with the javascript I was using to preload the textbox with text and remove it when someone clicked in the box. I was using:

<input type="text" name="client_login" size="12" maxlength="12" class="contentheight16red" value="Login Failed" onFocus=document.login.client_login.value=""
onChange=document.login.client_login.focus()>

It worked fine on a PC and allowed the form to post correctly. But when I viewed the page on a Mac, the form would not post correctly and I couldn't get a value from this text box. I believe it has to with setting the value to nothing in the JS
onFocus=document.login.client_login.value=""

Does anyone have any better JavaScript samples for a preloaded textbox that when clicked on removes the text AND allows the form to post correctly?

Thanks,
Kevin