
June 21st, 2004, 03:36 PM
|
|
Registered User
|
|
Join Date: Nov 2003
Location: Pakistan
Posts: 7
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
connecting javascript with XML
hi have this WYSWG Editor made in XML it code is like this
Code:
<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
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>
|