Script Error
Script Error
I am very new to this, so please bear with me. I am trying to use a script, however, keep getting error messages to open in text only because it is invalid. One of the errors is "Reference to undeclared entity 'nbsp'. Line 9, Position 6. This is valid code, so I'm not sure why I'm getting an error. Another one is "for (var i = 0, length = radiosNo.length; i < length; i++) {". Is there some reason Flare doesn't like <script> tags?
-
- Senior Propellus Maximus
- Posts: 4293
- Joined: Thu Feb 02, 2006 9:29 am
- Location: The Electric City
Re: Script Error
I think it has more to do wit what is in the script tags. Can you post the script here?
New Book: Creating user-friendly Online Help
Paperback http://www.amazon.com/dp/1449952038/ or https://www.createspace.com/3416509
eBook http://www.amazon.com/dp/B005XB9E3U
Paperback http://www.amazon.com/dp/1449952038/ or https://www.createspace.com/3416509
eBook http://www.amazon.com/dp/B005XB9E3U
Re: Script Error
The entity isn't valid for Flare/XHTML - use instead.beth1 wrote:One of the errors is "Reference to undeclared entity 'nbsp'. Line 9, Position 6. This is valid code, so I'm not sure why I'm getting an error.
What error do you get? The Flare editor won't report any errors in the script itself, only errors in the (X)HTML. You'll only be able to check script errors using the browser dev tools at runtime.beth1 wrote:Another one is "for (var i = 0, length = radiosNo.length; i < length; i++) {". Is there some reason Flare doesn't like <script> tags?
You can insert scripts in 2 ways: (1) in the XML editor, use Insert > Script and enter the javascript without <script> tags, or (2) in the text editor, insert the script with <script> tags.