We relaunched the TWiki.org project with an expanded TWiki charter, and we invite you to participate! The TWiki.org Code of Conduct agreement took effect on 27 Oct 2008. We ask existing twiki.org users to opt-in. You need to opt-in to participate in the Blog, Codev, Plugins and TWiki webs. -- PeterThoeny - 27 Oct 2008
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 - 22 Nov 2001 - 08:17:50 - PeterThoeny
 
TWIKI.NET
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback