Results 1 to 4 of 4

Thread: using ssl with javascript

  1. #1
    Join Date
    Apr 2007
    Posts
    26
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default using ssl with javascript

    Is there a way to use ssl with document.write?

    I can't get this to work:
    document.write('<!--#include virtual="file" -->');

    Can I somehow get around this?

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    I've already answered this here. Also, what you're discussing is SSI (Server-Side Includes) not SSL (Secure Socket Layer).
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Apr 2007
    Posts
    26
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    well excuse me!
    Someone answered that it could be done threw .js. I'm not much of a programer so I wanted to see if someone who didn't see the former question could maybe help me... the thing is when I use document.write('<!--#include virtual="file" -->'); the file apears in the pages source but does not apear on the page it self. I've tried to use .js but with no progress.. since it apears in the pages source it sould be able to a apear on the page, shouldn't it?

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    No, because it's not valid Javascript. You'd need to perform some filtering on the markup so it would go into a Javascript string nicely, which can't be done with SSI, as I said in the other thread. And, also as I said in the other thread, it's a terrible idea anyway.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

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
  •