|
|||||||
| JavaScript JavaScript (not Java) Discussion and technical support, including AJAX and frameworks (JQuery, MooTools, Prototype...) |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
Hi, again!I am trying put a back and forward buttons to move the html pages within an IFRAME. I found this script for working with screens. How I can change it for running under IFRAME? <SCRIPT LANGUAGE="JavaScript"> <!-- hide this script tag's contents from old browsers function goHist(a) { history.go(a); // Go back one. } </script> </head> <body> <FORM METHOD="post"> <INPUT TYPE="button" VALUE=" BACK " onClick="goHist(-1)"> <INPUT TYPE="button" VALUE="FORWARD" onClick="goHist(1)"> </form> <a href="" onClick="parent.history.back(); return false;" onMouseOver="self.status='Back'; return true;"><img src="D:\IMAGENS\image_button\bb_3b[1].gif" border=0></a> <a href="" onClick="parent.history.forward(); return false;" onMouseOver="self.status='Forward'; return true;"><img src="D:\IMAGENS\image_button\botao seta.jpg" border=0></a> Thank you Regards E. Letchev |
|
#2
|
||||
|
||||
|
parent.frames[0].location.go(-1)
parent.frames[0].location.go(1)
__________________
Ultimater XMLHttpRequest: Specification | xmlhttp object | open and onreadystatechange order | String.prototype.toXMLDocument | Sarissa | Prototype | Dojo Broadening one's horizons: 24ways.org Note I have a bad habit of editing my posts hours at a time and hours later. |
|
#3
|
|||
|
|||
|
I did in this way...
<a href="" onClick="parent.frames[0].location.go(-1); return false;" onMouseOver="self.status='Back'; return true;"><img src="D:\IMAGENS\image_button\bb_3b[1].gif" border=0></a> <a href="" onClick="parent.frames[0].location.go(-1); return false;" onMouseOver="self.status='Forward'; return true;"><img src="D:\IMAGENS\image_button\botao seta.jpg" border=0></a> But after display an error message it open another window with 'about page'. Do you know which is the problem? Thank you E Letchev |
|
#4
|
|||
|
|||
|
Sorry...
<a href="" onClick="parent.frames[0].location.go(-1); return false;" onMouseOver="self.status='Back'; return true;"><img src="D:\IMAGENS\image_button\bb_3b[1].gif" border=0></a> <a href="" onClick="parent.frames[0].location.go(1); return false;" onMouseOver="self.status='Forward'; return true;"><img src="D:\IMAGENS\image_button\botao seta.jpg" border=0></a> |
|
#5
|
||||
|
||||
|
Code:
<a href="javascript:void(parent.frames[0].location.go(-1))" onMouseOver="self.status='Back'; return true;"> <img src="D:/IMAGENS/image_button/bb_3b[1].gif" border=0> </a>
__________________
Ultimater XMLHttpRequest: Specification | xmlhttp object | open and onreadystatechange order | String.prototype.toXMLDocument | Sarissa | Prototype | Dojo Broadening one's horizons: 24ways.org Note I have a bad habit of editing my posts hours at a time and hours later. |
|
#6
|
||||
|
||||
|
Just outta curiosity, do you understand this:
?אתה מדבר עברית
__________________
Ultimater XMLHttpRequest: Specification | xmlhttp object | open and onreadystatechange order | String.prototype.toXMLDocument | Sarissa | Prototype | Dojo Broadening one's horizons: 24ways.org Note I have a bad habit of editing my posts hours at a time and hours later. Last edited by Ultimater; 05-08-2005 at 05:38 PM. |
|
#7
|
|||
|
|||
|
Swearword?
E Letchev |
|
#8
|
||||
|
||||
|
Nope, I was asking if you spoke Hebrew in Hebrew.
I thought there was a good chance that you did becuase your last name has a high change of being Jewish.
__________________
Ultimater XMLHttpRequest: Specification | xmlhttp object | open and onreadystatechange order | String.prototype.toXMLDocument | Sarissa | Prototype | Dojo Broadening one's horizons: 24ways.org Note I have a bad habit of editing my posts hours at a time and hours later. |
|
#9
|
|||
|
|||
|
I am not Jewish? Nor Arab!
Letchev is the union of the article "Le" (french) more "Tchev" from "Tche" (Spanish) Lebron? it is a 'loan'. Well... Regarding our question "the back" button returns not to prior page, it open a window and in address bar show: 'javascript:void(parent.frames[0].location.go(-1))' Thank you for your patience! Lebron Letchev |
|
#10
|
||||
|
||||
|
Code:
<input type="button" onclick="parent.frames[0].location.go(-1)" value="back">
__________________
Ultimater XMLHttpRequest: Specification | xmlhttp object | open and onreadystatechange order | String.prototype.toXMLDocument | Sarissa | Prototype | Dojo Broadening one's horizons: 24ways.org Note I have a bad habit of editing my posts hours at a time and hours later. |
|
#11
|
|||
|
|||
|
Hi,
The problem persists... for example: step opening pages inside IFRAMES It is I want: step by step (see [6]) 1. www.yahoo.com 2. Choice a keyword 3. it open several pages separated by 10/100 links each page? You can move up and move down among these pages. Ok? 4. You 'click' a link or choice a link. 5. You enter in that page - for example, the page of the Liverpool FC! 6. Now you want return to 'YAHOO RESULT PAGE' or 'GOOGLE results page' HOWEVER, you will see not the head of IE - BACK - FORWARD BUTTONS - so you cannot return to 'yahoo result page' HERE IS MY PROBLEM! Thank you |
|
#12
|
||||
|
||||
|
Sorry, once the IFRAME has yahoo's URL, it's in a different domain.
So... as a security issue, cross-domain scripts don't work.
__________________
Ultimater XMLHttpRequest: Specification | xmlhttp object | open and onreadystatechange order | String.prototype.toXMLDocument | Sarissa | Prototype | Dojo Broadening one's horizons: 24ways.org Note I have a bad habit of editing my posts hours at a time and hours later. |
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|