This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 10 - Pages: 1 - Last Post: 24-Mar-2016 09:22 Last Post By: kaya
susannb

Posts: 136
Registered: 5-Dec-2007
Version 3.9.1 Syntax Error
Posted: 13-Mar-2016 23:12
 
  Click to reply to this thread Reply
I have the following error being highlighted in Dreamweaver CS6, line 12
How do I fix this?
<script language="JavaScript" type="text/javascript" src="res/contentflow/contentflow.js" >lightwindow slideshow</script>
kaya

Posts: 2,068
Registered: 19-Jun-2003
Re: Version 3.9.1 Syntax Error
Posted: 16-Mar-2016 22:08   in response to: susannb in response to: susannb
 
  Click to reply to this thread Reply
You may check your webpage by w3c markup validation service to have a description of what's not conform:

See for example the w3c validator output for LightFlows test album
jGromit

Posts: 33,167
Registered: 31-Jan-2006
Re: Version 3.9.1 Syntax Error
Posted: 16-Mar-2016 22:17   in response to: kaya in response to: kaya
 
  Click to reply to this thread Reply
Some validators complain about having content between the <script> tag and the </script> tag - in this case the "lightwindow slideshow" text. What's the intent of that?
susannb

Posts: 136
Registered: 5-Dec-2007
Re: Version 3.9.1 Syntax Error
Posted: 16-Mar-2016 22:46   in response to: kaya in response to: kaya
 
  Click to reply to this thread Reply
This is what it gave me:
Validation Output: 2 Errors

Error Line 93, Column 19: an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified
<script language=JavaScript>

Error Line 93, Column 29: required attribute "type" not specified
<script language=JavaScript>

The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.

Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>.
susannb

Posts: 136
Registered: 5-Dec-2007
Re: Version 3.9.1 Syntax Error
Posted: 16-Mar-2016 22:47   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
I put in a "no right click script"
jGromit

Posts: 33,167
Registered: 31-Jan-2006
Re: Version 3.9.1 Syntax Error
Posted: 16-Mar-2016 22:55   in response to: susannb in response to: susannb
 
  Click to reply to this thread Reply
Some of this would disappear if LightFlow were rewritten to HTML5 standards - XHMTL is getting pretty long in the tooth. The <script> tag would become just:
<script src = "res/contentflow/contentflow.js"></script>
No more type or language attributes.
susannb

Posts: 136
Registered: 5-Dec-2007
Re: Version 3.9.1 Syntax Error
Posted: 16-Mar-2016 23:11   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
Maybe that would also help where the slider for the slideshow would work on all mediums? Works fine on iPhone but doesn't on Samsung tablet.
susannb

Posts: 136
Registered: 5-Dec-2007
Re: Version 3.9.1 Syntax Error
Posted: 17-Mar-2016 20:42   in response to: susannb in response to: susannb
 
  Click to reply to this thread Reply
Kaya???
kaya

Posts: 2,068
Registered: 19-Jun-2003
Re: Version 3.9.1 Syntax Error
Posted: 18-Mar-2016 08:58   in response to: susannb in response to: susannb
 
  Click to reply to this thread Reply
No, this is independent.
susannb

Posts: 136
Registered: 5-Dec-2007
Re: Version 3.9.1 Syntax Error
Posted: 21-Mar-2016 23:33   in response to: kaya in response to: kaya
 
  Click to reply to this thread Reply
Any plans for fixing it?
kaya

Posts: 2,068
Registered: 19-Jun-2003
Re: Version 3.9.1 Syntax Error
Posted: 24-Mar-2016 09:22   in response to: susannb in response to: susannb
 
  Click to reply to this thread Reply
There are no plans so far.
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums