0

I'm new to jQuery. I've got a dialog with several input boxes in it. I want the user to be able to hit a button and have the values posted back to the server - idealy to be picked up in a server event. What are the ways to achieve this?

Many thanks.

3
  • How do you want to use jquery? Do you mean use jquery for the dialog component? Commented Jun 2, 2009 at 15:31
  • do you want o use ajax or can jquery just to a from submit? Commented Jun 2, 2009 at 20:01
  • I only want to use jQuery if possible. I need to get the values from the input form fields housed in the dialog and have then posted back to the server when the dialogs submit button is hit. If there is a very good way of doing this that involves AJAX then I'd be willing to look at this too. Commented Jun 3, 2009 at 9:03

2 Answers 2

1

If you're going to be doing a postback, why can't you just use standard asp.net controls inside of your dialog? I've been using jqModal, and this seems to work fine.

I use a standard HTML input button to trigger the dialog (which is in the page as a hidden div). When the user clicks on the the asp.net button or controls in the dialog, the server doesn't know or care that the controls were in a modal dialog.

Sign up to request clarification or add additional context in comments.

Comments

0

There are a few different approaches you could take. You are probably going to want to use a jquery plugin.

I would look into Thickbox, its very easy to implement. Other options would be using the jQuery UI plugin or jQModal depending on your needs. Each one offers some pros and cons.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.