+ Reply to Thread
Results 1 to 28 of 28

Thread: Load pacific page into an iframe when entering a page?
      
   

  1. #1
    Join Date
    Feb 2006
    Location
    Earth
    Posts
    8,719

    Default Load specific page into an iframe when entering a page?

    Hi, when entering 1 of my pages with a iframe, can I tell the browser to load a pacific page into the iframe of my choice rather than the default one that opens up on the 1st visit. This page with the iframe will have many subjects that will open within the frame via an index on the parant page . What would be nice is for a visitor to click on a link from another page & arrive at the page with the subject already loaded in the frame to save going through the index. IE.
    (Link to this main page. But with this article in the iframe) Not the default one.


    Hope you can help.


    Chris.

  2. #2
    Big-D's Avatar
    Big-D is offline Corporal
    Join Date
    Aug 2006
    Location
    Pluto
    Posts
    15

    Cool Re: Load pacific page into an iframe when entering a page?

    Chris,

    I wanna create exactly the same thing too. But all I get is the usual runaround-&-search for yourself. I ended up making the page with multiple bookmarks. A bit long on the loadup time, but what else can I do? Make the link show in a popup window?
    Big-D

    "Some lawyers are like slinkies. They can bring a smile to your face when you get to push them down a flight of stairs."

  3. #3
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,062

    Default Re: Load pacific page into an iframe when entering a page?

    You can't do it directly in BV, at least not in a simple way. You see, this requires passing over variables from one page to the other. The only way you can do this in html is by means of a form, which means that your links from the original page should be practically "Submit" buttons, with value equal to the link to be opened in the iframe. If you do follow this method, then the page with the iframe should have a piece of php code at the very beggining, that would "grab" the value submitted by previous page, and "echo" this value as the initial iframe link. This way the i frame would open directly the page submitted by the submit button. Of course you need to publish the iframe page as php.

    Maybe there is some other way using javascript but i don't know it.
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  4. #4
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,062

    Default Load specific page into an iframe when entering a page?

    To see an example of what you want, please click on:

    http://www.navaldesign.info/Tips/var...startpage.html
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  5. #5
    Join Date
    Feb 2006
    Location
    Earth
    Posts
    8,719

    Default Re: Load pacific page into an iframe when entering a page?

    Many, many thanks Navel. This will be put to good use. Once I get my head around it.
    There are so many posts on the .NET that says it can’t be done. Nice to know they where wrong

    Thanks again,

    Chris.

  6. #6
    Big-D's Avatar
    Big-D is offline Corporal
    Join Date
    Aug 2006
    Location
    Pluto
    Posts
    15

    Exclamation Re: Load pacific page into an iframe when entering a page?

    Nav D, the image on your sample page just below the i-Frame isn't loading properly. Only half of it shows. The bottom half is blank, so I really can't see what you are trying to show.
    Big-D

    "Some lawyers are like slinkies. They can bring a smile to your face when you get to push them down a flight of stairs."

  7. #7
    Join Date
    Feb 2006
    Location
    Earth
    Posts
    8,719

    Default Re: Load pacific page into an iframe when entering a page?

    Quote Originally Posted by Big-D
    Nav D, the image on your sample page just below the i-Frame isn't loading properly. Only half of it shows. The bottom half is blank, so I really can't see what you are trying to show.
    It may be your browser, i get this as the last line on that page.

    Ok. You are done. Save your page and publish it.

    Chris.

  8. #8
    Big-D's Avatar
    Big-D is offline Corporal
    Join Date
    Aug 2006
    Location
    Pluto
    Posts
    15

    Post Re: Load pacific page into an iframe when entering a page?

    No, it happens with IE & FireFox. Latest versions. It's the image below the i-Frame just above the "read more" button. The rest of the page loads fine. I'm talking about that image. 1/2 image.
    Big-D

    "Some lawyers are like slinkies. They can bring a smile to your face when you get to push them down a flight of stairs."

  9. #9
    Andy128's Avatar
    Andy128 is offline Major General
    Join Date
    Dec 2005
    Location
    Michigan
    Posts
    2,322

    Default Re: Load pacific page into an iframe when entering a page?

    Or perhaps you could treat it like that of loading pictures from one I-Frame to another. Remember the tutorial that had one large I-Frame and then a smaller one underneath? When you clicked on a thumbnail in the smaller I-Frame, the larger one would appear in the larger I-Frame.

    That might? Just make the Smaller I-Frame with no border /scroll bar and the page with the links the same back-ground color as the main page.

    Does that make sense?

    Andy
    PHP- is a blast!

  10. #10
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,062

    Default Re: Load pacific page into an iframe when entering a page?

    Quote Originally Posted by Big-D
    Nav D, the image on your sample page just below the i-Frame isn't loading properly. Only half of it shows. The bottom half is blank, so I really can't see what you are trying to show.
    Sorry, the page is loading quite well for me, and seems to be loading ok for others too. Can't suggest anything. and there are four images unser the i frame. Anyway, i can post the instructions here if the problem persists for you.
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  11. #11
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,062

    Default Re: Load pacific page into an iframe when entering a page?

    Quote Originally Posted by Collectors-info
    It may be your browser, i get this as the last line on that page.

    Ok. You are done. Save your page and publish it.

    Chris.
    Chris, that's the first page, Big-D is talking about the second page. However, in the second page there are the instructions on how to build it.
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  12. #12
    Join Date
    Feb 2006
    Location
    Earth
    Posts
    8,719

    Default Re: Load pacific page into an iframe when entering a page?

    HELP! Naval can you help please. I thought I got it right but can’t get rid of the text link at the top of the target page.
    There are 2 links on this page. http://www.collectors-info.com/if2.html but when pressed they work OK, but you can see what happens.

    The target page is this one http://www.collectors-info.com/if.php & this loads fine.

    Thanks.

  13. #13
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,062

    Default Re: Load pacific page into an iframe when entering a page?

    Hi Chris

    what you see is part of the code used to create the "clocks and *******" button on the first page. Probably you have placed Amazon's code in the page, then when you created the second page, you deleted this code, but not all. Check it, i'm sure there is something in there. If you still can't find it, please email me the .bvp files so i can have a look.
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  14. #14
    Join Date
    Feb 2006
    Location
    Earth
    Posts
    8,719

    Default Re: Load pacific page into an iframe when entering a page?

    Hi Naval, SORRY, you have mail. Couldn’t find anything on the page. Strange!

  15. #15
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,062

    Default Re: Load pacific page into an iframe when entering a page?

    Chris, you have mail.
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  16. #16
    Join Date
    Feb 2006
    Location
    Earth
    Posts
    8,719

    Default Re: Load pacific page into an iframe when entering a page?

    Many thanks Naval,
    Got the 1st one working fine & all links work great. This will look a lot better with links direct to a product.

    But on the second one you suggested it loads the page fine, but the iframe loads the home page for the store & not the specific link?
    Would it have anything to do with iframe URL being <?php echo $link;?>.
    Should it be something like <?php strlen $link;?> (not sure)

    Put this in the html box.
    <?PHP
    @$link = addslashes($_POST[link]);
    if(strlen($link) == 0)
    {
    $link = "http://astore.amazon.co.uk/collectables-21";
    }
    ?>


    This in the frame


    Not sure if there should be a space between the ; ?>

    And this in the button.



    Saved this page as .php

    Any suggestions as to what might be wrong as this would look a lot neater.



    Many Thanks.

  17. #17
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,062

    Default Re: Load pacific page into an iframe when entering a page?

    Chris, the second solution DOES NOT receive any $_POST variables, and the code should be simply

    <?PHP
    if (strlen($link) == 0)
    {
    $link = "http://astore.amazon.co.uk/collectables-21";
    }
    ?>


    Just delete the line @$link = addslashes($_POST[link]);
    Your buttons seem ok, your frame is ok, it's the code that is wrong. Since it receives no $link the link results null, so it points the frame to your homepage.

    And there is no need to save the page with the buttons as .php, though it should work the same.
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  18. #18
    Join Date
    Feb 2006
    Location
    Earth
    Posts
    8,719

    Default Re: Load pacific page into an iframe when entering a page?

    Hi , my apologies the code I posted was from the old page. This is the one in the page which was correct.


    <?PHP
    if (strlen($link) == 0)
    {
    $link = "http://astore.amazon.co.uk/collectables-21";
    }
    ?>


    But still no joy with the 2 new pages. (still get the home page loading)

    New Target page is this http://www.collectors-info.com/ifthree.php which works great

    New Linked from this http://www.collectors-info.com/if4.html this one should link to

    http://astore.amazon.co.uk/collectab...g=UTF8&node=17

    Using this link ifthree.php?link=http://astore.amazon.co.uk/collectables-21/026-3481376-7171665?%5Fencoding=UTF8&node=17


    Arhhhhh Thats beter! Only Joking.

  19. #19
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,062

    Default Re: Load pacific page into an iframe when entering a page?

    Chris,

    delete the html box. Paste the code in the page html, in the Start of page Tag.
    The whole thing depends on the order they have been placed in the page. If you paste the code in the start of page, i think you should have no problem.
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  20. #20
    Join Date
    Feb 2006
    Location
    Earth
    Posts
    8,719

    Default Re: Load pacific page into an iframe when entering a page?

    Hi Naval, really appreciate the help, but for some reason I can’t get the second one to work, Place it at the start/head/inside, naturally deleting the previous 1st. I even made an iframe & placed it in body. But with no luck.
    But for this situation I only need one button for each of the pages so the submit/form button way will be fine.

    Once again, thanks for the help.

    Chris.

  21. #21
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,062

    Default Re: Load pacific page into an iframe when entering a page?

    Hi Chris,

    the above doesn't work because the & sign breaks the link. However, it can also be done without a form. Have a look at http://www.navaldesign.info/Tips/c-info1.html
    If you need instructions, let me know.
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  22. #22
    Join Date
    Feb 2006
    Location
    Earth
    Posts
    8,719

    Default Re: Load pacific page into an iframe when entering a page?

    Quote Originally Posted by navaldesign
    Hi Chris,

    the above doesn't work because the & sign breaks the link. However, it can also be done without a form. Have a look at http://www.navaldesign.info/Tips/c-info1.html
    If you need instructions, let me know.
    Like it! Yes please.

    Thanks.

  23. #23
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,062

    Default Re: Load pacific page into an iframe when entering a page?

    Chris, please send me your email (i have it in my office, but not here)
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  24. #24
    Join Date
    Feb 2006
    Location
    Earth
    Posts
    8,719

    Default Re: Load pacific page into an iframe when entering a page?

    Hi, you can reach me on this one.
    http://www.collectors-info.com/contact_us.php

    Or I have sent my private one to navaldesign.it

  25. #25
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,062

    Default Re: Load pacific page into an iframe when entering a page?

    Chris, i have already sent you an email with the files attached.
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  26. #26
    Join Date
    Feb 2006
    Location
    Earth
    Posts
    8,719

    Default Re: Load pacific page into an iframe when entering a page?

    Hi, I will try this in the morning, but I assume that I extend the php in the page like bellow.

    <?PHP
    if ($link == 1) {
    $link= "http://astore.amazon.co.uk/collectables-21/026-3481376-7171665?%5Fencoding=UTF8&node=42";
    }
    if ($link == 2) {
    $link= 'http://astore.amazon.co.uk/collectables-21/026-3481376-7171665?%5Fencoding=UTF8&node=17';
    }
    if ($link == 3) {
    $link= 'http://astore.amazon.co.uk/collectables-21/203-6656348-4462346?%5Fencoding=UTF8&node=23';
    }

    if (strlen($link) == 0)
    {
    $link = "http://astore.amazon.co.uk/collectables-21";
    }
    ?>

    And add extra link like this

    </DIV>
    <DIV style="position:absolute;left:9px;top:163px;width: 720px;height:39px;z-index:2" align="center">
    <BUTTON type="button" onClick="window.location='c-info2.php?link=3'" style="width:720px;height:39px"><P><FONT style="font-size:13px" color="#000000" face="Arial">Double click to edit</FONT></P></BUTTON>
    </DIV>

    Many Thanks
    PS
    Might have a little bit of work for you??
    Can you make a program or maybe purchase one & pull it apart to make menus like this

    The image above came from this site. http://www.all-linksite.com/
    IE: A databas for URL's with maybe 3 style sheets. It would work just like a link directorys menu, but end up at a url of your own choice. Will make up some web pages to explain a little clearer if its the sort of work you might do.

    Thanks again.

  27. #27
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,062

    Default Re: Load pacific page into an iframe when entering a page?

    Hi Chris,

    1. Just add in the first page, another button, make it on Click, with the Onclick action set to "Go to the specified URL" and Onclick Value "c-info2.php?link=3"

    Then, in the frame page, you add the third "if" statement as you have it above.

    2. Yes, it can be done. It requires a Database as you said. It has to be designed in a certain way, in order to be efficient, but i can do it. I don't understand though, what you mean be "but end up at a url of your own choice".
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  28. #28
    Join Date
    Feb 2006
    Location
    Earth
    Posts
    8,719

    Default Re: Load pacific page into an iframe when entering a page?

    Hi Naval. Many thanks for the above. You must be on the night shift?
    I have looked all over the net & was looking for a better menu system for large menus. This is the closest I have come across.

    Front end http://www.gentlesource.com/demos/demo-link-manager/
    Back end http://www.gentlesource.com/demos/de...manager-admin/
    Home page http://www.gentlesource.com/link-manager/

    & this may do the trick. But if the menu’s got to large it would be much better to be able to drill down the menu like some of the reciprocal links type software.
    The most important part would be to see how many files/url are in each area.
    IE:
    1st page of menu. Click on website hosts. (Go to new menu)

    Websites Hosts (19) Website Engineers (46) Website software (123)

    Websites hosts. Click on Unix. (Go to new menu)

    Do it your self Hosts (07) Microsoft Hosts (06) Unix (06)

    Unix
    Click link. Go to url

    Link unix host 1?????
    Link unix host 2?????
    Link unix host 3?????
    Link unix host 4?????
    Link unix host 5?????
    Link unix host 6?????


    A small bonus on the software above is that it also tells you how many visits a url has had. This one is only an inexpensive software & wasn’t sure if it could be adapted. If you give me a day I will set up a couple of pages on how it would be nice to work.
    Oh! The url part was to work the same as this one, direct to a page on my site or any other site. Would be nice to have the facility to tell the link to be _blank _ self _top etcetera, as I am not sure if these menus would have to go in an iframe or could be place on a bv page another way. It would also be nice to link to my own site as _self, but to anther site as _blank.
    Right! time for some Zzzzz's the birds have just got out of bed over here.lol

    Cheers.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49