473,406 Members | 2,956 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Javascript functions not identified by Firefox

I have a web application that uses xsl and javascript which runs
smoothly on IE. Recently i decided to try it on FireFox 1.0 . But the
same application gives javascript errors as displayed in the console.
What i found out is that FireFox doesnt recognize Javascript functions
from a xsl page. Its ok from a html page.

I have given a code of a xsl page. Can someone point what possibly
could be the problem.

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/spider-xml">

<html>
<head>
<script type="text/javascript"
language="javascript"><xsl:comment><![CDATA[

function validate(){
alert("Help ! This function is not been called ...")
}

]]></xsl:comment></script>

</head>
<body>
<table>
<tr>
<td>
<a href="#xx">
<xsl:attribute name="onClick">validate();</xsl:attribute>
Some link
</a>
</td>
</tr>
</table>
</body>
</html>

</xsl:template>
</xsl:stylesheet>
Thankyou for your time.
Regards
Rose Girl.

Jul 23 '05 #1
1 1731


Rose Girl wrote:
I have a web application that uses xsl and javascript which runs
smoothly on IE. Recently i decided to try it on FireFox 1.0 . But the
same application gives javascript errors as displayed in the console.
What i found out is that FireFox doesnt recognize Javascript functions
from a xsl page. Its ok from a html page.

I have given a code of a xsl page. Can someone point what possibly
could be the problem.

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
Add
<xsl:output method="html" />
here and
<xsl:template match="/spider-xml">

<html>
<head>
<script type="text/javascript"
language="javascript"><xsl:comment><![CDATA[


get rid of that comment e.g. simply use
<script type="text/javascript"><![CDATA[
... script goes here ...
]]></script>
then I think the function should be found.

If you still have problems then with Firefox then please tell us the
exact error message you get in the JavaScript console.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

72
by: Stephen Poley | last post by:
I have quite often (as have probably many of you) come across HTML forms with irritating bits of Javascript attached. The last straw on this particular camel's back was a large form I was asked to...
26
by: Patient Guy | last post by:
Has anyone written code that successfully manipulates binary file data using Javascript? It might---and in the case of doing I/O, will---make use of browser- specific functions (ActiveX/COM with...
18
by: Chris Ianson | last post by:
Hi geniuses (or is that genii, or genies) The challenge is as above really. I have a page with an iframe in it, and need to call a JS function in the *parent* page, *from* inside the iframe. ...
3
by: Brian A | last post by:
I have written some Javascript that works perfectly in Firefox - no errors reported. The dreaded MSIE 6 produces nothing but a long line of 'undefinedundefinedundefinedundefinedundefined ....'...
12
by: tim | last post by:
I am using foldoutmenu 3 and am having problems with viewing my menus in firefox. On my sub3 menus i have more than one line of text in some places. firefox does not recognise that there is more...
2
by: Altman | last post by:
I have created an ascx control and I am calling registerclientscriptblock. The path to the js file is relative to the aspx page and not the ascx file. The function runs fine in IE7 but in...
6
by: scotty | last post by:
I have a script that loops through an existing table list and prepares each href element node to trigger a function when an image is clicked. The function that will be run passes a property value...
3
sumaiya
by: sumaiya | last post by:
The javascript functions which are fine in firefox 1.0.2 are not being called in firefox 2.0.7. I hve javascript enabled and hve also checked "config:about". Can you please tell me the changes in...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.