Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Includes w/o frames

  1. #1
    Join Date
    May 2006
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Includes w/o frames

    Hello!
    Maybe someone can help me?
    I wonder if it's possible to include any page (not just txt/xml but also html/php) without frames or iframes while leaving all links relative to the original site (to display the site correctly). The page should be loaded by client, not server (fsockopen etc). Can I do it with AJAX and PHP?
    Thanks in advance!

  2. #2
    Join Date
    Aug 2005
    Posts
    971
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    yea surely u can

    if you want to include html or txt or php pages in a .php file then do this:

    Code:
    include_once("file.ext");
    and if you want it to be in a html page then here's the answer:

    http://search.freefind.com/find.html...y=ajax+include
    uses ajax.

  3. #3
    Join Date
    May 2006
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by shachi
    yea surely u can

    if you want to include html or txt or php pages in a .php file then do this:

    Code:
    include_once("file.ext");
    and if you want it to be in a html page then here's the answer:

    http://search.freefind.com/find.html...y=ajax+include
    uses ajax.
    include_once changes all relative links to http://my_site/file so images don't load and site looks weird

    I've tried ajax include script already but the page appears as blank for some reason. Does it work with php pages for someone?

  4. #4
    Join Date
    Aug 2005
    Posts
    971
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Did you upload it to a webserver?? AJAX is meant to send and recieve data only from and to a webserver not your common folder. upload it in something like /var/www/

  5. #5
    Join Date
    May 2006
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by shachi
    Did you upload it to a webserver?? AJAX is meant to send and recieve data only from and to a webserver not your common folder. upload it in something like /var/www/
    no, I need to include external pages. Is it possible?

  6. #6
    Join Date
    Aug 2005
    Posts
    971
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Huh?? External pages?? what do you mean pages from remote server?? like google.com and bla bla bla??

  7. #7
    Join Date
    May 2006
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by shachi
    Huh?? External pages?? what do you mean pages from remote server?? like google.com and bla bla bla??
    yep, that's it

  8. #8
    Join Date
    Aug 2005
    Posts
    971
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    If that's so then I am afraid you must use iframes. May be that's possible but I am not that sure. By the way why do you want to use include instead of iframe?? May be I(or someone other) can think of something after knowing why you want it for.

  9. #9
    Join Date
    May 2006
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by shachi
    If that's so then I am afraid you must use iframes. May be that's possible but I am not that sure. By the way why do you want to use include instead of iframe?? May be I(or someone other) can think of something after knowing why you want it for.
    well, I want to make some money with paid-to-promote sites but they don't allow promotion in frames or rotators. that's why i need to include the pages so my page will look solid like i promote ptp directly. why i need this? my page gets 30k+ hits daily

  10. #10
    Join Date
    May 2006
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I've decided that I will use header() instead. Is there any way to load a floating layer after the page loads thru php header()?

Bookmarks

Posting Permissions

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