Dear All,
The charting component I'm developing renders a background image against which the user makes annotations. The image is loaded in the component's Javascript code.
Is there a way to work out the full URL in javascript (including the server address, port and the app url)? The image is managed by Resource Manager.
As a workaround, I am attempting to generate the full URL in the parent component's java class and pass it as a parameter to the javascript method. I'm using the following line for this:
session().resourceManager().urlForResourceNamed("branding/EzChart/BodyChart.jpg", true, true);But this is generating a URL with an incorrect number (in red below).
URL: https://localhost/EasyCare2.5/AribaWeb/ad/content/AWXDebugResourceActions/2/branding/EzChart/BodyChart.jpgWhen I look at the other resource URLs in Firefox's web console, i see a different number (19)
GET
http://localhost:8080/EasyCare2.5/AribaWeb/ad/content/AWXDebugResourceActions/19/branding/EzChart/EzChart.css [HTTP/1.1 200 OK 1ms]
GET
http://localhost:8080/EasyCare2.5/AribaWeb/ad/content/AWXDebugResourceActions/19/branding/EzChart/EzChart.js [HTTP/1.1 200 OK 1ms]
I replaced 2 with 19 in the Image's URL and the browser was able to GET the resource.
What does the number in the URL mean? Why is it different in my case (i.e., what am I doing wrong)?
With regards,
Sarosh
...