I guess I don't understand the context here. What is the "addJmol" command?
Why is it being created as a script tag and not just as

<script>
addJmol()  // whatever that may be....
</script>

Bob

On Fri, Aug 22, 2008 at 2:22 PM, Matthew Zwier <[EMAIL PROTECTED]> wrote:

> If it's in the HTML page itself, wrapping the code in a CDATA section
> should help:
>
> <script>//<![CDATA[
> var loadJmol = "<script> type='text/javascript'>addJmol(molecule,
> divInc);</script>";
> //]]></script>
>
> Not sure on the compatibility factor for older browsers, but anything
> recent should digest it just fine.
>
> MZ
>
> On Fri, Aug 22, 2008 at 12:38 AM, Dean Johnston <[EMAIL PROTECTED]>
> wrote:
> > I'm not sure of the context, but this should be OK if it's part of an
> > external javascript file.  If it's within an HTML page, the browser is
> > interpreting the </script> in your string as the closing tag of your
> script,
> > thereby rendering everything that follows as HTML.
> >
> > Dean
> >
> > On Thu, Aug 21, 2008 at 11:20 PM, Jeff Hansen <[EMAIL PROTECTED]>
> wrote:
> >>
> >> Can anyone help me figure out what is wrong with this line of code?
> >>
> >>                var loadJmol = "<script
> >> type='text/javascript'>addJmol(molecule,
> >> divInc);</script>";
> >>
> >> What is happening is the </script> is not being recognized or
> >> something and everything from the closing quotation mark on, including
> >> the next several lines until the next </script>, is being displayed as
> >> text on the web page.
> >>
> >>
> >> ***********************************************
> >> Jeff Hansen
> >> Department of Chemistry and Biochemistry
> >> DePauw University
> >> 602 S. College Ave.
> >> Greencastle, IN 46135
> >> [EMAIL PROTECTED]
> >> ***********************************************
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>



-- 
Robert M. Hanson
Professor of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to