On 10 Sep 98, at 16:07, Jack Killpatrick wrote:

> After a bit of research, this does not appear to be possible with
> JavaScript, due to the following JavaScript security measure:

-- snip --

> There's more about this under "Data tainting" in the javascript docs. You
> need the cooperation of the other site owner to get any javascript info from
> their site, even something like the url.

-- snip --

> Turns out, from what I can tell, that you can't access the url for frame one
> from frame 2 (nor the "top" frame) if the site in frame one is on another
> server. Therefore you can't write the url of frame one to a variable and
> save it with the note. The browser generates a "permission denied" error.

> Fooey! Can anyone think of a hack to get around this?

Also Java has this limitation if you use applets... Java application 
don't have this limitation.

But if you plan to use Java... it's better you write your own 
browser... (today with RAD languages shouldn't be too hard...)

You can insert an URL in a form, send it to a CGI, the CGI will 
connect to that URL, load the page for you, change every link in 
this way
http://remote_url => http://your_CGI?remote_url
and send back 2 frames:
1 containing the CGI control panel (TextArea to insert notes, text 
field to change url, some buttons) the other containing the 
remote_url content after it has been modified.

OK??
-------------------------------------------
Ivan Sergio Borgonovo [EMAIL PROTECTED]
Webmaster Gorilla Bookstore http://www.gorilla.it
Tel. +39 2 3311105/34530455 Fax. +39 2 34531591
Via Mac Mahon 9, Milano, Italy
-------------------------------------------

____________________________________________________________________
--------------------------------------------------------------------
 Join The Web Consultants Association :  Register on our web site Now
Web Consultants Web Site : http://just4u.com/webconsultants
If you lose the instructions All subscription/unsubscribing can be done
directly from our website for all our lists.
---------------------------------------------------------------------

Reply via email to