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

Mixing it up with XmlHttpPanel and Jquery

2 Answers 64 Views
XmlHttpPanel
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 31 Dec 2009, 01:53 PM
Hi all,

  I am developing a site that uses XmlHttpPanel to display the product information.  The XmlHttpPanel is load using the Telerik rotator a product menu in the left hand side navigation.  This works great.

  Yesterday I develop a third tool to display all the images for the product in a jquery jCarouselLite carousel.  On page load the page displays perfect with a working carousel.  If I select another product the XmlHttpPanel refreshes with the new product content info, however the carousel does not.

  What is the best way to reload the function for jquery carousel? Maybe in the Service call in the code behind for the XmlHttpPanel?

David

2 Answers, 1 is accepted

Sort by
0
Pero
Telerik team
answered on 04 Jan 2010, 01:46 PM
Hi David,

I am not familiar with the jquery jCarouselLite carousel and do not completely understand how the function for jquery carousel is reloaded. Will you please provide more information about this jquery plugin? It will be the best if you can send us a sample working project that demonstrates the functionality that you try to achieve and we will do our best to provide a solution?

If you want to call a client-side method (or execute custom client-side code) after the response from the XmlHttpPanel control has finished (is finishing) you can use its OnClientResponseEnding or OnClientResponseEnded client-side events.

Kind regards,
Pero
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
David
Top achievements
Rank 1
answered on 05 Jan 2010, 12:25 AM
Hi Pero,

    We ended up droping that double ajax call.  I was using the onclientclick within the Rad Rotator to load the first product detail for the brand, and to load the jquery Carsouse Lite with all the product images that fall under that brand.   That work great after I place the Carsouse into the same XmlHttpPanel.   Every thing fell apart we I attempted to add a onclickevent ajax call to the Carosouse to update the product detail when the user clicks on an image.  Anyway we ended up dropping the idea after SEO came into play.

    I remember having a problem similiar to that in ajax four years ago, I will go back and figure that out later.   I do love the RadXmlHTTPPanel, I believe it is very similiar to the way I use to do Ajax calls just replacing the innner html. (back in the classic ASP days)

Thanks,
David
Tags
XmlHttpPanel
Asked by
David
Top achievements
Rank 1
Answers by
Pero
Telerik team
David
Top achievements
Rank 1
Share this question
or