XML and Javascript Question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • GoGoGulfcoast.com

    XML and Javascript Question

    Is there a Javascript command that will parse an xml tag and then
    simply output the result right backing the <scriptcode block? I
    would like to use this to help populate my "You Are Here" status block
    on the following page:



    Thx,
    Mark
  • Randy Webb

    #2
    Re: XML and Javascript Question

    GoGoGulfcoast.c om said the following on 2/17/2008 8:59 PM:
    Is there a Javascript command that will parse an xml tag and then
    simply output the result right backing the <scriptcode block? I
    would like to use this to help populate my "You Are Here" status block
    on the following page:
    >
    http://www.gogogulfcoast.com/go.asp?...state&state=AL
    It would be easier to answer you if you would give an example of what
    you are trying to do.

    My XML file looks like this:

    <sample>Data here</sample>

    I want to be able to read "Data here" and do this with it:

    <script type="text/javascript">
    Data here
    </script>

    Is what I *think* you are asking.

    --
    Randy
    Chance Favors The Prepared Mind
    comp.lang.javas cript FAQ - http://jibbering.com/faq/index.html
    Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/

    Comment

    Working...