1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Javascript Question

Discussion in 'JavaScript' started by Help Desk, Jul 9, 2004.

  1. #1
    Is there a way to get javascript to display the contents of another page in the same window?
     
    Help Desk, Jul 9, 2004 IP
  2. Help Desk

    Help Desk Well-Known Member

    Messages:
    1,365
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    180
    #2
    Let me answer my own question...

    Yes if you don't mind those contents being shown in an iframe.
     
    Help Desk, Jul 9, 2004 IP
  3. Will.Spencer

    Will.Spencer NetBuilder

    Messages:
    14,789
    Likes Received:
    1,040
    Best Answers:
    0
    Trophy Points:
    375
    #3
    Mmm... please post your solution.

    I have the same question, except with PHP instead of JavaScript. :)
     
    Will.Spencer, Jul 9, 2004 IP
  4. l0cke

    l0cke Active Member

    Messages:
    178
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    73
    #4
    You can easily read files/url's with PHP - there should be many examples at hotscripts.com. JavaScript only allows reading of files via ActiveX which requires the client to have Windows Scripting Host installed. Also the only way for JavaScript to read url's is if the client has the Microsoft XML DOM installed.
     
    l0cke, Jul 9, 2004 IP
  5. schlottke

    schlottke Peon

    Messages:
    2,185
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    0
    #5
    php.resourceindex.com
    hotscripts.com

    both should help you find what you are looking for.
     
    schlottke, Jul 9, 2004 IP
  6. Help Desk

    Help Desk Well-Known Member

    Messages:
    1,365
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    180
    #6
    The only solution was to have use an inline frame to show the target HTML page. It's what Google does with their Ad Sense Ads so it should be good enough.
     
    Help Desk, Jul 12, 2004 IP