Forum LAMS for Tech-Heads - General Forum: help finding a JavaScript error ?


 
You may request notification for help finding a JavaScript error ?.
Search: 

1: help finding a JavaScript error ?
02/08/07 12:38 AM
[ Reply | Forward ]
this is probably not a bug per se but something else wrong (see full error stack below), and that's why I'm asking for help - mostly for verification (or not) of what I'm getting.

it's in the Forum when someone is using it.

Anytime there's a submit (any browser) I'm getting a JS error from the forms validation routine "validateMessageForm(this)"

it does save the message correctly.

going thru the JS files imported into the page, that function is missing entirely

according to my JS dev console:

Error: validateMessageForm is not defined
Source File: http://.../lams/tool/lafrum11/learning/editTopic.do?sessionMapID=sessionMapID-14&topicID=33&rootUid=&create=1170913822577
Line: 1


any thoughts?
thanx

-------------------------------------
full error stack on submit:

Error: The stylesheet http://.../lams/errorpages/404.jsp was not loaded because its MIME type, "text/html", is not "text/css".
Source File: http://.../lams/tool/lafrum11/learning/editTopic.do?sessionMapID=sessionMapID-14&topicID=33&rootUid=&create=1170913822577
Line: 0

Error: validateMessageForm is not defined
Source File: http://.../lams/tool/lafrum11/learning/editTopic.do?sessionMapID=sessionMapID-14&topicID=33&rootUid=&create=1170913822577
Line: 1

Error: The stylesheet http://.../lams/errorpages/404.jsp was not loaded because its MIME type, "text/html", is not "text/css".
Source File: http://.../lams/tool/lafrum11/learning/updateTopic.do
Line: 0

(note: http://.../ is just to cut down the text. all paths/url's are good)

Posted by barry beattie

2: Re: help finding a JavaScript error ?
In response to 1 02/12/07 07:05 PM
[ Reply | Forward ]
Barry,

There are two bugs here.
* The submit is trying to call a javascript function that does not exist. I can't find any code that suggests it ever existed!
* The pages are trying to load up a stylesheet file that doesn't exist. At least in this case, the file did exist in the past but it was removed.

Neither seem to be doing any damage, except for annoying javascript errors.

I've raised this a bug in our tracking system (https://bugs.lamsfoundation.org/browse/LDEV-1144) and it will be fixed in LAMS 2.0.1. (I've already done the fix...)

Fiona

Posted by Fiona Malikoff

Reply to first post on this page
Back to LAMS for Tech-Heads - General Forum