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 871389
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T10:38:03+00:00 2026-05-15T10:38:03+00:00

Here is my html form <div id=create> <form action=index.php method=get id=createform> <input type=text name=urlbox

  • 0

Here is my html form

    <div id=create>
        <form action=index.php method=get id=createform>
        <input type=text name=urlbox class=urlbox>
        <input type=submit id=createurl class=button value=go>
        </form>
    </div>
    <div id=box>
        <input type=text id=generated value="your url will appear here">
    </div>

Here is the javascript im trying to use to accomplish this;

$(function () {
    $("#createurl").click(function () {
        var urlbox = $(".urlbox").val();
        var dataString = 'url=' + urlbox;

            if (urlbox == '') {
                alert('Must Enter a URL');
            }else{
                $("#generated").html('one moment...');
                $.ajax({
                    type: "GET",
                    url: "api-create.php",
                    data: dataString,
                    cache: false,
                    success: function (html) {
                        $("#generated").prepend(html);
                    }
                });
            }return false;
    });
});

when i click the submit button, nothing happens, no errors, and the return data from api-create.php isnt shown.

the idea is that the new data from that php file will replace the value of the textbox in the #box div.

i am using google’s jquery, and the php file works when manually doing the get request, so ive narrowed it down to this

  • 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-15T10:38:03+00:00Added an answer on May 15, 2026 at 10:38 am

    Dan’s answer should fix it.
    However, if #createurl is not a submit/input button, and is a link styled with css etc., you can do this:

    $('#createurl').click(function () {
      $('#createForm').submit();
    });
    
    $('#createForm').submit(function () {
      // all your function calls upon submit
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 497k
  • Answers 497k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Try this: try { if(MyAudio != undefined) { MyAudio.pause(); }… May 16, 2026 at 12:06 pm
  • Editorial Team
    Editorial Team added an answer You can have you your controller observe the UIApplicationWillEnterForeground notification.… May 16, 2026 at 12:06 pm
  • Editorial Team
    Editorial Team added an answer Flashrom can use FT2232 SPI mode: http://flashrom.org/Downloads May 16, 2026 at 12:06 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I have the following form in cakephp: <div class=quickcontactDisplay> <?php echo $form->create('Enquiry',array('action'=>'add','class'=>'quickcontact')); echo $form->hidden('visitor_id',
I have a form with the following HTML below: <form id=course_edit_form name=course_form action=/courses/save method=post>
Here is my jQuery code: <script type=text/javascript> //<!-- $(document).ready(function() { $('input[type=submit]').click(function() { $.ajax({ type:
Here is code on view in FeesController show action template: <div id=payers_controls> <%= link_to_remote('New
I'm trying to assign a variable from a html text input value and then
So here is my form <% remote_form_for([:admin, Page.new]) do |f| %> <ol> <li> <%=
I'm trying to pass a value from a select input control on an HTML
What I want : To, on focus, change one input box into another by
I want to use custom action filter to manipulate parameters to one action. User
I managed to get Ajax working in Rails, specifically using remote_form_for tag to add

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.