Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 11 of 11
  1. #1
    New Coder
    Join Date
    Mar 2007
    Posts
    44
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy Dreamweaver is claiming I have a syntax error on line 30

    Hi all

    I have a problem that I am scratching my head at, this being Dreamweaver is claiming I have a syntax error on line 30...

    Below is my code so if anyone can help that would be a massive help.

    Code:
    /*
     * jquery.tools 1.1.2 - The missing UI library for the Web
     * 
     * [tools.scrollable-1.1.2, tools.scrollable.circular-0.5.1, tools.scrollable.autoscroll-1.0.1]
     * 
     * Copyright (c) 2009 Tero Piirainen
     * http://flowplayer.org/tools/
     *
     * Dual licensed under MIT and GPL 2+ licenses
     * http://www.opensource.org/licenses
     * 
     * -----
     * 
     * jQuery JavaScript Library v1.3.2
     * http://jquery.com/
     *
     * Copyright (c) 2009 John Resig
     * Dual licensed under the MIT and GPL licenses.
     * http://docs.jquery.com/License
     *
     * Sizzle CSS Selector Engine - v0.9.3
     * Copyright 2009, The Dojo Foundation
     * Released under the MIT, BSD, and GPL Licenses.
     * More information: http://sizzlejs.com/
     * 
     * -----
     * 
     * File generated: Fri Oct 09 12:07:25 GMT+00:00 2009
     */
    (function(){var l=this,g,y=l.jQuery,p=l.$,o=l.jQuery=l.$=function(E,F){return new o.fn.init(E,F)},D=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,f=/^.[^:#\[\.,]*$/;o.fn=o.prototype={init:function(E,H){E=E||document;if(E.nodeType){this[0]=E;this.length=1;this.context=E;return this}if(typeof E==="string"){var G=D.exec(E);if(G&&(G[1]||!H)){if(G[1]){E=o.clean([G[1]],H)}else{var I=document.getElementById(G[3]);if(I&&I.id!=G[3]){return o().find(E)}var F=o(I||[]);F.context=document;F.selector=E;return F}}else{return o(H).find(E)}}else{if(o.isFunction(E)){return o(document).ready(E)}}if(E.selector&&E.context){this.selector=E.selector;this.context=E.context}return this.setArray(o.isArray(E)?E:o.makeArray(E))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(E){return E===g?Array.prototype.slice.call(this):this[E]},pushStack:function(F,H,E)

  • #2
    Senior Coder Dormilich's Avatar
    Join Date
    Jan 2010
    Location
    Behind the Wall
    Posts
    3,132
    Thanks
    12
    Thanked 332 Times in 328 Posts
    that doesn’t really help, pretty much all your JavaScript code is on line 30 …
    The computer is always right. The computer is always right. The computer is always right. Take it from someone who has programmed for over ten years: not once has the computational mechanism of the machine malfunctioned.
    André Behrens, NY Times Software Developer

  • #3
    New Coder
    Join Date
    Mar 2007
    Posts
    44
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Dormilich View Post
    that doesn’t really help, pretty much all your JavaScript code is on line 30 …
    Well I just run the code through a pretty printer (http://www.prettyprinter.de/) to stop it from being all on one line, and see which line the error is on then. It appearsd the line is now 117 and maybe a css function?

    Line 117 is in red

    Code:
     return this.each(function(I){
                    for(F in E){
                        o.attr(G?this.style:this,F,o.prop(this,E[F],G,I,F))
                    }
                    
                }
                )
            }
            ,css:function(E,F){
                if((E=="width"||E=="height")&&parseFloat(F)&lt;0){                F=g
                }
                return this.attr(E,F,"curCSS")
            }
            ,text:function(F){
                if(typeof F!=="object"&&F!=null){
                    return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(F))
                }

  • #4
    Senior Coder Dormilich's Avatar
    Join Date
    Jan 2010
    Location
    Behind the Wall
    Posts
    3,132
    Thanks
    12
    Thanked 332 Times in 328 Posts
    &lt; should be <
    The computer is always right. The computer is always right. The computer is always right. Take it from someone who has programmed for over ten years: not once has the computational mechanism of the machine malfunctioned.
    André Behrens, NY Times Software Developer

  • #5
    New Coder
    Join Date
    Mar 2007
    Posts
    44
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Nope that does not appear to resolve it.

    The Webpage error details

    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.4; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2)
    Timestamp: Sun, 21 Feb 2010 12:01:19 UTC


    Message: Syntax error
    Line: 117
    Char: 57
    Code: 0
    URI: http://localhost/web/common/js/home_slide/jquerynew.js


    Message: Object expected
    Line: 450
    Char: 1
    Code: 0
    URI: http://localhost/web/


    Message: Object doesn't support this property or method
    Line: 425
    Char: 2
    Code: 0
    URI: http://localhost/web/

    jquerynew.js file can be dowmloased from here as the site limits me showing the whole code.

  • #6
    New Coder
    Join Date
    Mar 2007
    Posts
    44
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Firefox is claiming

    Error: $("div.scrollable").scrollable is not a function
    Source File: http://localhost/web/
    Line: 425
    Last edited by Demon Templates; 02-21-2010 at 12:26 PM.

  • #7
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,471
    Thanks
    6
    Thanked 980 Times in 953 Posts
    Well, according to the last message it looks like you try to execute “scrollable()” although it doesn’t seem to be defined in the first place. I always do an if query for any plugins I have (and even for jQuery itself) so in case some script is removed it doesn’t throw up an error but just doesn’t get executed anymore:
    Code:
    if(jQuery().scrollable) {
    	$("div.scrollable").scrollable();
    }
    Now, that won’t help you, I guess, since it just wouldn’t be executed. But it would help to see your HTML. What comes to my mind is that you may wanna check if you actually have put a script reference to jQuery tools into the head of your HTML document.

  • #8
    New Coder
    Join Date
    Mar 2007
    Posts
    44
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi

    The html can be found here
    Last edited by Demon Templates; 02-22-2010 at 01:26 PM.

  • #9
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,471
    Thanks
    6
    Thanked 980 Times in 953 Posts
    OK, now, apart from the errors in the code, what do the scripts jquery.js, jquerynew.js, jquery_003.js, and jquery_002.js contain?

  • #10
    New Coder
    Join Date
    Mar 2007
    Posts
    44
    Thanks
    0
    Thanked 0 Times in 0 Posts
    That will be here then or here for the whole js folder

  • #11
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,471
    Thanks
    6
    Thanked 980 Times in 953 Posts
    Hmm, well… unless I’ve overlooked something obvious my best guess at the moment would be that jQuery tools 1.1.2 is not compatible with jQuery 1.2.6. The latest version of jQuery is 1.4.2, you should really use that one.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •