Thank you,
So I made a var object at the beginning of my HTML assigning a worth
of the session token and name:
var variablecoin = new Object();
variablecoin.worth = "<?php echo $_SESSION['token'] ?>";
variablecoin.name = "vc";
In the PHP the $_SESSION['token'] is assigned a new "uniqid" and I
passed the PHP $coin var in the <coin> node of the returned XML. Now
I'm attempting to update variablecoin.worth in the getMarks(url)
function of the javascript with the returned $coin var but it's not
updating variablecoin.worth. A second user search returns "Invalid
Token" :
...
if (request.readyState == 4)
{
var xmlDoc = request.responseXML;
var token = xmlDoc.documentElement.getElementsByTagName("coin");
coin = token[0].getAttribute("newcoin");
document.getElementsByName("vc").worth = coin;
var markers = xmlDoc.documentElement.getElementsByTagName("marker");
...
Page- http://www.dockhawk.com/
JS- http://www.dockhawk.com/javascript.js
Thank you for any pointers and your time.
On Oct 6, 5:28 pm, William <[EMAIL PROTECTED]> wrote:
> On Oct 7, 10:32 am, Lan Mind <[EMAIL PROTECTED]> wrote:> // Start XML file,
> echo parent node
> > echo '<markers>';
> > // Iterate through the rows, printing XML nodes for each
> > // End XML file
> > echo '</markers>';
> > //begin coin tag
> > echo '<coin>';
> > echo '</coin>';
>
> the XML file can only have one parent node, so the <coin> will have to
> move inside a new parent node, and you will need to alter the XML
> parsing to accomodate the <markers> moving down one level, like
> <response>
> <markers>
> <marker>
> </markers>
> <coin id="38383882348324738473" />
> </response>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---