getiframes

Post Reply
gaurav.shetti
Posts: 119
Joined: Fri Feb 27, 2009 9:09 am

getiframes

Post by gaurav.shetti »

i have a webpage(vortex page) wherin i am having an iframe which calls an asp page.

<iframe src="$ajax" id="ifr" width="70%" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" style="z-index:1"></iframe>

I want to fetch this content if possible from javascript and paste it in div. I saw that there was a method getiframes which can do this function. Can you please elaborate?
User avatar
John
Site Admin
Posts: 2622
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

getiframes

Post by John »

I'm not quite clear on what you are trying to do.

The Vortex page is generating the <iframe> code? If so maybe doing:

<div><fetch $ajax><fmt %s $ret></div>

is what you want, where Vortex fetches the content and puts it in the div?
John Turnbull
Thunderstone Software
gaurav.shetti
Posts: 119
Joined: Fri Feb 27, 2009 9:09 am

getiframes

Post by gaurav.shetti »

i was actually trying this :
http://thunderstone.master.com/texis/ma ... 49ba907410

But since this wasnt possible as the page i was fetching always showed SSO Authentication page due to which contents were not being fetched.

Hence now i am defining an iframe in the vortex page which would be hidden at all times. The iframe would load the target and now i want to show the contents of the iframe in a div on the parent page instead of it being shown in an iframe.
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

getiframes

Post by mark »

If it's possible you'd have to put javascript on the page to copy the content from the iframe to the div after loading was complete.
User avatar
John
Site Admin
Posts: 2622
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

getiframes

Post by John »

If the iframe contents is coming from a different server you should not be able to access with javascript on your page.

It should be possible to get the proxy you were discussing in the other thread to work. The message board may not be the appropriate place to work through the details, but you can follow the Contact link at the top of the page to see about engaging us to look into the precise details of how to get the proxy to work.
John Turnbull
Thunderstone Software
gaurav.shetti
Posts: 119
Joined: Fri Feb 27, 2009 9:09 am

getiframes

Post by gaurav.shetti »

it is fine you can discuss it here. Actually the thing is such that i need to call the page from the other server which validates my session from the cookies and somehow either the values dont match or seems like the cookies are actually not set at the server level.
What i mean to say is that when i call an intermediate page which is on my server, maybe it doesnt have the cookie details. But forwarding the cookies as you have mentioned doesnt seem to work. seems the cookies dont match.
gaurav.shetti
Posts: 119
Joined: Fri Feb 27, 2009 9:09 am

getiframes

Post by gaurav.shetti »

User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

getiframes

Post by mark »

Maybe if you describe in more detail, what you did, what happened, what you expected.
Post Reply