Friday, 15 January 2010

Dynamic rating is not happening in jquery , Bootstrap class is not functioning -


While dynamically I am complying with bootstrap rating control, not affected by rating class jquery GetReviewTypeForRating (hallIDFReview) {$ .ajax ({url: '@ Url.Action ("GetReviewRatingTypes")

My Jquery Code

 , "PublicUser"), Content Type: "Application / Jason; Charset = UTF-8", Datatype: "Jason", Data: "{'obj': '" + + hallIDFReview + "'}", type: Post "// 'GET' or 'POST' ('GET' is the default) Success: Function (Data) {if (Data! =" No review ("Data"); {divas = " Line "> 

See wrapping your AJAX request in $. When and after the success code, write in. As the following:

GetReviewTypeForRating function (hallIDFReview) {var Valid = incorrect; Var datainfo = ""; $ When ($ .jax ({url: '@ Url.Action ("GetReviewRatingTypes", "PublicUser"), Content Type: "Application / Jason; Charset = UTF-8", Datatype: "Jason", Data: "{ Type 'Obj': '"+ hallIDFReview +"'} ", type:" post ", // 'GET' or 'POST' (default is 'received'): function (data) {if (data! Not a review ") {dataInfo = JSON.parse (data); console.log (data); valid = true;}}, error: function (xhr, position, error) {var err = eval (" ("(" (" + Xhr;) (warning (err.Message);}}). Then (function () {if (valid) {var divTr = ''; $ .each (datainfo, function (i, item) {DivTr + = '& Lt; div class = "row" & gt; div class = "col-lg-4">

No comments:

Post a Comment