- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2014 01:10 PM
First of all, I am doing this in order to create a filter on the service catalog.
I am looking for code that will refresh specific/all iFrames. Here is the problem.I have an iFrame on the left that contains a specific view of the user profile. I have been able to add a client script that will automatically save/update the profile if a box is checked. I then have a BR that adds that user to the group that was checked. I now need code that will update the iFrame on the right side.
Solved! Go to Solution.
- Labels:
-
Service Catalog

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-17-2014 06:13 AM
It sounds like you're inside of one iframe and trying to change the src on a different iframe. In this case when you call document, it's limited to the elements in your left iframe. In order to get around this, you should be able to use top to start at the top level document.
Try:
top.document.getElementById('gsft_main_az').src = top.document.getElementById('gsft_main_az').src
You could also do something like this:
top.document.getElementById('gsft_main_az').contentWindow.location.reload(true);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-29-2015 06:21 AM
Finally got the answer using CustomEvent.fire('frame.resized'); this will increase the size of the iframe by user interaction on the form. Cheers all.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-03-2017 03:24 AM
Hi Saurabh,
Please share the details on how you have achieved resizing of iFrame.
Thank You,
Narmi