I noticed a problem when serving the blog as application/xhtml.

I released the Transpose Email plugin which uses a javascript function Transpose_Email().

This function works properly in IE and Opera.

This works perfect in Firefox when the page is served as text/html, but the moment I shift to application/xhtml, I get a javascript error saying function not found.

I have absolutely no idea how to solve this problem so that the function works when the page is served as XHTML.

Any suggestions / solutions?

Following my posting on MozillaZine Forums, I was able to find a solution.
Simply moved the javascript to an external file.

Also realized that when using the comment tags in the inline javascript, the HTML parser was considering it a comment when the page was served as xhtml unlike when served as html.
As a result, the javascript function was thought to be a comment and not a code!

Issue resolved. Happy that my plugin will now work even with stricter web standards :D

Subscribe to the Feed
Liked this article? Stay in touch with us! Don't forget to Stumble It!
Grab the site feed or add to your Technorati favs.


Post Details

Post Date :
Thursday, Jun 16th, 2005 at 9:13 pm
Category :
Computers & Technology
Tags :
, , , ,
Do More :
Both comments and pings are currently closed.

Related Posts

Some posts related to the post you have just read:

Search this site for Related Posts

Google