Hi! How client <@ TestPage.SlideShowPage.Main() @> works is that the server creates a placeholder div with a unique id, and JavaScript code translated from the given client-side function creates the Doc value which is rendered in the placeholder. So any content returned from your function will be inserted to the DOM only after the function call returns, so Swiper(".swiper-container") would not see it yet.

To resolve: Either place it in outside of a template (so server returns it in html response) or use .Elt().OnAfterRender(...) instead of .Doc() (this works if the template has a single element).

Have this helped? Thanks!

By on 1/10/2019 10:45 AM ()

ok, thank you!

By on 1/10/2019 11:44 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper