Mixing it up with XmlHttpPanel and Jquery

3 posts, 0 answers
  1. David
    David  avatar
    35 posts
    Member since:
    Dec 2008

    Posted 31 Dec 2009 Link to this post

    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. Pero
    Admin
    Pero avatar
    1156 posts

    Posted 04 Jan 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. David
    David  avatar
    35 posts
    Member since:
    Dec 2008

    Posted 04 Jan 2010 Link to this post

    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
Back to Top