Jump to content
Software FX Community
programmine

getHtmlTag does not return relative path anymore

Recommended Posts

Hello guys,

we use ChartFX for a long time now and I recently needed to make some changes to the integration of the graphs in our webapplication. We have an asp file (VB) that builds the graph and calls the method getHtmlTag. In our old application we run some javascript that does the following:

form.target =  "graphframe"

form.action = "http:\\graphserver\epr.emrgraph.asp"

form.submit()

 this will load the asp page in one frame of the window and then return a path to the generated image called something like /ChartFXInt62/Temp/img.png

We want to get rid of the frames in this window because they make the application very inconvenient to use. I now changed the javascript code to something like this:

if (window.XMLHttpRequest) req new XMLHttpRequest();
else 

if (window.ActiveXObject)  req new ActiveXObject("Microsoft.XMLHTTP");

req.onreadystatechange function() {loadingDone("http:\\graphserver\epr.emrgraph.asp", "graphDiv");};
req.open("GET", "
http:\\graphserver\epr.emrgraph.asp", true)

function loadingDone(url, target) {

if (req.readyState == 4) { // only if req is "loaded"

if (req.status == 200) {  document.getElementById(target).innerHTML req.responseText; } }

The image gets generated correctly on the graphserver but the path returned for the image is not relative anymore and looks something like this: http://applicationserver/ChartFXInt62/Temp/img.png

Is this related to the way I run the asp?

Thanks,
Janett

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...