Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Dreamweaver is claiming I have a syntax error on line 30...
Old 02-20-2010, 06:33 PM Dreamweaver is claiming I have a syntax error on line 30...
PWS
Novice Talker

Posts: 14
Name: R Pearson
Trades: 0
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 part of my code so if anyone can help that would be a massive help. Line 30 starts in red

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)

Last edited by PWS; 02-20-2010 at 07:11 PM.. Reason: Showing where line 30 is
PWS is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-20-2010, 06:45 PM Re: Dreamweaver is claiming I have a syntax error on line 30...
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,383
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
and line 30 is?
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 02-20-2010, 07:11 PM Re: Dreamweaver is claiming I have a syntax error on line 30...
PWS
Novice Talker

Posts: 14
Name: R Pearson
Trades: 0
Quote:
Originally Posted by chrishirst View Post
and line 30 is?
Sorry now edited in red
PWS is offline
Reply With Quote
View Public Profile
 
Old 02-21-2010, 05:54 AM Re: Dreamweaver is claiming I have a syntax error on line 30...
PWS
Novice Talker

Posts: 14
Name: R Pearson
Trades: 0
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 bold

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))
            }
PWS is offline
Reply With Quote
View Public Profile
 
Old 02-22-2010, 11:34 AM Re: Dreamweaver is claiming I have a syntax error on line 30...
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
That's a minified version of jQuery, which I promise is not a syntax error. The problem is that Dreamweaver chokes on the regular expressions so it thinks something is wrong. Probably just don't worry about it. Does the code run ok in the browser?

If the code got messed up on a clipboard when it was copied there somehow, you may want to download a fresh copy here: http://jquery.com
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.

Last edited by wayfarer07; 02-22-2010 at 11:35 AM..
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Reply     « Reply to Dreamweaver is claiming I have a syntax error on line 30...
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.73949 seconds with 12 queries