javascript errors

  • Profile Image
    jasoncharlyta
    Asked on July 11, 2010 at 01:04 PM

    here are the errors in the <script src="g=jotform&" type="text/javascript"></script>

     

    Error:

    Problem at line 1 character 347: Missing semicolon.

    var Prototype={Version:'1.6.1',Browser:(function(){var ua=navigator.userAgent...

    Problem at line 2 character 1: Expected '{' and instead saw 'return'.

    return true;var div=document.createElement('div');var form=document.createEle...

    Problem at line 2 character 120: ['__proto__'] is better written in dot notation.

    return true;var div=document.createElement('div');var form=document.createEle...

    Problem at line 2 character 139: ['__proto__'] is better written in dot notation.

    return true;var div=document.createElement('div');var form=document.createEle...

    Problem at line 2 character 159: ['__proto__'] is better written in dot notation.

    return true;var div=document.createElement('div');var form=document.createEle...

    Problem at line 3 character 186: Missing semicolon.

    div=form=null;return isSupported;})()},ScriptFragment:'<script[^>]*>([\\S\\s]...

    Problem at line 4 character 1: Expected '{' and instead saw 'Prototype'.

    Prototype.BrowserFeatures.SpecificElementExtensions=false;var Abstract={};var...

    Problem at line 5 character 66: Unnecessary semicolon.

    return returnValue;}};var Class=(function(){function subclass(){};function cr...

    Problem at line 6 character 1: Expected '{' and instead saw 'parent'.

    parent=properties.shift();function klass(){this.initialize.apply(this,argumen...

    Problem at line 7 character 155: Missing '()' invoking a constructor.

    Object.extend(klass,Class.Methods);klass.superclass=parent;klass.subclasses=[...

    Problem at line 9 character 1: Expected '{' and instead saw 'klass'.

    klass.addMethods(properties[i]);if(!klass.prototype.initialize)

    Problem at line 10 character 1: Expected '{' and instead saw 'klass'.

    klass.prototype.initialize=Prototype.emptyFunction;klass.prototype.constructo...

    Problem at line 12 character 1: Expected '{' and instead saw 'properties'.

    properties.push("toString");if(source.valueOf!=Object.prototype.valueOf)

    Problem at line 13 character 1: Expected '{' and instead saw 'properties'.

    properties.push("valueOf");}

    Problem at line 14 character 280: Don't make functions within a loop.

    for(var i=0,length=properties.length;i<length;i++){var property=properties[i]...

    Problem at line 18 character 1: Expected '{' and instead saw 'destination'.

    destination[property]=source[property];return destination;}

    Problem at line 17 character 148: The body of a for in should be wrapped in an if statement to filter unwanted properties from the prototype.

    return{create:create,Methods:{addMethods:addMethods}};})();(function(){var _t...

    Problem at line 19 character 53: Expected '{' and instead saw 'return'.

    function inspect(object){try{if(isUndefined(object))return'undefined';if(obje...

    Problem at line 19 character 88: Expected '{' and instead saw 'return'.

    function inspect(object){try{if(isUndefined(object))return'undefined';if(obje...

    Problem at line 19 character 192: Expected '{' and instead saw 'return'.

    function inspect(object){try{if(isUndefined(object))return'undefined';if(obje...

    Problem at line 21 character 18: Expected '{' and instead saw 'return'.

    if(object===null)return'null';if(object.toJSON)return object.toJSON();if(isEl...

    Problem at line 21 character 48: Expected '{' and instead saw 'return'.

    if(object===null)return'null';if(object.toJSON)return object.toJSON();if(isEl...

    Problem at line 21 character 92: Expected '{' and instead saw 'return'.

    if(object===null)return'null';if(object.toJSON)return object.toJSON();if(isEl...

    Problem at line 22 character 1: Expected '{' and instead saw 'results'.

    results.push(property.toJSON()+': '+value);}

    Problem at line 21 character 114: The body of a for in should be wrapped in an if statement to filter unwanted properties from the prototype.

    if(object===null)return'null';if(object.toJSON)return object.toJSON();if(isEl...

    Problem at line 27 character 1: Expected '{' and instead saw 'results'.

    results.push(property);return results;}

    Problem at line 26 character 38: The body of a for in should be wrapped in an if statement to filter unwanted properties from the prototype.

    function keys(object){var results=[];for(var property in object)

    Problem at line 29 character 1: Expected '{' and instead saw 'results'.

    results.push(object[property]);return results;}

    Problem at line 28 character 40: The body of a for in should be wrapped in an if statement to filter unwanted properties from the prototype.

    function values(object){var results=[];for(var property in object)

    Problem at line 38 character 445: Expected '{' and instead saw 'array'.

    extend(Object,{extend:extend,inspect:inspect,toJSON:toJSON,toQueryString:toQu...

    Problem at line 41 character 80: Expected '{' and instead saw 'return'.

    function bind(context){if(arguments.length<2&&Object.isUndefined(arguments[0]...

    Problem at line 41 character 219: Missing semicolon.

    function bind(context){if(arguments.length<2&&Object.isUndefined(arguments[0]...

    Problem at line 42 character 184: Missing semicolon.

    function bindAsEventListener(context){var __method=this,args=slice.call(argum...

    Problem at line 43 character 39: Expected '{' and instead saw 'return'.

    function curry(){if(!arguments.length)return this;var __method=this,args=slic...

    Problem at line 43 character 175: Missing semicolon.

    function curry(){if(!arguments.length)return this;var __method=this,args=slic...

    Problem at line 44 character 92: Missing semicolon.

    function delay(timeout){var __method=this,args=slice.call(arguments,1);timeou...

    Problem at line 47 character 136: Missing semicolon.

    function wrap(wrapper){var __method=this;return function(){var a=update([__me...

    Problem at line 48 character 42: Expected '{' and instead saw 'return'.

    function methodize(){if(this._methodized)return this._methodized;var __method...

    Problem at line 48 character 107: Missing semicolon.

    function methodize(){if(this._methodized)return this._methodized;var __method...

    Problem at line 48 character 107: Expected an identifier and instead saw '='.

    function methodize(){if(this._methodized)return this._methodized;var __method...

    Problem at line 48 character 107: Stopping, unable to continue. (5% scanned).

     

    Implied global: navigator 1, window 1,42,45, document 1,2, $A 5, isUndefined 19,21, isElement 21, $H 24, Hash 33

    Unused variable: argumentNames 38 "prototype", bind 38 "prototype", bindAsEventListener 38 "prototype", curry 38 "prototype", delay 38 "prototype", defer 38 "prototype", wrap 38 "prototype", methodize 38 "prototype", __method 48 methodize

  • Profile Image
    aytekin
    Answered on July 12, 2010 at 02:52 AM

    You should probably just use the short one-line form code instead. The code seems to be changed a lot by your HTML editor.

    On the Form Builder:
    1. Open "Setup & Share" tab on toolbar,
    2. Click on "Share Form"
    3. Copy the code provided at "Paste this code on your web site".