Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Daniel 5 posts 54 karma points
    Sep 05, 2014 @ 14:40
    Daniel
    0

    Adding slides not workling

    Hi,

    I installed the uSkySlider and i also added an new property to my document type.

    If i click on the add button, i am always getting this message at the javascript console:

    Error: $scope.model.value.slides is undefined $scope.addSlide@http://localhost:13976/App_Plugins/Lecoati.uSky.Slider/uSky.Slider.controller.js:92:13 Rc/s/<@http://localhost:13976/umbraco/lib/angular/1.1.5/angular.min.js:74:81 @http://localhost:13976/umbraco/lib/angular/1.1.5/angular-mobile.js:270:30 Xc/this.$get</e.prototype.$eval@http://localhost:13976/umbraco/lib/angular/1.1.5/angular.min.js:92:261 Xc/this.$get</e.prototype.$apply@http://localhost:13976/umbraco/lib/angular/1.1.5/angular.min.js:92:374 @http://localhost:13976/umbraco/lib/angular/1.1.5/angular-mobile.js:269:7 x.event.dispatch@http://localhost:13976/umbraco/lib/jquery/jquery-2.0.3.min.js:10:11716 x.event.add/y.handle@http://localhost:13976/umbraco/lib/jquery/jquery-2.0.3.min.js:10:7816


    What i am doing wrong? Thanks!

  • Antoine 176 posts 1494 karma points
    Sep 08, 2014 @ 11:11
    Antoine
    0

    Hi Daniel,

    Which version of Umbraco are you using?

  • Daniel 5 posts 54 karma points
    Sep 10, 2014 @ 21:33
    Daniel
    0

    Hello,

    Currently i am using the version 7.1.6. Meanwhile i solved the problem with the javascript error.

    Next i added the PartialView (uSkySlider) to my view to display the slider but i am getting also an error:

     

    Cannot perform runtime binding on a null reference

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: Cannot perform runtime binding on a null reference

    Source Error:

    Line 5:      dynamic slider = @Model.Content.GetPropertyValue("slider");
    Line 6:  
    Line 7: decimal width = !string.IsNullOrEmpty(slider.width.Value.ToString()) ? decimal.Parse(slider.width.Value.ToString()) : 0; Line 8:      decimal height = !string.IsNullOrEmpty(slider.height.Value.ToString()) ? decimal.Parse(slider.height.Value.ToString()) : 0;
    Line 9:      decimal editorWidth = !string.IsNullOrEmpty(slider.editorWidth.Value.ToString()) ? decimal.Parse(slider.editorWidth.Value.ToString()) : width;

     

    Also at the backend i can't edit the silder fields only the background color:

    Could there be a problem with my current umbraco version?

Please Sign in or register to post replies

Write your reply to:

Draft