Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
countnazgul
Contributor III
Contributor III

Qlikview Extension - load html

I'm trying to load html snipped from html file which is located in the same folder as the extension using the following code:

var template_path = Qva.Remote + "?public=only&name=Extensions/TestExtension/";

// ... Qva.AddExtension( ...

$.ajax({        

  url: template_path + "test.html",     

  type: "GET",

  dataType: "text",

  data: null,

  success: function (data) {

     console.log('data: ' + data )

  },

  error: function (error) {

     console.log('error: ' + error)

  }

});

But the ajax call return an error:

{"readyState":0,"responseXML":{},"responseText":"<div>TEST!</div>","status":0,"statusText":"error"}

As you can see the "responseText" is returned but the overall ajax call is in error.

I've put my logic in the "error" part of the call and all works but this shouldn't be like this. 

Did  someone have any suggestions how to fix this?

Thanks!

Stefan

0 Replies