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

  • SEARCH
  • Home
  • 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 1081179
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T22:08:10+00:00 2026-05-16T22:08:10+00:00

I have an embedded application running httpd for a web server. On the main

  • 0

I have an embedded application running httpd for a web server. On the main page I have two buttons. One uses JQuery to add a click event with the following code:

$.get(“example.cgi”);

The other button is the submit button for a blank form (i.e. other than the form tags and the input with type = “submit” the form contains no fields). The method for the form is set to “get” and the action set to “example.cgi”. When I press button one, the script fails. When I press button two, the embedded device responds accordingly.

I would really like to use JQuery for this entire project (for example, specifically so I dont HAVE to have blank forms all over my pages…), but I cannot figure out what the difference would be between a blank form with a method “get” and a JQuery $.get();. Does anyone know what might be happening?

UPDATE:

the html and js code in its entirety —

<!doctype html>
<html>
<head>
<title>LCRFLC on the WEB</title>
<script type="text/javascript" src="jquery/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function()
{
    // add click events
    $("#off").click(function(event)
    {
        $.get("rflcc.cgi", { cmd: "RAMP", lvl: "0" } );
    });
    $("#fon").click(function(event)
    {
        $.get("rflcc.cgi"); 
    });
});
</script>
</head>
<body>
<h1>TEST PAGE FOR RFLC CONTROL AND STATUS</h1>
<input type="button" value="Off" id="off">
<input type="button" value="Full On" id="fon">
<form method="get" action="rflcc.cgi" id="alt" name="alt">
alternate method
<input type="submit" value="Another try" name="altsubmit">
</form>
<br>
<textarea cols="80" rows="50"></textarea>
</body>
</html>

this may require a little more explanation now, so i will take a short attempt at that. the only reason the two click events are different is so i could try two different things with one load (bc i have to flash the embedded device with this static code every time…). neither of those get methods in the click event work though. the blank form however DOES work, and my original question was what is the difference between that blank form and the jquery get in the click event for the ‘fon’ button? i was thinking they should behave the same…

  • 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-05-16T22:08:11+00:00Added an answer on May 16, 2026 at 10:08 pm

    As @Nithesh commented, $.post() is really the right tool for the job when you’re not getting information back. As a bonus, POST requests should never be cached by the browser, but GET requests can be, and that theoretically could be your problem.

    Also, your blank form isn’t truly blank – the submit button has a name and value which get submitted as parameters. Is it possible that your cgi script is where the problem lies instead? It seems unlikely, but I have to ask…

    For diagnostic purposes, you might want to do something like this:

    $("#fon").click(function(event) {
        $.post("rflcc.cgi", function() { alert "Done!"; });  
    });
    

    That will tell you if the request is happening at all. If you’re not already, look into the FireBug addon for Firefox as a tool to help diagnose Ajax stuff.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application running in rails 3.1 where a page displays embedded videos.
I have an existing Java web application running on Linux using embedded Jetty. The
I have a Silverlight 4 application that I am running embedded on a web
I have application running for hours in embedded Linux, when suddenly the OOM Killer
I have a simple web browser embedded in an application that allows a user
I have a spring application that uses an embedded Jetty instance. Since I am
We have a Flex 3 application of which the main .swf is running in
I have a web application running with Spring Webflow, Tiles and JSP. Currently all
I have an application running on remote systems. The remote systems are an embedded
I have a Java application that is running embedded groovy scripts using a GroovyClassLoader

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.