Results 1 to 3 of 3

Thread: General JavaScript question

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

    Default General JavaScript question

    I am new to website development and know mostly html, but am interested in using JavaScript. I am curious why while using Internet Explorer when I add javascript to my html document, and then open it, it always prompts me with a security message talking about ActiveX Content. I am not wanting ActiveX Content, just pure JavaScript (ex a scrolling news bar). When I visit sites using JavaScript, for example DynamicDrive or SportsIllustrated.com, it doesnt prompt me with the Security Message... what am I doing wrong? All help is greatly appreciated. Thank you.

  2. #2
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    This only happens when you run the script offline - upload it and you should be fine.

    cr3
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

  3. #3
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    That only happens locally as a security measure. As far as IE is concerned, javascript is ActiveX. Click on the bar and click on allow and click on yes. Once your page is live, this will not happen. You can also give your page 'the mark of the web'. That way it will not display the security bar. Put this right after your <html> tag like so:
    Code:
    <html>
    <!-- saved from url=(0014)about:internet -->
    <!-- this and above comment should be removed for live, non-demo use -->
    <head>
    But, navigating away from the page to another local page, or including another local page on it via a frame or an iframe can be problematical if said page does not also have 'the mark of the web' on it.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •