Javascript Error HTA

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Colin Graham

    Javascript Error HTA

    I have created an application using both html and javascript. I have
    added an HTA shortcut to the desktop to run the application. In
    certain areas of the application i get javascript errors when i run
    the app through the HTA but it works fine when running applications
    through the browser.

    Is there any way i can suppress these error messages using the hta
    ????

    any help greatly appreciated.

    HTA code below

    <html>
    <head>
    <HTA:APPLICATIO N ID="HTA_WIN" CONTEXTMENU="YE S" WINDOWSTATE="MA XIMIZE"
    SYSMENU="Yes" BORDER="yes" SCROLL="YES"
    MINIMIZEBUTTON= "true" APPLICATIONNAME ="Open And Direct - Client App"
    Version="3.0" INNERBORDER="NO " CAPTION="NO" SINGLEINSTANCE= "YES"
    NAME="HTA_WIN" NAVIGABLE="YES" ICON=""/>

    <TITLE>Name</TITLE>
    </head>
    <FRAMESET>
    <FRAME name="main" SRC="[address here]" application="no "
    frameborder="0" framespacing="0 " border="0" bordercolor="Na vy"
    scrolling="YES" >
    </FRAMESET>
    </html>
  • McKirahan

    #2
    Re: Javascript Error HTA

    "Colin Graham" <csgraham74@hot mail.com> wrote in message
    news:ee261922.0 412130446.2770e 137@posting.goo gle.com...[color=blue]
    > I have created an application using both html and javascript. I have
    > added an HTA shortcut to the desktop to run the application. In
    > certain areas of the application i get javascript errors when i run
    > the app through the HTA but it works fine when running applications
    > through the browser.
    >
    > Is there any way i can suppress these error messages using the hta
    > ????
    >
    > any help greatly appreciated.
    >
    > HTA code below
    >
    > <html>
    > <head>
    > <HTA:APPLICATIO N ID="HTA_WIN" CONTEXTMENU="YE S" WINDOWSTATE="MA XIMIZE"
    > SYSMENU="Yes" BORDER="yes" SCROLL="YES"
    > MINIMIZEBUTTON= "true" APPLICATIONNAME ="Open And Direct - Client App"
    > Version="3.0" INNERBORDER="NO " CAPTION="NO" SINGLEINSTANCE= "YES"
    > NAME="HTA_WIN" NAVIGABLE="YES" ICON=""/>
    >
    > <TITLE>Name</TITLE>
    > </head>
    > <FRAMESET>
    > <FRAME name="main" SRC="[address here]" application="no "
    > frameborder="0" framespacing="0 " border="0" bordercolor="Na vy"
    > scrolling="YES" >
    > </FRAMESET>
    > </html>[/color]

    1) "i get javascript errors" -- what are they?

    2) I ran it and got no errors.

    3) Why use frames inside of an HTA? I don't know if it works.

    4) Some of your HTA properties are invalid.


    ence/objects/hta.asp


    Comment

    • kaeli

      #3
      Re: Javascript Error HTA

      In article <ee261922.04121 30446.2770e137@ posting.google. com>, csgraham74
      @hotmail.com enlightened us with...[color=blue]
      > I have created an application using both html and javascript. I have
      > added an HTA shortcut to the desktop to run the application. In
      > certain areas of the application i get javascript errors when i run
      > the app through the HTA but it works fine when running applications
      > through the browser.
      >[/color]

      Windows XP SP2?
      Note that you need to set up permissions for things to run right. Stuff run
      from the desktop is in a different security zone than stuff run from the
      internet or localhost, IIRC.
      [color=blue]
      > Is there any way i can suppress these error messages using the hta
      > ????
      >[/color]

      Yes, but it's not a very good idea. Better to see what's causing the errors
      and fix it.
      You can set up onerror=false, I believe, to suppress all errors.
      Something like that, anyway.

      When you get errors, it is helpful to post what they are. That way, we can
      help you better.

      --
      --
      ~kaeli~
      Who is General Failure and why is he reading my hard disk?



      Comment

      Working...