Jump to content

I this possible... (Js and XML)


Recommended Posts

I have a mysql query that gets some info that is stored in a variable... The variable is written to an XML file then read by a Javascript and used in an info box for Google Maps... Example variable contents...

 

<font color=#009933></font><font color=#DD7700>EGSS</font> - <font color=#EE0000>BPK</font></font> - SAM</font> - GIBSO</font> - EGTE

 

That is called in the Javascript and in theory should have different coloured sections in it... is it possible to do what i am trrying to do... i am having some trouble with making it work and am trying to narrow down the problem... all i need to know is whether the above is possible...

 

Thanks in advance...

Link to comment
https://forums.phpfreaks.com/topic/41484-i-this-possible-js-and-xml/
Share on other sites

Sorry for lack of clarity/existance.. i was in a hurry... Basically...

 

Can you store a section of html tags in an xml file then call then in a section of javascript and have them still working...?

 

i.e. if i used the font example... would the font colour still be different... i just realised that the notation i gave in the first post is a load of ****...

 

i hope thats clearer... HTML->XML->Java->Functioning Tags...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.