473,473 Members | 1,882 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Problem with Firefox?

I am in the process of converting some program output from HTML to
XML/XSLT. I have an XSL stylesheet that inserts some javascript in the
output that gets called further down to pop up a window). It works fine
in IE6 but not in Firefox/Netscape. See...

http://kowallekfamily.com/genealogy/.../desc-3817.xml

It is the Note link (just to the right of Henry Bales) which is supposed
to pop up a window. In Firefox this link even looks strange (note the
space between the word "Note" and its underscores.

I am not even sure that this is a XML/XSLT problem. But I have a similar
HTML page at...

http://kowallekfamily.com/genealogy/.../desc-3817.htm

....that works just fine in Firefox. I compared the XSL transform output
to the HTML page and the pop-up code looks virtually identical.

Is this an XML/XSLT problem just with Firefox or should I be looking
elsewhere?

I am using Firefox 2.0.0.14.

TIA,

--

Dennis
Jun 27 '08 #1
6 1921
Haven't checked, but at a guess it sounds more likely that your
javascript is nonportable...
Jun 27 '08 #2
On Mon, 05 May 2008 19:13:47 -0400, "Joseph J. Kesselman"
<ke************@comcast.netwrote:
>Haven't checked, but at a guess it sounds more likely that your
javascript is nonportable...
I tried replacing the javascript:history.back(1) [which worked in
Firefox] with javascript:alert('blah') [which did nothing in Firefox].
So, unless I am wrong, it looks like some javascript which works on an
HTML page will not work on XML/XSLT page under Firefox (and Netscape).

--

Dennis
Jun 27 '08 #3
In article <6u********************************@4ax.com>,
Dennis <no****@nowhere.comwrote:
>I am in the process of converting some program output from HTML to
XML/XSLT. I have an XSL stylesheet that inserts some javascript in the
output that gets called further down to pop up a window). It works fine
in IE6 but not in Firefox/Netscape. See...

http://kowallekfamily.com/genealogy/.../desc-3817.xml

It is the Note link (just to the right of Henry Bales) which is supposed
to pop up a window. In Firefox this link even looks strange (note the
space between the word "Note" and its underscores.
Look at the Firefox Error Console. It probably says that NewNote is
not defined. I think this is because you are putting your Javascript
inside a comment. This was common in the days when some browsers
didn't understand <script>, but it makes no sense when you are using
XSL. Probably the browser is just ignoring comments generated by XSL.

(I suspect that IE effectively writes out the result of the transform
as text and then reparses it as an HTML document, while Firefox uses
the result tree directly.)

The space between "Note" and the underline isn't surprising: the word
is inside <sup>. Put the <suparound the whole <aif you want the
link itself to be a superscript.

-- Richard
--
:wq
Jun 27 '08 #4
On 5 May 2008 23:54:16 GMT, ri*****@cogsci.ed.ac.uk (Richard Tobin)
wrote:
>The space between "Note" and the underline isn't surprising: the word
is inside <sup>. Put the <suparound the whole <aif you want the
link itself to be a superscript.
Thanks. That fixed one problem ... although <a><sup>...</sup></aworked
fine in an HTML doc in Firefox. Just another difference between the way
HTML and XML is handled in Firefox.

--

Dennis
Jun 27 '08 #5
On 5 May 2008 23:54:16 GMT, ri*****@cogsci.ed.ac.uk (Richard Tobin)
wrote:
>Look at the Firefox Error Console. It probably says that NewNote is
not defined. I think this is because you are putting your Javascript
inside a comment. This was common in the days when some browsers
didn't understand <script>, but it makes no sense when you are using
XSL. Probably the browser is just ignoring comments generated by XSL.

(I suspect that IE effectively writes out the result of the transform
as text and then reparses it as an HTML document, while Firefox uses
the result tree directly.)
Bingo. Removing the comments did the trick. Thanks!

--

Dennis
Jun 27 '08 #6
On Mon, 05 May 2008 19:27:10 -0400, Dennis <no****@nowhere.comwrote:
>On Mon, 05 May 2008 19:13:47 -0400, "Joseph J. Kesselman"
<ke************@comcast.netwrote:
>>Haven't checked, but at a guess it sounds more likely that your
javascript is nonportable...

I tried replacing the javascript:history.back(1) [which worked in
Firefox] with javascript:alert('blah') [which did nothing in Firefox].
I just tried creating a small sample to show this behavior and the alert
worked fine. Time to call it quits for the night...

--

Dennis
Jun 27 '08 #7

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

Similar topics

7
by: tagdance | last post by:
Hello friends, I have a very interesting problem with my css files and firefox - I guess ! Listen: I have set up my new website www.tagdance.de For testing purpose I have mirrored this...
7
by: Merlin | last post by:
Hi there, I have a serious problem with opening a new window with the help of JavaScript. The problem only occures with Firefox. Once you click on the item which fires up the open function, the...
3
by: cwdjrxyz | last post by:
I suggest that everyone using a recent version of Firefox read http://forums.mozillazine.org/viewtopic.php?t=315656&sid=b1db62861b8da29535c43e9c5c527c3b at once. This new security problem was...
13
by: Giggle Girl | last post by:
Hi there, I am having a problem with the behavior of Firefox, where lefthand column content is not resized properly after it is "collapsed" and then "re-expanded". An online demo is available...
7
by: Xah Lee | last post by:
Look at this page http://xahlee.org/emacs/wrap-url.html Look at it in Firebox, look at it in Safari, in Opera, and look at it in Microsoft Internet Explorer. The only fucked up case, is...
1
by: tinnews | last post by:
I'm running a python script via the apache ExtFilterDefine directive, it works basically as expected *except* that when I change the script apache/firefox continue to run the old version of the...
3
by: willyWEB66 | last post by:
Hi everyone, I'm having problem with the sequence of execution for xml.onload. It works fine if your not passing parameters to onload event but my code needs to pass parameter to its function. I'm...
8
by: Atemporal | last post by:
When I click the link of this group, it shows the followings errors. Cannot find comp.lang.c%2B%2B There is no group named comp.lang.c%2B%2B. * The link you followed may be broken or...
15
by: Mike Driscoll | last post by:
Hi, I've had this niggling issue from time to time. I want to create a shortcut on the user's desktop to a website that specifically loads Firefox even if Firefox is not the default browser. ...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
1
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,...
1
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.