Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8085525
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T18:09:02+00:00 2026-06-05T18:09:02+00:00

I am thinking of writing a desktop HTA program. However, at startup I would

  • 0

I am thinking of writing a desktop HTA program.

However, at startup I would need to make 1 ajax php database call to a website, which will need a success element callback.

Is this possible? Would I need to overcome any crossbrowser issues? Would firewalls cause any problems?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T18:09:04+00:00Added an answer on June 5, 2026 at 6:09 pm

    Possible – yes. See code below. Crossbrowser is not applicable in HTA — you’re always using the IE rendering engine. But I think you may mean cross-domain issues, which are also not applicable in HTA. Microsoft chose to disable all of the Javascript cross-domain protection because an HTA (HTML-Application) is treated as an application not a web page.

    There are lots of considerations for firewalls, but it’s unlikely that a firewall would block HTA AJAX calls more restrictively than HTML AJAX. If you have a web page that calls your PHP page, it will probably also work in HTA. Good luck!

    <html><head>
    <script language="javascript" type="text/javascript">
     var XHR = new ActiveXObject("Msxml2.XMLHTTP");
     function callAjax(url){
       XHR.onreadystatechange=(callback);
       txtStatus.value += "opening: " + url + "\n";
       XHR.open("GET",url,true); //"POST" also works
       XHR.send(); // XHR.send("name1=value1&name2=value2");
     }
    
     function callback(){
       if(XHR.readystate == 4) txtStatus.value += "DONE\n" + XHR.responseText;
     }
    </script>
    </head>
    <body onload="callAjax(txtURL.value)">
      <textarea id=txtURL style="width:100%" rows=1>http://www.google.com</textarea>
      <textarea id=txtStatus style="width:100%" rows=20></textarea>
    </body></html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i'm thinking about writing a WPF program that would require login and password at
I'm thinking of writing a C++ application for windows which would need to filter
I was thinking of writing a PHP script that would analyse a CMS'd page's
As a pet project, I was thinking about writing a program to migrate applications
Out of curiosity about reverse engineering, I am thinking of writing a simple program
I'm writing a Java SE 7 desktop application. I will need to store data
I am thinking of writing a PHP extension library that will use the memcached
I'm thinking about writing a program as my junior project ... the program should
I'm thinking about writing a program that asks the user to think of an
I'm thinking of writing a program that involves including super fast Assembly or as

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.