1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Early jquery in lifecycle from sf

Early jquery in lifecycle from sf

2 posts, 0 answered
  1. Pierre
    Pierre avatar
    433 posts
    Registered:
    16 Feb 2006
    29 Oct 2009
    Link to this post
    Hi team,

    Could you suggest some way to retrieving jquery early in lifecycle. I have some scripts added to head but the internal jquery as $.Telerik(in body) or called by page register tag is to late. Actually i register my scripts at OnPreRender using just before my main script.
    onPreRender
    this.Page.ClientScript.RegisterClientScriptBlock(this.GetType(), guid.ToString(), "window.$ = $telerik.$;", true);
    generate one Error, jquery is before this statement in head or in body as internal.
    Some tip? Thanks Regards.

               

  2. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    02 Nov 2009
    Link to this post
    Hi Pierre,

    Can you let us know about the exact error?

    You can try to register your own jQuery library with Sitefinity, rather than using the built-in with the default variables. 

    Regards,
    Georgi
    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.
2 posts, 0 answered