More in this section

Forums / General Discussions / works in design mode - not in preview mode

works in design mode - not in preview mode

4 posts, 0 answered
  1. NuToSitefinity
    NuToSitefinity avatar
    140 posts
    Registered:
    01 Sep 2010
    17 Feb 2011
    Link to this post
    I created a master page that I put a usercontrol on it that is using a jquery rotator plugin. Now, when I look at the page in preview mode the rotator works fine, I see the new image slide across the screeen - no issues,
    then when i preview it or even run in on the "live" site, it kicks out an javascript error referring to my jquery error


    So I'm totally confused on why its working in design mode but not on the live site or in preview mode
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    17 Feb 2011
    Link to this post
    Hi DotNetGuy,

    Please share a sample that you use, so we can replicate the issue.

    Regards,
    Ivan Dimitrov
    the Telerik team
  3. NuToSitefinity
    NuToSitefinity avatar
    140 posts
    Registered:
    01 Sep 2010
    18 Feb 2011
    Link to this post
    after a few hours I was able to get it working but only if the URL looked liked this:

    http://localhost/mySite/home/

    that brings up my home page which has the jquery slide show on it. If the url looks like this

    http://localhost/mySite/home

    it does not work
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    21 Feb 2011
    Link to this post
    Hello DotNetGuy,

    Try using our JQuery. You can add it by using ResourceLinks control.

    <sitefinity:ResourceLinksID="resourcesLinks"runat="server">
        <sitefinity:ResourceFileJavaScriptLibrary="JQuery"></sitefinity:ResourceFile>
    </sitefinity:ResourceLinks>

    It is possible that there is a jquery version conflict.

    All the best,
    Ivan Dimitrov
    the Telerik team
4 posts, 0 answered