473,394 Members | 2,090 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Kill the script

Hi
I have an external website link on my webpage which open like all the link
in TARGET frame.
since last week the external link vendor put script in his page which
refresh and remove my frame.
How can I kill this script so it stays in my target frame???
thanks
the script is as below.
"""
<script language="JavaScript">
<!--
// Initialization

function checkFrameset() {
if (window.frames) {
if (parent != self) {
top.location.href = self.location.href;
}
}
return;
}

function pageSetup() {
checkFrameset();
// popup_ad();
return;
}

//-->
</script>
"""
Jul 20 '05 #1
3 4405
hi

MeAgain wrote:
Hi
I have an external website link on my webpage which open like all the link
in TARGET frame.
since last week the external link vendor put script in his page which
refresh and remove my frame.
How can I kill this script so it stays in my target frame???
thanks
the script is as below.
"""
<script language="JavaScript">
<!--
// Initialization

function checkFrameset() {
if (window.frames) {
if (parent != self) {
top.location.href = self.location.href;
}
}
return;
}

function pageSetup() {
checkFrameset();
// popup_ad();
return;
}

//-->
</script>


since the reloading is fired in a site other than your domain AFAIK you
have no possibilty to cancel this "overloading" because access is denied
(for good reason), maybe some regular in this groups knows some tricks
but i doubt; simplest thing would be to simply open the page in a popup.

lg

mord

Jul 20 '05 #2
"MeAgain" <gu*****@nowhere.xxx> writes:
I have an external website link on my webpage which open like all the link
in TARGET frame.
Do you have the permission to frame the target page from its author?
Otherwise, copyright law might see your page as an unlicensed
derivative work.
since last week the external link vendor put script in his page which
refresh and remove my frame.
How can I kill this script so it stays in my target frame???
Talk to him.

Otherwise, you can't. Unless the brower gives your page more than the
default privileges, you can't affect pages from other domains.

For that to happen, you must control the browser, which means that
it will probably only work for yourself.
<script language="JavaScript">
<!--


Since it is not your script, I won't be too critical. Just for the
record, the above should be
<script type="text/javascript">

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #3
On 07 Nov 2003 19:10:14 +0100, Lasse Reichstein Nielsen
<lr*@hotpop.com> wrote:
"MeAgain" <gu*****@nowhere.xxx> writes:
I have an external website link on my webpage which open like all the link
in TARGET frame.


Do you have the permission to frame the target page from its author?
Otherwise, copyright law might see your page as an unlicensed
derivative work.
since last week the external link vendor put script in his page which
refresh and remove my frame.
How can I kill this script so it stays in my target frame???


Talk to him.

Otherwise, you can't. Unless the brower gives your page more than the
default privileges, you can't affect pages from other domains.

For that to happen, you must control the browser, which means that
it will probably only work for yourself.
<script language="JavaScript">
<!--


Since it is not your script, I won't be too critical. Just for the
record, the above should be
<script type="text/javascript">

/L

Just to elaborate on Lasse's answer, there is case history in the UK
that says that opening another site's content in your own frame
without the full context of the originating site is a breach of
copyright, and may not take place without the consent of the other
site's owner. Look up "Shetland Times" in your favourite search engine
for the details - you'll get hundreds of links to what is a very
important case. This
(http://www.netlitigation.com/netliti...s/shetland.htm) is
just one.

Paul
Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Bob Swerdlow | last post by:
My application starts up a number of processes for various purposes using: self.popen = popen2.Popen3("/usr/local/bin/python -O "myscript.py") and then shuts them down when appropriate with...
3
by: Alex Hunsley | last post by:
I'm running a monitoring script under linux written in python. It's nohup'ed so that I can log out and it will continue running happily and so on, but sometimes I need to kill the script before...
1
by: Isidro Vila Verde | last post by:
Greetings, I need to handle signals to close some excel applications that my script open, when the script is killed by another process. My script is a little bit complex, but I wrote just two ...
2
by: Steve Henderson | last post by:
I have really surprised myself and written a script that actually works! <grin>. As you will be able to tell, I'm really, really new to this scripting stuff... My script does a task and then sleeps...
1
by: dfaber | last post by:
Aloha! I want to terminate a process/program from within a python script. For example, if I have a program say foo.sh that starts running, then I can run it from within a python script using...
3
by: elrondrules | last post by:
Hi Am new to python and need your help!! this is my code snip. within my python script I have the following commands.. <snip> import os
5
by: This | last post by:
I have a pretty basic emailing script that sends a relatively small number (150) of html emails. The emails are compiled, personalised from a mysql db subscribers list, and sent using mail() -...
0
by: norseman | last post by:
Gros Bedo wrote: ============================== Yes. man ps explains try ps -AFL | grep then kill -9 found (check it more than twice) 1) If your script is known to hang use what...
2
by: kj | last post by:
Hi! I have a Pythonoob question. I have a script that hangs indefinitely at random times; the only thing to do at this point is to kill it. I'm looking for suggestions on how to troubleshoot...
0
by: kidko | last post by:
I've written a Zenity frontend for ffmpeg using a Bash script. However, if the user hits "cancel" in the progress dialog (incurring the --auto-kill option), the bash script is killed. Unfortunately,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.