Quiz and Javascript
Bodger, Simon
Simon.Bodger@cognos.com
Mon, 29 Oct 2001 17:06:10 -0500
In addition to this, if you have any common JavaScript code that doesn't
require any dynamic generation, consider using something like:
<script name="CommonJS" src="/common.js" ></script>
In your output, where /common.js is your JavaScript code, held in an ASCII
file on your webserver. It will get included by the browser when you view
the HTML.
It's far easier to maintain the JavsScript this way than having to modify
your reports every time.
Simon
-----Original Message-----
From: Darren Reely [mailto:darren.reely@latticesemi.com]
Sent: October 29, 2001 5:06 PM
To: Grace, Jim; 'powerh-l@lists.swau.edu'
Subject: Re: Quiz and Javascript
You have split it out into several strings such as the following...
DEFINE java char*100 = 'document.write("Click <AHREF=' &
+ "'javascript:jsfunction()'" &
+ '>here</A>");'
Darren.
"Grace, Jim" wrote:
>
> I am looking into converting some of our quiz reports into html with some
> JavaScript embedded. I am having difficulty in the way quiz handles the
> double quotes. In a text string I want the double quotes to be maintained
> in the string.
>
> For example:
>
> DEFINE java char*100 = "document.write("Click <A
> HREF='javascript:jsfunction()'>here</A>");"
>
> Does anyone know how I can keep the "Click...</A>" as is?
>
> Thanks
>
> = = = = = = = = = = = = = = = = = = = = = = = = = = = =
> Mailing list: powerh-l@lists.swau.edu
> Subscribe: "subscribe" in message body to powerh-l-request@lists.swau.edu
> Unsubscribe: "unsubscribe" in message body to
powerh-l-request@lists.swau.edu
> http://lists.swau.edu/mailman/listinfo/powerh-l
> This list is closed, thus to post to the list you must be a subscriber.
= = = = = = = = = = = = = = = = = = = = = = = = = = = =
Mailing list: powerh-l@lists.swau.edu
Subscribe: "subscribe" in message body to powerh-l-request@lists.swau.edu
Unsubscribe: "unsubscribe" in message body to
powerh-l-request@lists.swau.edu
http://lists.swau.edu/mailman/listinfo/powerh-l
This list is closed, thus to post to the list you must be a subscriber.
This message may contain privileged and/or confidential information. If you
have received this e-mail in error or are not the intended recipient, you
may not use, copy, disseminate, or distribute it; do not open any
attachments, delete it immediately from your system and notify the sender by
e-mail promptly that you have done so. Thank You.