That solves my file organisation issue. However I am now getting the following error when I load the plugin for a file that has got IsContent set to true
Basically I want to restructure the compiled folder so that I have :
app/scripts/models
app/script/views
app/script/controllers
So I am just trying to set that up in App Builder
Currently we can specify the path or URL to a source file. It would be nice if we could override the value placed in the app path so that we can organise our files better in the compiled folder.
Here is my code
On WebExtBackground
and in WebExtContent
Solved! Thanks again for all of your support!
Sorry to be a nuisance but how can communicate from the content to the app, so the app read the local storage and send you back the option's value ?
I have a variable in the browsers localstorage called "automationcoderecord". How can I access this from the WebExtContext ?
I am creating a browser plugin that highlights items on a page when it finds keywords. However, when the user clicks a hyperlink the code seems to stop working. How can I get the code to continue working when the user has navigated to another URL ?
AppBuilder has a number of visual and non-visual components. I am interested in dynamically creating these components in my code and adding event handlers to them. For example, how can I dynamically create an instance of the HTTP component in my code and add events for done and fail to it?
Just one more question. When I specify for my browser plugin what do I need to use as the path to enable my code to read the XML File ?
I have created 2 external JS Files. The first is called BaseClass.js and is a base class used to implement an inheritance mechanism. The second is called Config.js. Both of these have been added to the File Manager and have had their IsContent flag set to true.
Config.JS contains the following code
If I add the following line to WebExtContent it displays the message on the Console
However, if I add the following code to the Show Event of the view nothing happens.
So my question is how can I get this same external JS file to work in both the WebExtContent and in the event on the view ?
Thanks in advance
Thanks again David. I have something that is rather puzzling. I use the following code
The message for the error comes up and the error message contains "readyState":4,"responseText":" along with all of the text for the file it was meant to read. Suggesting that it had indeed read it.
Thanks David,
I was looking at the sample called "CordovaFile". It has the following code
Unfortunately this doesn't seem to work
I have some questions :
1. I am looking for a demo in the App Builder Samples that shows me how to read and process a local XML File. Does one exist ? If not where can I see an example ?
2. Will I have to include my file on the Others tab of the File Manager?
Thanks in advance
Thanks...I will definitely check out those sample applications.
Everybody can read the DecSoft support forum for learning purposes, however only DecSoft customers can post new threads. Purchase one or more licenses of some DecSoft products in order to give this and other benefits.