yes you are right! I checked the console, it says:
XMLHttpRequest cannot load http:..../ajax_tst.cgi?str=a. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.
How to set the requesting html or the browser to allow it...
Thank you very much for your meticulous explanation.
Now the code on the server is modified as you instructed:
#!/usr/bin/perl
use strict;
use CGI;
our $qq= new CGI;
print $qq->header("text/html");
my $str=$qq->param("str");
print "your entered:$str"...
I visited the ajax tutorial in w3cschools yesterday, the following html is mostly copied directly from that tutorial:
---------------------------------------------------------------------------
<html>
<head>
<script>
function showHint(str) {
if (str.length == 0) {...
I have a mysql database that was working perfectly
until I upgraded from Solaris 2.5 to 2.7.
I have many tables, all other tables work except one
that got such an error:
mysql> select * from users;
ERROR 1030: Got error 127 from table handler
If I say
select * from users where key=1234...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.