struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Hardy <ahardy.str...@cyberspaceroad.com>
Subject Re: javascipt error in IE
Date Mon, 07 Jul 2003 07:51:04 GMT
that's a complete PITA! I guess they only have one set of DLLs in the 
windows directory.  MS strikes again.

Andrew Hill wrote:
> Yes. Its a big nuisance.
> 
> Ive had to stick with IE5 and hope if it works in 5 it works in 6. Not
> always the case , but more so than the other way round!
> 
> Glad to say Ive had no trouble running NS6 and Mozilla together on the same
> machine - at the same time too.
> 
> 
> -----Original Message-----
> From: David Graham [mailto:grahamdavid1980@yahoo.com]
> Sent: Monday, 7 July 2003 12:05
> To: Struts Users Mailing List
> Subject: Re: javascipt error in IE
> 
> 
> --- Adam Hardy <ahardy.struts@cyberspaceroad.com> wrote:
> 
>>Well, I just upgraded to IE6 (SP1) and I don't get any errors for credit
>>
>>card nor required, nor in fact any errors at all. I just checked to make
>>
>>sure javascript errors were notified.
>>
>>I seem to have wiped out IE5.5, which I wanted to keep for testing. I
>>installed IE6 in a different directory, but if I launch IE5 with the
>>iexplore.exe from the original directory, I still get IE6. Is there some
>>
>>trick to doing this?
> 
> 
> AFAIK, it's fairly impossible to have multiple IE versions on the same
> box.  MS apparently doesn't care about web developers testing on multiple
> versions of their browser.
> 
> David
> 
> 
>>Huang, Andy wrote:
>>
>>>No, this error happen for all form validations I used, including
>>
>>required,
>>
>>>credit card, and zip code validator.
>>>
>>>Althought the problem is not fatal, since if I turn off
>>>"Display a notification about every script error" in advanced tab of
>>>IE internet options, the pop-up error message will just be silent,
>>>and proper error message still display for user input (which I thought
>>>shouldn't went thru, because of the javascript error)
>>>
>>>But this not acceptable for production use.
>>>
>>>Any ideas?
>>>
>>>
>>>-----Original Message-----
>>>From: Adam Hardy
>>>To: Struts Users Mailing List
>>>Sent: 7/4/2003 5:43 AM
>>>Subject: Re: javascipt error in IE
>>>
>>>You mean the error comes from the email-validation?
>>>
>>>Richard Mixon wrote:
>>>
>>>
>>>>Andy, I too would like to know how to fix this when using the
>>>
>>>validator
>>>
>>>
>>>>Javascripts. In most cases it appears to be benign, but irritating.
>>>
>>>I've got
>>>
>>>
>>>>on or two forms that it really does break though.
>>>>
>>>>Hope someone has an clue.
>>>>
>>>>- Richard
>>>>
>>>>-----Original Message-----
>>>>From: Huang, Andy [mailto:anhuang@grey.com]
>>>>Sent: Thursday, July 03, 2003 2:19 PM
>>>>To: 'struts-user@jakarta.apache.org'
>>>>Subject: RE: javascipt error in IE
>>>>
>>>>
>>>>No one experience this problem???
>>>>
>>>>-----Original Message-----
>>>>From: Huang, Andy
>>>>Sent: Thursday, July 03, 2003 1:46 PM
>>>>To: 'struts-user@jakarta.apache.org'
>>>>Subject: javascipt error in IE
>>>>
>>>>
>>>>I got an "Error: Object Expected" in IE 6, but run without any problem
>>>
>>>in
>>>
>>>
>>>>Netscape or Opera.
>>>>
>>>>I have a login form with onsubmit="return validateLoginForm(this);"
>>>>to validate the login email address and password (I have included the
>>>
>>>html
>>>
>>>
>>>>souce code snippet below)
>>>>
>>>>My guess is that the IE browser having problem to read
>>>
>>>staticJavascript.jsp
>>>
>>>
>>>>when it load the page.
>>>>
>>>>Any help will be appreciated
>>>>
>>>>
>>>><form name="loginForm" method="post" action="/Login.do"
>>>
>>>onsubmit="return
>>>
>>>
>>>>validateLoginForm(this);">
>>>><table border="0" width="100%">
>>>> <tr>
>>>>   <th align="right">
>>>>     Email Address:
>>>>   </th>
>>>>   <td align="left">
>>>>     <input type="text" name="email" maxlength="27" size="25"
>>>
>>>value="">
>>>
>>>>   </td>
>>>> </tr>
>>>>
>>>> <tr>
>>>>   <th align="right">
>>>>     Password:
>>>>   </th>
>>>>   <td align="left">
>>>>     <input type="password" name="password" maxlength="18" size="16"
>>>>value="">
>>>>   </td>
>>>> </tr>
>>>>
>>>> <tr>
>>>>   <td align="right">
>>>>     <input type="submit" value="Submit">
>>>>   </td>
>>>>   <td align="left">
>>>>     <input type="reset" value="Reset">
>>>>   </td>
>>>> </tr>
>>>></table>
>>>></form>
>>>>
>>>><script type="text/javascript" language="JavaScript">
>>>> <!--
>>>> var focusControl = document.forms["loginForm"].elements["email"];
>>>>
>>>> if (focusControl.type != "hidden") {
>>>>    focusControl.focus();
>>>> }
>>>> // -->
>>>></script>
>>>>
>>>>
>>>>
>>>><script type="text/javascript" language="Javascript1.1">
>>>><!-- Begin
>>>>
>>>>    var bCancel = false;
>>>>
>>>>   function validateLoginForm(form) {
>>>>
>>>>       if (bCancel)
>>>>     return true;
>>>>       else
>>>>      return validateEmail(form) && validateMaxLength(form) &&
>>>>validateMinLength(form);
>>>>  }
>>>>
>>>>   function email () {
>>>>    this.aa = new Array("email", "<li>Email Address is an invalid
>>>
>>>e-mail
>>>
>>>
>>>>address.</li>", new Function ("varName", " return this[varName];"));
>>>>   }
>>>>
>>>>   function maxlength () {
>>>>    this.aa = new Array("password", "<li>Password cannot be greater
>>>
>>>than 16
>>>
>>>
>>>>characters.</li>", new Function ("varName", "this.maxlength='16';
>>>>this.minlength='3';  return this[varName];"));
>>>>   }
>>>>
>>>>   function minlength () {
>>>>    this.aa = new Array("password", "<li>Password cannot be less than
>>>
>>>3
>>>
>>>
>>>>characters.</li>", new Function ("varName", "this.maxlength='16';
>>>>this.minlength='3';  return this[varName];"));
>>>>   }
>>>>
>>>>//End -->
>>>></script>
>>>>
>>>><script language="Javascript1.1" src="staticJavascript.jsp"></script>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>>>
>>>>
>>>
>>>
>>>
> === message truncated ===
> 
> 
> __________________________________
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message