[jQuery] How can I get the value of any control I click?

2008-09-13 Thread jmDesktop
I have a form with five buttons. Each one may have a different value. I can't figure out how to get the value and put it in an alert box. I can't find in the docs where to look. I found .val(), but not how to really use it. I don't want to select a specific button, I don't know which on the u

[jQuery] Re: How do I update my control after I submit data to my database?

2008-09-13 Thread jmDesktop
page: > > > Then the ajax callback, assuming you are returning json data: >     function( data ) { $("#username").text( data.username ); } > > -- Josh > > > > - Original Message - > From: "jmDesktop" <[EMAIL PROTECTED]> > To: "jQu

[jQuery] How do I update my control after I submit data to my database?

2008-09-12 Thread jmDesktop
If I use jQuery .ajax to submit to my myUpdate.php file, after I do that, how do I then update my control that I submitted the information to update in the first place? For example, I have username textbox on a form, and I submit that username to a database. I then have a div or label that needs

[jQuery] Can I use DWR and jQuery together?

2008-05-13 Thread jmDesktop
Kind of new to both, but I am using WebSphere and Java technologies. I have used jQuery for various effects in the past and am familiar with it. DWR, new to me. Can I use both libraries in my web pages? DWR for remoting and jQuery for visual and other effects? Thanks.

[jQuery] Can you poll a database with jQuery or do I just use plain ajax?

2008-04-05 Thread jmDesktop
Hi, new to jQuery and really any of the javascript libraries. I have read about many of them and seen the examples and am settling on jQuery or Mootools. If I want to poll a database every x seconds and view new entries by users on a site (assuming I have many users updating, etc.), is that an a