I'm having trouble accessing an XML document and using that XML document to direct me to a StyleSheet. The idea is to allow the application to support themes. I first need to read a config like xml document that directs me to a folder where a theme defination xml document. Which is similiar to this:
<?xml version="1.0" ?> <AirNote> <theme> <style>main.css</style> <tabs> <width>156</width> <rightOfTabs>34</rightOfTabs> <leftOfTabs>136</leftOfTabs> </tabs> </theme> </AirNote>
The second method I used is a common xmldoc object that is supposed to read the xml document. xmlDoc.load gives me a error:
TypeError: Value undefined does not allow function calls. at GetThemeSettings() (AirNote/lib/egt/Config.Pref.js:44) at LoadTheme() (AirNote/AirNote.html:59) at initialize() (AirNote/AirNote.html:54) at onload(event) (AirNote/AirNote.html:826)
Here is the js Class code I use to read the theme data where the nativePathToApplicationDirectory is the full string path to the application directory. Please help me find a proper solution to get the themes to work, thank you!
Message was edited by: JonKaros to condense message.
Hey, I am still having the problem. I'm trying a few more things. Any help would be appreciated.