Linking to a View in the parent from a custom tab iframe

Forum for users and developers of Bullhorn's API service.

Moderators: StaffingSupport, s.emmons, BullhornSupport

Post Reply
bensmith1
User
Posts: 6
Joined: Wed Feb 28, 2018 10:58 pm

Linking to a View in the parent from a custom tab iframe

Post by bensmith1 »

I am trying to open up a Candidate View page from within a custom tab iframe.

If I link to the view using OpenWindow.cfm from within the child iframe there is a lengthy redirect process before opening the view.

Is there a way to avoid this and open the View directly in the parent iframe as if you had just clicked on a candidate record from a candidate list in the main view?

Thanks!

Ben
bensmith1
User
Posts: 6
Joined: Wed Feb 28, 2018 10:58 pm

Re: Linking to a View in the parent from a custom tab iframe

Post by bensmith1 »

I figured this out.

Use a hidden iframe within the Custom Tab html
eg.

Code: Select all

<iframe style="display:none" id="ifloader"></iframe>
Then in the click event:

Code: Select all

document.getElementById('ifloader').contentWindow.location = url + "/OpenWindow.cfm?id=10&entity=Candidate&idList=10,7&View=Overview&staffing=1"
It will load the View without launching a new window and leave your Custom Tab state intact.
atibbles
User
Posts: 6
Joined: Tue Feb 19, 2019 6:54 am

Re: Linking to a View in the parent from a custom tab iframe

Post by atibbles »

Does this still work? I tried a variation and Bullhorn did not appear to like the iFrame and requested a login.
Post Reply