Answer the question
In order to leave comments, you need to log in
How to make an ajax request if the site is running on exe (cgi)?
Good afternoon.
I have a website (I'm not the author, because maybe I'll write it wrong) generated through a gateway (CGI).
Page addresses look like http://url.ru/cgi-bin/site.exe?variable_set *server on apache under Windows
There is a task - to add additional functionality without touching the site itself. In fact, hang a js script.
I made a script, insert a link to it in the footer. There is an ajax request in the script that accesses a file on the server ( url.ru/filename.php ).
$.ajax({
type: "POST",
url: "http://url.ru/filename.php",
data: --- бла бла бла
Answer the question
In order to leave comments, you need to log in
Let's explain the task once again:
1) the site opens from the browser at url.ru/filename.php
2) the site returns (?) an error when requested by Ajax
3)
When the code is triggered, a page with the error Error request 10 opens! undefined command.That is, when an Ajax(!) request is triggered, your page changes...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question