Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] Re: Call history.go(-1) in an iFrame from another frame


  • From: junado at junado.com (Julien Nadeau)
  • Subject: [Javascript] Re: Call history.go(-1) in an iFrame from another frame
  • Date: Fri Nov 18 07:32:24 2005

Thanks for your answer Laurent,

again, your method does work in Firefox, but it does nothing in  
Safari (it does not even returns an error). I'm curious about how  
Safari might be handling frames in its JavaScript interpretation. I'm  
running v.2.0.2 (416.12).

I'll let you know if I find something, thanks nonetheless.

Julien Nadeau
junado@xxxxxxxxxx

Le 05-11-18 ? 03:36, Laurent Muchacho a ?crit :

> Hi
>
>
>
> This work
>
> window.frames[?floatFrame?].history.back()
>
> because you are accessing the frame in the window named ?floatFrame?
>
> This doesn?t work
>
> Window.frames.floatFrame.history.back()
>
> Because you are trying to access a function, object or property of  
> the Frames Array object of the window
>
>
>
> Laurent
>
>
>
> Ps: I will post an examples if you need too
>
>
>
>
>
> From: javascript-bounces@xxxxxxxxxx [mailto:javascript- 
> bounces@xxxxxxxxxx] On Behalf Of Rajeev Ranjan Lall
> Sent: 17 November 2005 06:20
> To: javascript@xxxxxxxxxx
> Subject: [Javascript] Re: Javascript Digest, Vol 33, Issue 11
>
>
>
> Hi Julien Nadeau,
>
>
>
> It's quite simple.
>
>
>
> use the following code.
> ___________________________________________________
>
> <div style="width:700px;height:600px; overflow:auto;>
>
> <a href="javascript:history.back();">Back</a>
> <iframe src="www.abc.com" scrolling="yes"></iframe>
>
> </div>
>
> _____________________________________________
>
>
>
> customize the above as per your need. Now if you open the page and  
> surf in iframe, the back button will call the previous(if any)  
> pages in iframe only.
>
>
>
> hope this will end your query.
>
>
>
> Rajeev Ranjan Lall
>
>
>
>
>
> On 11/16/05, javascript-request@xxxxxxxxxx <javascript- 
> request@xxxxxxxxxx > wrote:
>
> Send Javascript mailing list submissions to
>        javascript@xxxxxxxxxx
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        https://lists.LaTech.edu/mailman/listinfo/javascript
> or, via email, send a message with subject or body 'help' to
>        javascript-request@xxxxxxxxxx
>
> You can reach the person managing the list at
>        javascript-owner@xxxxxxxxxx
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Javascript digest..."
>
>
> Today's Topics:
>
>   1. Call history.go(-1) in an iFrame from another frame
>      (Julien Nadeau)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 15 Nov 2005 17:23:35 -0500
> From: Julien Nadeau < junado@xxxxxxxxxx>
> Subject: [Javascript] Call history.go(-1) in an iFrame from another
>        frame
> To: "[JavaScript List]" <javascript@xxxxxxxxxx>
> Message-ID: <B1C790D6-1923-435C-87C4-507AE124078B@xxxxxxxxxx>
> Content-Type: text/plain; charset="us-ascii"
>
> Good evening,
>
> I've been looking around for some time for a solution to a problem I
> have and I can't find anything that works well. I have an iFrame
> embedded in a <div> in which I display various content. I need to
> have a "back" link in the <div>, but *outside* the iFrame itself.
>
> I tried various solutions but nothing works in all browsers (Firefox/
> Safari/Internet Explorer).
>
> Here's something that works in Firefox, but not in Safari :
>
>        window.frames.floatFrame.history.go (-1);
>
> My iFrame has name="floatFrame" and id="floatFrame".
>
> Thank you very much,
>
> Julien Nadeau
> junado@xxxxxxxxxx
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://lists.LaTech.edu/pipermail/javascript/attachments/ 
> 20051115/6058b206/attachment-0001.html
>
> ------------------------------
>
> _______________________________________________
> Javascript mailing list
> Javascript@xxxxxxxxxx
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
>
> End of Javascript Digest, Vol 33, Issue 11
> ******************************************
>
>
>
> _______________________________________________
> Javascript mailing list
> Javascript@xxxxxxxxxx
> https://lists.LaTech.edu/mailman/listinfo/javascript

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.LaTech.edu/pipermail/javascript/attachments/20051118/6f532ac1/attachment.html