I need a Javascript code

Discussion in 'Programming' started by YoungSmeagol, Dec 26, 2007.

  1. #1
    I need a small Javascript code that will load a 2nd webpage in the background without showing it and without loading any images. It should keep everything else. Just not the images.

    The javascript itself needs to be fairly small. I don't want it to make the first webpage load too slowly.

    Tell me if you can do it and how much it would cost.

    Thanks.
     
    YoungSmeagol, Dec 26, 2007 IP
  2. kmap

    kmap Well-Known Member

    Messages:
    2,215
    Likes Received:
    29
    Best Answers:
    2
    Trophy Points:
    135
    As Seller:
    100% - 0
    As Buyer:
    100% - 1
    #2
    When will you want the second page to display

    Regards

    Alex
     
    kmap, Dec 26, 2007 IP
  3. dancom96

    dancom96 Well-Known Member

    Messages:
    1,556
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    105
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    Can't you just use <iframe src="http://www.google.ca/" width="1" height="1"></iframe> ?
     
    dancom96, Dec 26, 2007 IP
  4. YoungSmeagol

    YoungSmeagol Well-Known Member

    Messages:
    402
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    108
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #4
    After the first page is finished loading (or after 5 seconds if that's too hard).

    No because the images from the second page will probably be too big. I have no control over the second page. So to keep the loading shorter I need no images.

    Maybe:
    <iframe src="http://www.google.ca/" width="1" height="1" images="no"></iframe> but I don't think that actually works.

    I'm thinking:

    <script language="JavaScript">
    <!-- hide
    function go(theUrl)
    {
    window.noimages.location.href='http://www.google.com/';
    }
    // done hiding -->
    </script>

    <iframe src="javascript:go();" width="1" height="1"></iframe>

    I just don't know the right code to do it.
     
    YoungSmeagol, Dec 26, 2007 IP
  5. YoungSmeagol

    YoungSmeagol Well-Known Member

    Messages:
    402
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    108
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #5
    Here's a good example of why it's bad to use frames to load a 2nd website:

    Go To:
    http://www.websiteoptimization.com/services/analyze/

    And put in this site:
    'http://www.colonzone.org/colonix-review.php'

    See all the stuff that loads up in the hidden frame.

    The woman did a great job of hiding her affiliation with the other site but it's no longer 56k friendly.

    It would take 147.28 seconds to completely load everything and that's way too long.

    I want to keep the page 56k friendly.
     
    YoungSmeagol, Dec 26, 2007 IP
  6. iBBnet

    iBBnet Peon

    Messages:
    902
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #6
    Does the second page ever need to show at all... or is this hidden completely?
     
    iBBnet, Dec 26, 2007 IP
  7. YoungSmeagol

    YoungSmeagol Well-Known Member

    Messages:
    402
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    108
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #7
    Hidden Completely
     
    YoungSmeagol, Dec 26, 2007 IP
  8. iBBnet

    iBBnet Peon

    Messages:
    902
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #8
    I have a solution for you if you're interested. But I just want to make sure I'm understanding it completely.

    >>> Your main site is loaded in the browser, mainsite.com. When that happens, you want to load hiddensite.com without showing it at all...

    In other words, it's like I type in google.com and then google.com's website shows up but then I also get yahoo.com to load (place a cookie) without yahoo.com showing in the browser...

    ------------------

    Is that right?
     
    iBBnet, Dec 26, 2007 IP
  9. YoungSmeagol

    YoungSmeagol Well-Known Member

    Messages:
    402
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    108
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #9

    Yes, but without loading any images.
     
    YoungSmeagol, Dec 26, 2007 IP
  10. mantram

    mantram Banned

    Messages:
    171
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #10
    Im interested in your project, can you please send me more details?
     
    mantram, Dec 28, 2007 IP
  11. Devlabs

    Devlabs Peon

    Messages:
    49
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #11
    Well I am a javascript expert will do a great job :)
     
    Devlabs, Dec 28, 2007 IP
  12. YoungSmeagol

    YoungSmeagol Well-Known Member

    Messages:
    402
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    108
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #12
    I'm sorry for not getting back to people. I forgot to subscribe to the thread.
     
    YoungSmeagol, Jan 4, 2008 IP