www.webdeveloper.com
Recent Articles
  • Finding Slow Running Queries in ASE 15
  • A More Advanced Pie Chart for Analysis Services Data
  • Adobe AIR Programming Unleashed: Working with Windows
  • Performance Testing SQL Server 2008's Change Data Capture Functionality
  • The ABC's of PHP: Introduction to PHP
  • How to Migrate from BasicFiles to SecureFiles Storage
  • Why the Twitter Haters Are Wrong
  • User Personalization with PHP: Beginning the Application
  • Whats in an Oracle Schema?
  • Lighting Enhancement in Photoshop
  •  

    Go Back   WebDeveloper.com > Client-Side Development > JavaScript

    JavaScript JavaScript (not Java) Discussion and technical support, including AJAX and frameworks (JQuery, MooTools, Prototype...)

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1  
    Old 05-08-2005, 03:53 PM
    Lebron Letchev Lebron Letchev is offline
    Registered User
     
    Join Date: May 2005
    Posts: 53
    Talking Back And Forward Buttons For Iframes

    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
    Reply With Quote
      #2  
    Old 05-08-2005, 03:55 PM
    Ultimater's Avatar
    Ultimater Ultimater is offline
    Eccentric Tatertot
     
    Join Date: Jan 2005
    Location: Los Angeles, CA
    Posts: 4,827
    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.
    Reply With Quote
      #3  
    Old 05-08-2005, 05:25 PM
    Lebron Letchev Lebron Letchev is offline
    Registered User
     
    Join Date: May 2005
    Posts: 53
    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
    Reply With Quote
      #4  
    Old 05-08-2005, 05:27 PM
    Lebron Letchev Lebron Letchev is offline
    Registered User
     
    Join Date: May 2005
    Posts: 53
    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>
    Reply With Quote
      #5  
    Old 05-08-2005, 05:28 PM
    Ultimater's Avatar
    Ultimater Ultimater is offline
    Eccentric Tatertot
     
    Join Date: Jan 2005
    Location: Los Angeles, CA
    Posts: 4,827
    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.
    Reply With Quote
      #6  
    Old 05-08-2005, 05:35 PM
    Ultimater's Avatar
    Ultimater Ultimater is offline
    Eccentric Tatertot
     
    Join Date: Jan 2005
    Location: Los Angeles, CA
    Posts: 4,827
    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.
    Reply With Quote
      #7  
    Old 05-08-2005, 06:11 PM
    Lebron Letchev Lebron Letchev is offline
    Registered User
     
    Join Date: May 2005
    Posts: 53
    Swearword?

    E Letchev
    Reply With Quote
      #8  
    Old 05-08-2005, 06:21 PM
    Ultimater's Avatar
    Ultimater Ultimater is offline
    Eccentric Tatertot
     
    Join Date: Jan 2005
    Location: Los Angeles, CA
    Posts: 4,827
    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.
    Reply With Quote
      #9  
    Old 05-08-2005, 07:12 PM
    Lebron Letchev Lebron Letchev is offline
    Registered User
     
    Join Date: May 2005
    Posts: 53
    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
    Reply With Quote
      #10  
    Old 05-08-2005, 07:34 PM
    Ultimater's Avatar
    Ultimater Ultimater is offline
    Eccentric Tatertot
     
    Join Date: Jan 2005
    Location: Los Angeles, CA
    Posts: 4,827
    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.
    Reply With Quote
      #11  
    Old 05-09-2005, 07:37 AM
    Lebron Letchev Lebron Letchev is offline
    Registered User
     
    Join Date: May 2005
    Posts: 53
    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
    Reply With Quote
      #12  
    Old 05-09-2005, 04:31 PM
    Ultimater's Avatar
    Ultimater Ultimater is offline
    Eccentric Tatertot
     
    Join Date: Jan 2005
    Location: Los Angeles, CA
    Posts: 4,827
    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.
    Reply With Quote
    Reply

    Bookmarks


    Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
     
    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is Off
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 12:57 PM.



    Acceptable Use Policy


    The Network for Technology Professionals

    Search:

    About Internet.com

    Legal Notices, Licensing, Permissions, Privacy Policy.
    Advertise | Newsletters | E-mail Offers

    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.