Solved

Give it your best shot

Posted on 1999-01-20
7
185 Views
Last Modified: 2010-04-09
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.
0
Comment
Question by:chilcote
  • 3
  • 3
7 Comments
 
LVL 6

Expert Comment

by:PBall
ID: 1845502
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?

0
 

Expert Comment

by:john_19
ID: 1845503
COULD U Please write the frameset lines u are using ?
( target = .......)

REGARDS,
JOHN
0
 

Author Comment

by:chilcote
ID: 1845505
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>

0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 6

Expert Comment

by:PBall
ID: 1845506
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

0
 

Author Comment

by:chilcote
ID: 1845507
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.

0
 
LVL 6

Accepted Solution

by:
PBall earned 300 total points
ID: 1845509
Here is a sample code on how to use Internet Transfer Protocol from inside ASP:

<%
Set Inet = Server.CreateObject("InetCtls.Inet.1")
    Inet.RequestTimeOut=30
    Inet.Url = "http://www.yahoo.com"

    //retrieve the web page into a string buffer.
    Content = Inet.OpenURL

    //you can parse the value of Content string here..
    //and take out the script parts.
    NewContent = filter(Content)

    //output the filtered content to the client
    Response.Write NewContent
%>
0
 

Author Comment

by:chilcote
ID: 1845510
Thanks.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now