Finally, to solve this issue ... I did two things : ( considering there are only 2 languages that are taken into considerations so .. )
1st ) I embeded the js script inside the html page and put in some python codes into it, and also to solve the xml url calling inside the js script ( with condition statements etc .. ) 2nd ) I created 2 xml files ( one for english, and the other one for the french language .. ) so that way, depending on the language of the user, the appropriate xml file is parsed for data by the script embeded in the corresponding view ! On Friday, July 20, 2012 5:44:00 PM UTC-4, Don_X wrote: > > thank you Derek .... > > However, If the data ( text, pics, sizes, tags. ... ) is in the xml file ( > within the static folder ), I will not be able to provide translation for > that information by using the web2py object T( ) for translation before > viewing those informations ... so I was wandering if I can have my > interactive map with the text information data ( from another source than > xml ) so it can be serialised or translated when needed ( such as in french > ) like the rest of the app .. And that is where I am a stuck !! .. > > thank you for your input .. it got me to understand more about xml and > python ! ... > > > > On Friday, July 20, 2012 4:04:04 PM UTC-4, Derek wrote: >> >> Yes, don... XML drive means it takes an XML file as source for the map. >> It appears the XML is handled client side via javascript. There are no >> arguments passed to the XML so it is a static file. You would put it in >> your STATIC folder. >> >> On Friday, July 20, 2012 10:58:13 AM UTC-7, Don_X wrote: >>> >>> >>> More information regarding this initiative : >>> >>> the scripts used for the interactive map is the one found at : >>> >>> http://codecanyon.net/item/interactive-svg-canada-map/2355460 >>> >>> It is said to be XML driven >>> >>> and i wish to port it to my web2py app. ..... >>> >>> But i am hitting a wall with this ! ... the xml file is used as data >>> source for the JS ( jquery ) >>> >>> I have looked at various alternatives to xml on the web for interaction >>> possibility with various scripting languages like JS, or Python etc .. >>> .... I know there is YAML .... >>> >>> I am thinking that YAML can replace the xml method for data interaction >>> with the js script .. and possibly be also serialized by web2py for >>> translation (T) ?? ... >>> >>> can anyone help me with this or shed some light about this for me ... I >>> am stuck ..??? .. thank you >>> >>> --