Results 1 to 7 of 7

Thread: Including (snippets of) external HTML via javascript (same domain)

  1. #1
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default Including (snippets of) external HTML via javascript (same domain)

    1) CODE TITLE: Including (snippets of) external HTML via javascript (same domain)

    2) AUTHOR NAME/NOTES: Arie Molendijk

    3) DESCRIPTION: Refinement / simplification of earlier posts dealing with client-side includes.
    If you cannot / don't want to use server-side includes (PHP etc.) or Ajax for extracting external HTML, this might be an option. The script offers an easy way of including external content (no iframe!).
    (In IE, the link to 'script' seems empty; see the source of the (seemingly empty) window to view the script).

    4) URL TO CODE: http://molendijk.110mb.com/include_v.../includer.html
    Last edited by molendijk; 04-16-2008 at 09:20 AM. Reason: Correction

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Its ok. It can be a little better though, I don't know what would make it better.
    Jeremy | jfein.net

  3. #3
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    Quote Originally Posted by Nile View Post
    Its ok. It can be a little better though, I don't know what would make it better.
    Nile, any suggestion on how to make it better is wellcome.
    ----
    Arie.

  4. #4
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Well, first of all, it overlaps the border and goes out. So you can try fixing that, and also a little slide effect, like 1 pixel at a time.
    Hope this Helps,
    Nile
    Jeremy | jfein.net

  5. #5
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    Quote Originally Posted by Nile View Post
    Well, first of all, it overlaps the border and goes out. So you can try fixing that, and also a little slide effect, like 1 pixel at a time.
    Hope this Helps,
    Nile
    That's because I just wanted to have a demo-area. It can be easily fixed by giving a certain width to the 'receiver-id' (the main-page-id that receives the external content) or to the demo-area. In normal use, this won't yield a problem.
    As for the slide-effect, that's a step further. For the moment, I just wanted to show that you can easily extract external content with the help of javascript. The rest is embellishment.
    Thanks for the comment anyway.
    ----
    Arie.

  6. #6
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Yeah, well I think you should just try to do it right now. I think that you have the advanced skills. I think you should give it a shot. But it doesn't really matter, although if you do try, show me, if your having any problems whatsoever, post it.
    Jeremy | jfein.net

  7. #7
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    (16th april):
    corrected an error in the script.
    ---
    Arie M.

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
  •