When I try posting data to my CGI file, my CGI file says the actual post data is invalid. I am using HTML/JavaScript for the front end and Python for the backend.   Works:  <form name="login" action="/cgi-bin/register.py" method=&#...
Is it possible for a perl cgi script to segment its AJAX responses into numerous individual HTTP responses?  Say I have this code:  xmlhttp=new XMLHttpRequest(); xmlhttp.onreadystatechange=function() {     if (xmlhttp.readyState==4 && xmlhttp...
I have a form that is used to upload the file and a CGI program in the server side to process the uploaded file. The file will be renamed to a different file name that I want to pass back to the client, I want to use JSON to return the result, but th...
The client has a simple form that takes a text and a file:  <form name="add_show" id="add_show" action="" method="GET">      <label class="text-info">Show Name:</label>     <input type="...
Is it possible to force file download to user's browser (with the standard dialog prompt of course)? To be triggered by the server. Basically I'm thinking of pushing a file to the browser coming from server filesystem. Or is this not possible...
I've written a JavaScript-based Website that is able to enter, edit and solve Nonograms. As you may know, solving a nonogram is an NP-complete problem.  My first attempt was pure (single threaded) JavaScript. But on larger nonograms, Chrome showe...
Hello I'm working with ajax that submits to a C++ cgi program. The problem that I am having is the readyState is always 1. I don't get what I am doing wrong.       var asyncRequest; // XMLHttpRequest object      try         {             asyn...
I have a cgi script written in Python. There are two drop down menus and then a submit button. I'd like to be able to make a selection from the first menu, and based off that choice, have the second drop down menu dynamically populate new choices...
I'm trying to setup a simple script where some data is sent using the jQuery .ajax function to a Python CGI script. The Python script would just make the data posted to it uppercase, and then return that data to the HTML file, where a div would b...
Is it possible to include JQuery in the here-doc section of perl. I tried but no success. Here is my code.  my $cgi = CGI->new();print header();print start_html("JQuery in perl");  print <<JS; <script src="//ajax.googleapis.co...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.