Tags:
create new tag
, view all tags

Question

In IE I get the following error when loading the Registration form

/twiki/bin/view/TWiki/TWikiRegistration?stickskin=default

The error is:

Line: 40
Error: Expected ')'

The line is included below split into two sections before the location of the cursor in the debugger and after the location of the cursor in the debugger.

  <td><input type="text" name="Twk1Name" size="40" value="" onBlur="var sIn = this.value; var sOut = ''; var chgUpper = true; for ( var i = 0; i &lt; sIn.length; i++ ) { var ch = sIn.charAt( i ); var ch2 = ''; if( (ch=='`')||(ch=='a')||(ch=='b')||(ch=='c')||(ch=='e') ) { ch = 'a'; } if( (ch=='h')||(ch=='i')||(ch=='j') ) { ch = 'e'; } if( ch=='g') { ch = 'c'; } if( ch=='s') { ch = 'o'; } if( ch=='d') { ch = 'a'; ch2 = 'e'; } if( ch=='v') { ch = 'o'; ch2 = 'e'; } if( ch=='|') { ch = 'u'; ch2 = 'e'; } if( ch=='D') { ch = 'A'; c

!cursor left here!

h2 = 'e'; } if( ch=='V') { ch = 'O'; ch2 = 'e'; } if( ch=='\') { ch = 'U'; ch2 = 'e'; } if( ch=='_') { ch = 's'; ch2 = 's'; } if( ((ch>='a')&amp;&amp;(ch<='z')) || ((ch>='A')&amp;&amp;(ch<='Z')) ) { if( chgUpper ) { ch = ch.toUpperCase(); chgUpper = false; } sOut+=ch; if( ch2!='') { sOut+=ch2; } } else { if( ch==' ' ) { chgUpper = true; } } } this.form.Twk1WikiName.value=sOut;" /> <code><font color="red">**</font></code> </td>

This is using the classic default TWiki skin. If I use the tiger skin I don't get the error. I am using the SessionPlugin, but the problem happened before the SessionPlugin or TigerSkin were added.

Has anybody else seen this error? Maybe with a fix?

.

  • TWiki version: 20010901
  • Web server: Apache
  • Server OS: Linux
  • Web browser: IE 5.5.4522.1800CO
  • Client OS: NT 4.0 SP5

-- JohnRouillard - 20 Nov 2001

Answer

This is a known issue. The form has JavaScript code with hardcoded special characters (i.e. ö) instead of escaped character names (i.e. &ouml;). Get the latest topic content from TWiki.TWikiRegistration at TWiki.org.

-- PeterThoeny - 22 Nov 2001

Topic revision: r3 - 2001-11-22 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.