Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 84751

Window and partial view

$
0
0
I want to use window with partial view.

There are two function in partial view. When window was opening I got error : "Uncaught SyntaxError: Unexpected token :"

If I remove second parameter(prm2) in second function(getCustomer2) then it works fine.(MyWindowPartial.cshtml line 14)

What can I do?

 

<script>
function getCustomer1()    {
     return {  wfTypeId : @(Html.Raw(Json.Encode(ViewBag.WfTypeId))), 
                folderIdList : @(Html.Raw(Json.Encode(ViewBag.WfTypeId)))        };   }
function getCustomer2()   {
    return  { wfTypeId : @(Html.Raw(Json.Encode(ViewBag.WfTypeId))),
                  prm2 : "deneme"       };
}
 </script>

Viewing all articles
Browse latest Browse all 84751

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>