473,721 Members | 3,997 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Adding code to existing document (difficult question)

I've site that is divided into two frames

Frame 1 Frame 2
??????????????? ????????
? ? ?
? ? ?
??????????????? ????????

At the first frame reside my site content.
At the second frame I'm hosting other (random) site from the net.

the question is:
How do I ** add ** code into the other site html document in order to add it
functionality that I need?

thanks
Roee
Oct 25 '05 #1
6 1288
VK
You cannot do that due to inter-domain security restrictions.

The only thing you can do with such frame/iframe is to *set* its .src
property.

You cannot read/alter its content nor receive events from it.

Oct 25 '05 #2
In article <11************ **********@g43g 2000cwa.googleg roups.com>,
"VK" <sc**********@y ahoo.com> wrote:
You cannot do that due to inter-domain security restrictions.

The only thing you can do with such frame/iframe is to *set* its .src
property.

You cannot read/alter its content nor receive events from it.


You could use something else to process the HTTP request and alter the
code, however. Your JS could call a PHP or Perl script to do the job.
Oct 25 '05 #3
Please direct me to more info regarding your suggestion.

Thanks
"Mark Twain" <tw***@whitehou se.gov> wrote in message
news:1130250197 .2deca32dbd4405 8091d8aa40bfa23 7cf@teranews...
In article <11************ **********@g43g 2000cwa.googleg roups.com>,
"VK" <sc**********@y ahoo.com> wrote:
You cannot do that due to inter-domain security restrictions.

The only thing you can do with such frame/iframe is to *set* its .src
property.

You cannot read/alter its content nor receive events from it.


You could use something else to process the HTTP request and alter the
code, however. Your JS could call a PHP or Perl script to do the job.

Oct 25 '05 #4
VK
Mark Twain wrote:
You could use something else to process the HTTP request and alter the
code, however. Your JS could call a PHP or Perl script to do the job.

Roee Bachar wrote: Please direct me to more info regarding your suggestion.


He means 3rd party content grabbing (used to be called "stealing")
using server-side virtual browser.
You may ask in any Perl related newsgroup or forum about LWP module and
its methods.
Has nothing to do with JavaScript.

Oct 25 '05 #5
On Tue, 25 Oct 2005 14:43:34 -0700, VK wrote:
Mark Twain wrote:
You could use something else to process the HTTP request and alter the
code, however. Your JS could call a PHP or Perl script to do the job.


Roee Bachar wrote:
Please direct me to more info regarding your suggestion.


He means 3rd party content grabbing (used to be called "stealing") using
server-side virtual browser.
You may ask in any Perl related newsgroup or forum about LWP module and
its methods.
Has nothing to do with JavaScript.


I was going to ask if the OP had the permission of the other website
owners to do ANYTHING with their content myself... but it looks like
that's covered here.

--
The U.S. Government today announced that it is changing its emblem from an
Eagle to a CONDOM because it more accurately reflects the government's
political stance... A condom allows for inflation, halts production, destroys
the next generation, protects a bunch of pricks, and gives you a sense of
security while you're being screwed.

Oct 25 '05 #6
Thanks a lot for your fast help.
"VK" <sc**********@y ahoo.com> wrote in message
news:11******** **************@ g49g2000cwa.goo glegroups.com.. .
Mark Twain wrote:
You could use something else to process the HTTP request and alter the
code, however. Your JS could call a PHP or Perl script to do the job.


Roee Bachar wrote:
Please direct me to more info regarding your suggestion.


He means 3rd party content grabbing (used to be called "stealing")
using server-side virtual browser.
You may ask in any Perl related newsgroup or forum about LWP module and
its methods.
Has nothing to do with JavaScript.

Oct 25 '05 #7

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

Similar topics

10
1743
by: Melissa Mussitsch | last post by:
I've done this before while creating a brand new table. But the code below is not working and I keep getting the error: "Internet Explorer cannot open the Internet site ..... Operation aborted" Here is the code: myBody=document.getElementsByTagName("body").item(0); mytablebody = document.getElementById('product').getElementsByTagName("TBODY" );
9
39781
by: Michelle | last post by:
I have a div that is initially empty. Clicking on a button will add some text boxes and other controls so the user can add additional records. In IE all works fine but in Netscape 7.0 when I add another "record" the values for all previous controls within the div are wiped out. In the javascript function where I add on to the html in the div if I capture all the data in the previous "records" then after adding the new record I can...
8
2941
by: Kevin Little | last post by:
#!/usr/bin/env python ''' I want to dynamically add or replace bound methods in a class. I want the modifications to be immediately effective across all instances, whether created before or after the class was modified. I need this to work for both old ('classic') and new style classes, at both 2.3 and 2.4. I of course want to avoid side effects, and to make the solution as light-weight as possible.
3
3952
by: Chua Wen Ching | last post by:
Hi there, I had this tutorial from Microsoft site: http://support.microsoft.com/default.aspx?scid=kb;en-us;815813 I had 1 question. Just say i already serialize a xml file. But next time, i want to add on to the xml file, under the particular xml node.
7
2404
by: Andrea | last post by:
Hi there - I'm hoping someone can help me; I've been struggling with this for a few days! :-) I have a webpage that is comprised of many forms containing questions. As the user answers one of the questions, that form is hidden and the next is displayed. Also, as the user answers each question a "count" variable is updated based on their response. I would like the question to show up on the left side and the answer to show up in the...
1
2467
by: The Eclectic Electric | last post by:
I'd be very grateful if anyone could help me with this. From my limited knowledge of Javascript I don't think it is possible, but I'll punt anyway. I downloaded and very slightly adapted this guy's Javascript "combo box" - http://sandy.mcarthur.org/javascript/select/select.html. It allows my users (when I get some!) to select from a list of preexisting options and also to add a new one by clicking on "add new". Essentially it's a select...
2
2106
by: abhimanyu singh | last post by:
i m facing a serious probs now a days............ its seems easy but for me i found it difficult......... i want to do transformation usig xsl and xml(adding parameter). for IE its working fine but for other browser like-firefox,opera its not working......... i m giving u my complete xml,xsl and transformation code....u only paste and check why it is not working for other browser.....and correct it and let me know......this is really a big...
0
8852
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8736
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9145
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9081
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6676
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5992
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4761
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3206
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2590
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.