DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2004
    Posts
    2

    connecting javascript with XML

    hi have this WYSWG Editor made in XML it code is like this



    <AI:aiEditor id="aiEditor"
    color="buttonface"
    height="400"
    stylesheet="internal.css"
    flag1="flagqq"
    width="600"
    >
    <br>
    <p align="center"><b>Welcome to Editor !</b> <img src="emote/emo_smiley.gif"></p>

    </AI:aiEditor>
    now there is a verable flagpp which i get from Javascript i am new to XML so i dont know how i can bring it from javascript to XML

    here is the Javascript code


    <FORM NAME="joe">
    <INPUT TYPE="hidden" NAME="burns">
    </FORM>

    <SCRIPT LANGUAGE="javascript">

    var locate = window.location
    document.joe.burns.value = locate

    var text = document.joe.burns.value

    function delineate(str)
    {
    theleft = str.indexOf("=") + 1;
    theright = str.lastIndexOf("");
    return(str.substring(theleft, theright));
    }
    var flagqq=delineate(text);
    /* document.write(flagqq); */

    </SCRIPT>

  2. #2
    Join Date
    May 2004
    Posts
    103
    Hi anhabib,

    "now there is a verable flagpp which i get from Javascript i am new to XML so i dont know how i can bring it from javascript to XML "

    What are the words "verable flagpp"? I understand that you need to obtain some kind of object, and it is obtained using javascript, but you won't be able to obtain that object, using javascript, inside an XML document. XML is for content only, and the only way javascript can be inside an XML document is for it to be there as content, which means Parsed Character Data. The javascript can't even be used as Character Data, so you will need to obtain the object another way.

    Anyhow, perhaps you can provide a little more information on what this object is (I can't interpret the words 'verable flagpp) and what it's used for. Provide more thorough details of what you are trying to accomplish. Thanks.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links