Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 5th, 2012  |  syntax: None  |  size: 0.41 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Executing a CGI script via javascript
  2. function back()
  3. {
  4.     document.getElementById("hidden").src="scripts/backImage.cgi";//execute background script
  5.     document.getElementById("scan").src="scripts/getImage.cgi";//reload the display iframe
  6. }
  7.        
  8. jQuery.get("scripts/backImage.cgi");
  9.        
  10. $.ajax({
  11.     type:'get',
  12.     url:'http://mysite.com/mywebservice',
  13.     success:function(data) {
  14.         alert(data);
  15.     }
  16. });