Results 1 to 2 of 2

Thread: Always ask for allowed script

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

    Thumbs down Always ask for allowed script

    Dear member ..

    I have made some HTML code using Javascript for custom header and footer for template page. The coding consist of header definition and also script that executed to run a clock program (load on first time page called).

    Maybe for more clear view I will attach the code instead,

    <HTML>
    <HEAD>
    <TITLE>PageTitle</TITLE>
    <SCRIPT language="JavaScript" src="scripts/Script_General.js"></SCRIPT>
    <SCRIPT language="JavaScript" src="scripts/Script_Header.js"></SCRIPT>
    <SCRIPT language="JavaScript" src="scripts/Clock.js"></SCRIPT>
    <LINK href="CSS/STYLE.CSS" type="text/css" rel="stylesheet">
    <BODY onLoad=goforit()>

    <!--UPPER HEADER--><span id="headertext"></span><!--UPPER HEADER-->

    Everytime I load this page (1st time from my flashdisk/web dir/web server) always come up with those warning. Is there something wrong with the coding or maybe the placement of the script?

    I know this is maybe look easy, but it give me a headeache
    Ok thanks for the attentions and hope getting new bright shiny enlightment from all of you .

    Cheers.

    [seageath] / [sigit.aji]
    Indonesia

  2. #2
    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 locally either. 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
  •