This is a migrated thread and some comments may be shown as answers.

Client-Side Syntax Question

2 Answers 59 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Mark Galbreath
Top achievements
Rank 2
Mark Galbreath asked on 12 Jan 2010, 11:07 PM
When the selected index changes on my RadComboBox, I need to populate various RadTextBoxes with data from the database.  I have a blank VB aspx page with code-behind waiting for a request object parameter containing the primary key in the page_load method, but it never arrives from my Javascript function:

function indexChanged(sender, args) {  
    var id = sender.get_text().trim();  
    $.get( 'User.aspx', { userid:id }, function(data) {  
        alert(data);  
    });  

What am I doing wrong here?  What is the correct syntax to send a parameter from the client and receive data back in an asynchronous way?  This seems to be a very basic function, and yet I can find no help in the documentation.

Thanks,
Mark

2 Answers, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 13 Jan 2010, 03:56 PM
Hello Mark Galbreath,

It seems that your syntax is correct. Please refer to this help article and make sure that $ actually refers to jQuery.

Sincerely yours,
Simon
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Mark Galbreath
Top achievements
Rank 2
answered on 13 Jan 2010, 04:34 PM
What a great resource!  http://api.jquery.com/

I wish Telerik had such a convenient and well-documented downloadable API!!

Thanks!
Mark
Tags
ComboBox
Asked by
Mark Galbreath
Top achievements
Rank 2
Answers by
Simon
Telerik team
Mark Galbreath
Top achievements
Rank 2
Share this question
or