Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Unable to define Variables inside my code snipet

$
0
0

I have a code snippet inside my SP2013 team site, but when i tried to write something such as :-

var options = {
        url: "http://192.168.8.221/view/viewer_index.shtml?id=726",
        width: 1000,
        height: 1000,
        title: "Hi World"
    };<li class="ms-comm-adminLinksListItem" unselectable="on"><a href="SP.UI.ModalDialog.showModalDialog(options);" unselectable="on">Camera One</a></li>

the code snippet did not regonize the var options-{ and it will show the code characters as is  ? so can anyone advice how i can write my above code in a code snippet?

thanks



Viewing all articles
Browse latest Browse all 7589

Trending Articles