function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sourav HazraSourav Hazra 

ajax call out

Hi,

We have a requirement of integrating salesforce.com with OBIEE reporting system. The OBIEE reports are accessible from salesforce.com customer community. We have a Middleware component in between which exposes a web service to salesforce.com and invoked on a button from sfdc. 
The web service accepts few parameters and based on that returns a dashboard URL which is then used to display the reports. 
My question is can we catch that url inside a controller and then use ajax call out method to show the reports? The reports will be a shown in a pop up window and the back ground application will be inaccessible during that time.
We did try direct url redirection and iframe solution but in both cases exact url is being displayed in the address bar or view source window which is a potential security threat.
 
An early response is much appreciated. Please let me know if you need more details.
 
Regards,
Sourav 
 
KevinPKevinP
Instead of an iframe, try using a PJAX technique. 

Using this technique in conjunction with an apex call out you could do something like this:

In your controller assign a string parameter = to the value of a PJAX request. This will return an HTML snippet that is jquery insertable into the DOM.

Write that PJAX string to your page

Use jquery to insert it into the proper place.

More detailed info about pjax can be found here: http://www.littlestreamsoftware.com/labs/learning-pjax/ or https://ntotten.com/2012/04/09/building-super-fast-web-apps-with-pjax/
Sourav HazraSourav Hazra
Hi KevinP, thanks for your prompt response. We will try this out and update you soon.

Regards,
Sourav