Submit your widget

jquery-ns-window - Ajax load page by pop window with jquery

Created 5 years ago   Views 16544   downloads 4050    Author nihalsheik
jquery-ns-window - Ajax load page by pop window with jquery
View DemoDownload
93
Share |

Usage

Inclue js and css files:

<link rel="stylesheet" href="css/ns-window.css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript" src="ns-window.js"></script>

Add html:

<input type="button" onclick="showWindow('yellow');" value="Window - Yellow"/>

Setup:

function showWindow(theme) {
    $.nsWindow.open({
        title: 'Member Login',
        width: 660,
        height: 400,
        dataUrl: 'content.html',
        theme:theme
    });
}

 

Tag: pop window

You might also like