Jquery working on local but not working in the server

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
2/6/2011 11:56:14 PM
Gravatar
Total Posts 26

Jquery working on local but not working in the server

 hi

   I have created the custom usercontrol which read properties from the user and display the slideshow. I added the usercontrol (design) to the locally published folder and added the respective dll to the bin folder(mojoportal-2-3-5-5-mssql-net40-deploymentfiles\wwwroot\) . Also added the jquery.js & jqFancyTransitions.js files to the folder. Once i add this as a feature to a page in my site, it works well(in local iis).

   But when i add these files to the folder which is published on the server and add as a feature for a page, it display the images only.  It doesn't apply the slideshow effects. The url of the page is http://www.gloriatech.com/slideshow.aspx . I checked this page with the FireBug , it shows the error which is " Sys is undefined" on the particular line and also tell the resource not found in the line 89. I dont know how to solve this problem. can anyone tell me the solution?

                                                                                                                                                                                             thanks

2/7/2011 12:11:22 PM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Jquery working on local but not working in the server

I just tried it with the default images, and got it to work okay. The first time I tried it, I set a transition speed of 200, and I got the "zipper" effect on the first transition, but no effects on subsequent ones. I tried again with a transition speed of 2000, and it worked correctly on each slide change. I think you just need to figure out the transition speed value that will allow the transition to be displayed each time, and enforce that as a lower bound for the variable.

Jamie

2/7/2011 1:42:54 PM
Gravatar
Total Posts 18439

Re: Jquery working on local but not working in the server

Sys is undefined

Sounds like an error with MS Ajax. Make sure you have ScriptManager in your layout.master file and make sure you used the Web.config file that ships with mojoPortal

Google for more

Hope it helps,

Joe

2/8/2011 4:39:58 AM
Gravatar
Total Posts 26

Re: Jquery working on local but not working in the server

Thanks Jamie E and Jeo Audette for your reply. Its working now. I didn't change anything, but it is now working. i think the problem was transition speed value. Anyway thanks a lot for your help.

2/9/2011 8:08:19 AM
Gravatar
Total Posts 26

Custom Feature Settings Error

     I want to add a custom usercontrol(Slideshow settings)  to the feature settings. That is when the settings link button is clicked in the respective page then it will show the user control which reads data for the user.

    I went to Advanced Tools > Feature installation\Configuration > SlideShow(my custom usercontrol) > Feature settings. I dont know how to add the Slideshow settings control, because it is asking resource files, keys etc.

     Can anyone tell me the steps to be followed in detail?

 

 

     

2/9/2011 9:54:48 AM
Gravatar
Total Posts 18439

Re: Jquery working on local but not working in the server

To use a UserControl for a Module setting can only be done if you implement the ISettingControl interface.

http://www.mojoportal.com/modulesettings-adeveloperconvenience.aspx

 

2/9/2011 11:57:42 PM
Gravatar
Total Posts 26

Custom Feature Settings Error

   I am getting the following error when i adding my custom user control as a feature settings.

 

   Could not find any resources appropriate for the specified culture or the neutral culture.  Make sure "Resources.SlideShowResources.resources" was correctly embedded or linked into assembly "App_GlobalResources._nferlnu" at compile time, or that all the satellite assemblies required are loadable and fully signed.

   My feature called slideshow itself a custom one. I added that feature as seperate dll to the bin. I didnt follow the steps as you said in the documentation for creating custom features. So i addeded the slideshow settings control through following steps.

    1. Created a config file in wwwroot\Setup\applications\SlideShow\FeatureDefinitions\70000_SlideShow.config.

  My config file look like this

            <?xml version="1.0" encoding="utf-8" ?>
<featureDefinitions>
<featureDefinition
  featureGuid="88ce2c24-8a6d-420f-a73d-c3b2bcbbff5f"
    supportedDatabases="MSSQL,MySQL"
  resourceFile="SlideShowResources"
  featureNameReasourceKey="SlideShowName"
  controlSource="Cdtech/bandwidth control/BandWidthCal.ascx"
  sortOrder="800"
    isCacheable="false"
  defaultCacheTime="0"
  excludeFromFeatureList="false"
  icon="blank.gif"
    isSearchable="true"
    searchListNameResourceKey="SlideShowSearchName"
    deleteProvider="SlideShowContentDeleteHandler"
    supportsPageReuse="false"
  >
   
    <featureSetting
   resourceFile="SlideShowResources"
   resourceKey="SlideshowSetting"
   defaultValue="GroupByProduct"
   controlType="ISettingControl"
      controlSrc="~/Cdtech/sssettings.ascx"
      helpKey=""
      sortOrder="300"
   regexValidationExpression=""
   />
  
   
</featureDefinition>
</featureDefinitions>

 When i go to the site and click the the settings button in my custom feature it shows the above error. Sorry, I really couldnt understand the concept in "http://www.mojoportal.com/modulesettings-adeveloperconvenience.aspx". Please give me the idea to clear the error without rebuilding the solution and publish it.

 

                                                                        Thanks

2/10/2011 1:09:27 AM
Gravatar
Total Posts 245
mojoPortal Community Expert

Re: Jquery working on local but not working in the server

Hi sathya

I have 2 things to mention that may help.

1) Do you have this line included in your project "Post Build Event"

xcopy /s /y "$(ProjectDir)App_GlobalResources\*.resx" "$(SolutionDir)Web\App_GlobalResources\"

2) This line in your config file looks a bit strange.

controlSource="Cdtech/bandwidth control/BandWidthCal.ascx"

I would expect it to be something like:

controlSource="SlideShow/SlideShowModule.ascx"

or what ever you named the folder and module

 

Rick(Arvixe)

2/10/2011 1:28:14 AM
Gravatar
Total Posts 26

Re: Jquery working on local but not working in the server

  Thanks for the reply Rick Hubka. 

                  As u said I added the line in postbuilt event xcopy /s /y "$(ProjectDir)App_GlobalResources\*.resx" $(SolutionDir)Web\App_GlobalResources\" and rebuilded my project and copied my dll and pasted it into the bin folder.And i shifted my usercontrol to Cdtech\SlideShow.ascx. Now also im getting the same error. I was not included any resource file to the App_GlobalResources folder under wwwroot, becoz im not having anything like that. What will i do?

 

 

2/10/2011 1:46:57 AM
Gravatar
Total Posts 245
mojoPortal Community Expert

Re: Jquery working on local but not working in the server

If you have a line like this in your project "Post Build event"

xcopy /s /y "$(ProjectDir)bin\Kicker.UI.dll" "$(SolutionDir)Web\bin\"

using your dll name, it copies the dll to the web\bin folder for you.

I would watch a few of Joes developer video's again if I were you.

I have watched from #3 to #7 about 3 times to make sure I don't miss things.  They are only about 9 minutes each so it does not take too long.

As you know, it's really hard to know what a person has missed without seeing their Visual Studio environment.

Rick(Arvixe)

2/10/2011 3:35:41 AM
Gravatar
Total Posts 108
Community Expert

Re: Jquery working on local but not working in the server

If you dont have any resources files for the localization of your module, you will continue receive the error because in your  web.config you  instruct the system to look for the  ResourceFile="SlideShowResources" 

2/10/2011 4:00:13 AM
Gravatar
Total Posts 26

Re: Custom Feature Settings Error

  Without adding the resource file , i cannot make a settings for my custom feature ah?  Because i removed the resource file name from config file. i only added the "Setting Key (no spaces) use the same key for the label in your Resource file: SlideShowSettings. and the ControlType: ISettingsControl and the Control Source:Cdtech/SlideShow.ascx ". Now when i click the settings tab it does not throw me an error instead it shows the "SlideShowSettings" label only.

  I went through the system log it give the error as follows

ERROR mojoPortal.Web.AdminUI.ModuleSettingsPage - ModuleSettings.aspx.cs error getting resource for s.SettingName BWSettings
System.NullReferenceException: Object reference not set to an instance of an object.
   at mojoPortal.Web.AdminUI.ModuleSettingsPage.AddSettingControl(CustomModuleSetting s, Panel groupPanel)

 

 

 

2/10/2011 10:56:20 AM
Gravatar
Total Posts 245
mojoPortal Community Expert

Re: Jquery working on local but not working in the server

Hi sathya

I would say yes.  You need it  Although I have never tried removing it.  I do not believe Joe's tutorials said this was an optional step.

Rick(Arvixe)

2/10/2011 11:06:02 AM
Gravatar
Total Posts 18439

Re: Jquery working on local but not working in the server

If your UI project does not have an App_GlobalResources folder you should right click it and choose Add > ADD ASP.NET Folder > App_GlobalResources

Then you should add SlideShowResources.resx to that folder and add strings for your resources.

Then in your post build event make sure to copy the .resx file(s) up to Web/App_GlobalResources

Hope it helps,

Joe

ps, next time one question per thread would be appreciated to keep the forums organized. This thread started out about jquery and ended about resource files.

You must sign in to post in the forums. This thread is closed to new posts.