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

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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T12:03:00+00:00 2026-05-22T12:03:00+00:00

I am trying to build a jQuery functionality for which the scenario is given

  • 0

I am trying to build a jQuery functionality for which the scenario is given below.

Consider a user clicks on an image in the website, a jQuery dialogue box pops up on the page. The dialogue box has a text field to enter the ‘alternative text’ for the image. When the user clicks on the submit button, the text from this page should get saved into my central website’s database along with the url of the image.

I have been able to get the jQuery dialogue box working (by going step and step in jQuery) with the following code http://pastebin.com/nxALvAPP

But I wanted the help to save the ‘image text’ and it’s url in the database from. How can that be done? I am not really a pro.

Thanks for help!

  • 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-22T12:03:01+00:00Added an answer on May 22, 2026 at 12:03 pm

    You’d have to pull an ajax request to a php page with the values of the fields as data. Take a look at http://api.jquery.com/jQuery.ajax/

    As you’ve came so far, I don’t believe this causes any problems for you.

    ///////////////////

    Basically what you do is:

    add an click-event to the submit button:

    $('#button_id').click(function(e) { 
      e.preventDefault();
      // button action
    });
    

    within this action, you call up a file and add data, for example:

    $.ajax({
      url: "savetext.asp",
      context: document.body,
      data: 'title='+$('#title').val(),
      success: function(){
        alert('ajax file called');
      }
    });
    

    This sends a request to savetext.asp with data ‘title’ (which has the value of the input field with the id title). I’m not sure what’s the equivalent of PHP’s $_REQUEST but this parameter (title) is send in the URL to the file savetext.asp.

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

Sidebar

Related Questions

I'm trying to build a slider in jquery as shown in the image below.
I'm trying to build a page on my personal website that both used jQuery
So, I'm working with CKEditor and jQuery, trying to build a pop-out editor. Below
I'm trying to build some jquery tabs based on the request (which is stored
I'm trying to build a slideshow using jquery. The animation for the next image
I am trying to build a HTML / Jquery calculator where a user inputs
I'm trying to build up a simple JQuery function : A modal box (one
i'm trying to build a website using a jquery horizontal accordion following this handy
I'm trying to build a simple jquery plugin that can take selectors as parameters.
I'm trying to build a horizontal accordion with Jquery. It seems to be working

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.