[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Can't figure out why this javascript isn't working

Subject: RE: Can't figure out why this javascript isn't working in my XSLT
From: "Bruso, John" <jbruso@xxxxxxxxxxxx>
Date: Mon, 27 Feb 2006 11:34:00 -0700
javascript isn t working
Hi Andy,

I got it... for whatever reason.. perhaps because my script was
evaluating the referring URL, I'm not sure.. but, I could not <script
src=...> my javascript. I had to include it in the page within
<![CDATA[]]> tags... once I did that, it worked. Weird since all my
other .js scripts are being called via the <script src=> method.

Anyhow, thanks for your help.

John

    -------------------------
John Bruso
IS Developer
Sheridan College
ph  307.674-6446-2608






-----Original Message-----
From: Andrew Franz [mailto:afranz0@xxxxxxxxxxxxxxxx]
Sent: Friday, February 24, 2006 6:05 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  Can't figure out why this javascript isn't working in
my XSLT

replace this:

<SCRIPT src="(path)/link-parser.js" type=text/javascript> </SCRIPT>

with this:
<SCRIPT src="(url)/link-parser.js" type=text/javascript><!--
--></SCRIPT>

I had the same problem (Tomcat 5.5.12) which seems to resolve itself if
the SCRIPT tag has a nonempty body. I have no idea why this is.

I use a comment as the body to prevent problems with upgrades later.



Bruso, John wrote:

>I have two pages that are built from the same code.. one is just Basic
HTML and the other is an XSL application.
>
>One of my JavaScripts is working correctly for the basic HTML version,
but  is not working correctly for my XSLT version.
>
>FYI: The script takes the variable uP_fname=eservices-outlook from the
URL and places inside a hidden field within the login form.
>
>Basic HTML Version
>http://www.sheridan.edu/uportal/login/index.htm?uP_fname=eservices-outl
ook
>
>JS Code:
><!-- ====== BEGIN DEEP LOGGIN CODE ======== -->
><SCRIPT
src="http://www.sheridan.edu/uportal/login/index_files/link-parser.js"
type=text/javascript> </SCRIPT>
>
><SCRIPT>
>var args = parseQueryString ();
>var myValue = args["uP_fname"];
>alert (myValue);
></SCRIPT>
><!-- ====== END DEEP LOGGIN CODE ================ -->
>
>XSLT Version
>https://portal.sheridan.edu:8443/Portal/render.userLayoutRootNode.uP?uP
_fname=eservices-outlook
>
>JS files: <script type="text/javascript"
src="https://portal.sheridan.edu:8443/Portal/media/edu/vt/portal/layout/
TabPageColumn/InlineCustomization/scripts/link-parser.js">
</script><script type="text/javascript"
src="https://portal.sheridan.edu:8443/Portal/media/edu/vt/portal/layout/
TabPageColumn/InlineCustomization/scripts/link-parsed-variable.js">
</script>
>
>
>You'll notice the JavaScript Alert prompt pop up right away for the
Basic HTML version... but not for the XSLT....
>
>Is there something wrong with my syntax? Or did I just miss something
silly?
>
>I don't understand.
>
>Thanks,
>
>John
>
>
>-------------------------
>John Bruso
>IS Developer
>Sheridan College
>ph  307.674-6446-2608

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.