I'm trying to work more efficiently and test my extension object in a browser before bringing it into QV.
To do this, I need to have a stand-alone HTML to test on the browser. To avoid duplication, I want to import the relevant section of the stand-alone HTML into the QV extension object.
I attempted to do it as follows...
Add empty container during document load $('div[title="extension"] ~ .QvContent').append("<div id='container'></div>");
Use the jQuery load method to import the relevant section of the stand-alone HTML doc $("#container").load(template_path + "extension.html #snippet"
The problem I have is how to get the correct URL to address the HTML file which is on my local hard drive.
I tried
absolute referencing from the root of my C drive
the same reference that Qv uses for loading extension object components Qva.Remote + "?public=only&name=Extensions/CB/extension/"
moving the source HTML doc to the Program Files\QlikView folder
None of these attempts have worked, can anyone advise if this is possible?
Sample code...
var template_path = Qva.Remote + "?public=only&name=Extensions/CB/extension/";
function extension_Init() {
// Use QlikView's method of loading other files needed by an extension.
// These files should be added to your extension .zip file (.qar)