Post by dar on Mar 21, 2015 7:20:26 GMT 10
Hey guys I require some Help with something... I am adding extension support to my browser, however, I am unsure as to: 1. When to load the extension 2. How to load it 3. What to load (e.g. Background.html, popup.html) 4. Where to load it...
I understand that the use of ExecuteJScriptwithResults() but i dont know how to handle or maintain the extensions.
Can anyone please help me ASAP! Thanks,
|
|
Post by altair on Mar 21, 2015 23:55:23 GMT 10
This is my idea of doing what you said,
For 1. (i.e When to load the extension)..... You mean like when a user clicks it or when the app is starting. If you want when the user clicks it then. You can open a panel with a webview inside it with its source being the html file needed to be displayed as the content. If you want to know how to load it during program startup then it's simple but I will answer this with the answer of 2.
For 2. (i.e How to load it) Well, this is associated with the answer of 4. But here is the thing, You can maintain a dictionary of the app paths with app. Or loop through and find all the directories within the app folder. Then get all the visual references on startup (e.g icons).
For 3. (i.e What to load) Visual References First then when its time to show the extension load the panel or a separate window with the webview and set the source to the respective file.
For 4. (Where to load it....) I did not quite get it, If you meant were to keep it. Then best within your apps reach (i.e in your apps directory).
These all are my ideas and are being implemented into my Core Project. Good News:- Next Version of Core, more meaningful-one (hopefully) will be released soon.
Altair - The Flying One
|
|
Post by dar on Mar 22, 2015 1:31:49 GMT 10
Yay!! Thank you very much.
|
|
Post by altair on Mar 22, 2015 2:16:41 GMT 10
Just put the mark it as answer. I will be very contented.
Welcome, Altair - The Flying One
|
|
Post by dar on Mar 22, 2015 8:51:48 GMT 10
i did
|
|