Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Permission Denied Javascript

Hi,

I have a script to basically just draw a 3D surface graph, but I keep getting this error:

Qva.LoadScript('http://www.google.com/jsapi', function () {

I get Permission Denied for this. Anybody know why.... please Help

Capture.PNG

I have attached the scripts that I am trying out.

Any Help will be greatly appreciated...

Kind Regards

Razak

1 Solution

Accepted Solutions
Lee_Matthews
Former Employee
Former Employee

Razak

The extension object is working now. You can download it here.

http://community.qlik.com/docs/DOC-3202

It could use some more integration, but that version of the chart has some limitations. As mentioned in the link, I am going to look to integrating the improved version of the chart instead.

Note that it doesnt work in IE though. The chart API leverages functionality that doesnt exist in IE.

View solution in original post

10 Replies
Alexander_Thor
Employee
Employee

Check out this thread http://community.qlik.com/message/216805 that will help you with your google api problem.

Some quick notes:

You are assigning a callback function "setup", google.setOnLoadCallback(setUp);, this function does not exist? The referenced thread above should help you with that.

You target a element that dosen't exist in the DOM, "new greg.ross.visualisation.SurfacePlot(document.getElementById("surfacePlotDiv"));"

You would need to either create your own element or work within the context provided with the extension, i.e this.

You are basically creating a straight table with google, why not leverage the QlikView Data model?

Anonymous
Not applicable
Author

Hi,

If you have any other links like the one in your post or any other resource material, please let me know.

Thanks

Kind Regards

Razak

Lee_Matthews
Former Employee
Former Employee

Hi Razak

Did you get this working? I tried using the same code library to render a surface chart, and all it produced was a blank. I then tried creating a web page using the sample code on the web at http://javascript-surface-plot.googlecode.com/svn/trunk/googleVizApi.html and it did not work either.

Thanks

Lee

Anonymous
Not applicable
Author

Hi,

Unfortunately I have not managed to get this working, have not had the time to look at this in much detail.

I am going to try to use Actionscript to create 3D graphs, using it's 3D libraries like PaperVision3D and then try to use Qlikview to pass this data to the program using Javascript.

This is just an idea at the moment....

If you manage to get it working please let me know.

Kind Regards

Razak

Lee_Matthews
Former Employee
Former Employee

Razak

I got the standard code from the web working - I simply missed that the js files needed to be in a sub-directory named javascript. Now to try getting it working inside QlikView. I will have a go at that today.

Regards

Lee

Lee_Matthews
Former Employee
Former Employee

Hi Alexander

I have been working on this as well. We are trying to leverage a javascript library for a surface chart, that can be found here: http://javascript-surface-plot.googlecode.com/svn/trunk/googleVizApi.html Like Razak, I am trying to get the self contained code working in QlikView before I try feeding it data from the data model. It works fine in the browser, but when I adapt it to a QlikView extension it fails at the point where I call the draw method.

In your post you say the following:

You target a element that dosen't exist in the DOM, "new greg.ross.visualisation.SurfacePlot(document.getElementById("surfacePlotDiv"));"

This should work though if the relevant javascript libraries have been loaded and the element exists on google charts, shouldnt it?

Thanks

Lee

Lee_Matthews
Former Employee
Former Employee

Razak

The extension object is working now. You can download it here.

http://community.qlik.com/docs/DOC-3202

It could use some more integration, but that version of the chart has some limitations. As mentioned in the link, I am going to look to integrating the improved version of the chart instead.

Note that it doesnt work in IE though. The chart API leverages functionality that doesnt exist in IE.

Anonymous
Not applicable
Author

Hi Lee,

Thanks it works great.

Kind Regards

Razak

Lee_Matthews
Former Employee
Former Employee

No problem. I am happy to help. Note that the 5 colours on the properties page do not flow through to the chart. I will probably integrate those properly in the WebGL version of the chart when I build that one. Also, if you want to force zero value rows to you be included on your chart, then you need to add a second expression to the chart properties that will always equate to a value. This will have no effect on the chart though, as it only uses the first three columns of data fed to the chart (2 dimensions and one measure).