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

.AjaxRequest is not a function

7 Answers 369 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Linus
Top achievements
Rank 2
Linus asked on 19 Aug 2008, 12:20 PM
Hello, my scenario is as follows:

1. MasterPage with two ContentPlaceHolders.
2. On the Page-level, each ContentPlaceHolder contains a RadAjaxPanel.
3. At any time, the panel called RadAjaxPanel2 might trigger an event which is caught by the Page. The Page wants to update RadAjaxPanel1.

The update is done through:
protected void OrderCreated(object sender, EventArgs e) 
    Orders.DataBindOrders(); 
    RadAjaxPanel2.ResponseScripts.Add(String.Format("$find('{0}').AjaxRequest();", RadAjaxPanel1.ClientID)); 

However, when the Page loads i find the following error in FireBug:

$find("ctl00_MainContent_RadAjaxPanel1").AjaxRequest is not a function 
addFileInput(undefined)Telerik.Web.UI.We... (line 15611) 
initialize()Telerik.Web.UI.We... (line 15461) 
Sys$Component$endUpdate()ScriptResource.ax... (line 2587) 
Sys$Component$create(function(), Object allowedFileExtensions=[".xls"], nullnull, div#ctl00_MainContent_CalcGuide_FUDistributionFile.radupload)ScriptResource.ax... (line 2736) 
Sys$_Application$add_init(function()) 



Note: FUDistributionFile is a RadUpload control located in a UserControl in RadAjaxPanel2.

My question is why can't I interact between the two panels?

Regards
/Linus


7 Answers, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 19 Aug 2008, 12:48 PM
Hello Linus,

Indeed, there is no AjaxRequest function but ajaxRequest instead. See the Client-Side API for details:

http://www.telerik.com/help/aspnet-ajax/ajxclientsideapi.html


Best wishes,
Konstantin Petkov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Linus
Top achievements
Rank 2
answered on 19 Aug 2008, 01:32 PM
Hi, you are correct and now it's working, thanks!

However, your help pages are missleading, stating that it's supposed to be AjaxRequest...

http://www.telerik.com/help/aspnet-ajax/ajxinteractionbetweenpanels.html

Regards
Linus
0
Konstantin Petkov
Telerik team
answered on 20 Aug 2008, 06:14 AM
Hi Linus,

You are correct too!

We have immediately fixed the discrepancy and the next version will contain the updated article. I have updated your Telerik points for notifying us about that, thank you!

All the best,
Konstantin Petkov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Ales Savli
Top achievements
Rank 1
answered on 02 Jun 2010, 09:36 AM
You still did not correct your live demo pages. There is stil "AjaxRequest()" all over.
0
Sebastian
Telerik team
answered on 02 Jun 2010, 12:48 PM
Hi Ales,

The help topics and online demos were updated accordingly and the letter casing matches the current API conventions (i.e. ajaxReqest() starts with small letter). Let us know if we are missing something.

Best regards,
Sebastian
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Ales Savli
Top achievements
Rank 1
answered on 02 Jun 2010, 12:50 PM
Look here: http://www.telerik.com/help/aspnet-ajax/grdvirtualscrollpaging.html
0
Sebastian
Telerik team
answered on 02 Jun 2010, 01:21 PM
Hello Ales,

Thank you for the remark - the discrepancy will be addressed for the next version of the online documentation. I updated your Telerik points for drawing our attention to this detail.

Best regards,
Sebastian
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Ajax
Asked by
Linus
Top achievements
Rank 2
Answers by
Konstantin Petkov
Telerik team
Linus
Top achievements
Rank 2
Ales Savli
Top achievements
Rank 1
Sebastian
Telerik team
Share this question
or