Results 1 to 6 of 6

Thread: ActiveX warning

  1. #1
    cgschlangen
    Guest

    ActiveX warning

    Greetings all,
    I'm trying to recreate the USNO's Sunrise/Moonrise data for one day form on my website and need your help figuring out this problem...
    I'm using the code below, which works perfectly - however when I bring up the page it brings up an activex warning - any ideas? Obviously I want the page to be perfect and an ActiveX warning from IE doesn't fit that criteria.

    <!t>[
    <html>
    <head>
    <script type="text/javascript">
    function dates (){
    var d = new Date();
    var dd = d.getDate();
    var mm = d.getMonth() + 1;
    var yyyy = d.getYear();
    document.latlong.xxy.value = yyyy;
    document.latlong.xxm.value = mm;
    document.latlong.xxd.value = dd;
    }
    </script>
    </head>

    <body onLoad="dates()">
    <form method="post" name="latlong" action="http://aa.usno.navy.mil/cgi-bin/aa_pap.pl">
    <input type="hidden" name="FFX" value="2">
    <input type="hidden" name="ID" value="USCGD13">
    <input type="hidden" name="xxy" id="xxy_int">
    <input type="hidden" name="xxm" id="xxm_int">
    <input type="hidden" name="xxd" id="xxd_int">
    <input type="hidden" name="place" id="placeint" value="your search.">
    <input type="hidden" name="zz1" id="zhour" value="0">
    <input type="hidden" name="zz0" id="zeast" value="1">
    <input type="hidden" name="zz0" id="zwest" value="-1">

    Latitude:
    <input type="hidden" name="yy0" id="north" value="1">
    <input type="text" name="yy1" id="dega" size="2" maxlength="2" value=""> <label for="dega">degrees</label>*
    <input type="text" name="yy2" id="mina" size="2" maxlength="2" value=""> <label for="mina">minutes</label>*
    Longitude:
    <input type="hidden" name="xx0" id="west" value="-1">
    <input type="text" name="xx1" id="dego" size="3" maxlength="3" value=""> <label for="dego">degrees</label>*
    <input type="text" name="xx2" id="mino" size="2" maxlength="2" value=""> <label for="mino">minutes</label>*

    <input type="hidden" name="ZZZ" value="END">
    <input type="submit" value="Get data">

    </form>
    </body>
    </html>
    ]<!/t>

  2. #2
    Platinum Lounger
    Join Date
    Feb 2002
    Location
    A Magic Forest in Deepest, Darkest Kent
    Posts
    5,681
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: ActiveX warning

    It sounds like you are running this HTML page from your local PC.

    I have taken the liberty of copying the code onto my website for you to test, no errors occur but it only appears to work in IE and not Firefox so far

    http://www.magicforest.co.uk/fun/navy.html
    Jerry

  3. #3
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: ActiveX warning

    I can't see anything that would call up an ActiveX control (e.g., a media player). Does your web host or an advertising service inject anything into your pages?

  4. #4
    Platinum Lounger
    Join Date
    Feb 2002
    Location
    A Magic Forest in Deepest, Darkest Kent
    Posts
    5,681
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: ActiveX warning

    Jefferson

    I ran the code via my desktop in IE6 and the Information Bar pops out however not from my ISP. It is obviously picking up the <script> tags
    Jerry

  5. #5
    cgschlangen
    Guest

    Re: ActiveX warning

    I haven't uploaded it yet - I don't have permissions to the sites - but am getting the page ready to go... For now I'll go with the hope that it doesn't pop up the warning once it's uploaded... It seems strange to me that it would act differently between the two hosts...
    Thanks for the help!
    Dan

  6. #6
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: ActiveX warning

    That is the best guess. The wording "Active Content" is similar to "ActiveX" (it just signifies something completely different). <img src=/S/smile.gif border=0 alt=smile width=15 height=15>

Posting Permissions

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