Link to home
Start Free TrialLog in
Avatar of chilcote
chilcote

asked on

Give it your best shot

This one should be somewhat fun.   Im trying to link to http://www.adobe.com/homepage.shtml from within a frame in my website, but they have running a javascript which makes sure that the page loads into the entire window (not a new window, Im talking the target="_top" window).

If anyone can come up with a way to "beat" this, and enable me to keep www.adobe.com within one of my frames, Ill be very grateful.
Avatar of PBall
PBall

Oh no..darn frame..escape!! escape!!

Here is one way to do it.

If you can run cgi/server side script, you can load the page off screen (thru the cgi, strip the javacript part and reassemble the html page and then output it from the buffer to the client side.  EZ, eh?

COULD U Please write the frameset lines u are using ?
( target = .......)

REGARDS,
JOHN
Avatar of chilcote

ASKER

PBall:

Do you have a script-example of somekind?

John:

Its just your generic frameset.   The user will click on a link in the nav frame, and Id like Adobe's site to come up in the "main" frame.

<html>

<head>
<title>GoalView</title>
</head>

<frameset FRAMEBORDER="0" FRAMESPACING="0" MARGINWIDTH="0" MARGINHEIGHT="0" RESIZE="NO" cols="160,*">
  <frame SRC="2.html" NAME="nav" target="main" marginwidth="0" marginheight="0" scrolling="vertical" frameborder="0" noresize>
  <frame SRC="3.html" NAME="main" target="main" marginwidth="0" marginheight="0" scrolling="vertical" frameborder="0" noresize>
  <noframes>
  <body>
  </body>
  </noframes>
</frameset>

<frameset>
  <noframes>
  </noframes>
</frameset>
</html>

chilcote: nope, never really done it myself, but it's the same concept when you "steal" a feed from another site, say for a stock ticker update.

I might try it someday just to know if I can do it :) in my case, I'll be using VB Internet Transfer Protocol component, with this thing, I believe I can read another website into a string buffer, parse the buffer looking for specific part and just get what I want.  It's kinda like a filter system.  get your input and get the desired output.

I think this is the only way to do it (using server side help).  I can't think of any way to do it purely in client side scripting.

Hehe, frame escaper killer - chuckle

Okay, I suppose that helps.....but Id really like to get my hands on a code example or two...or at least find a site which does what Im looking for.    But yes, I agree...server side scripting seems to be the only way to do it.

ASKER CERTIFIED SOLUTION
Avatar of PBall
PBall

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks.