Posts

Showing posts with the label JavaScript

Implementing Zoom functionality in asp.net

Zoom functionality in asp.net 1. Write the Below code in the  <head> Tag  <script type="text/javascript">         function BrowserZoomPluse() {            nzoom = parseInt(divTest.style.zoom) + 30 + '%';             divTest.style.zoom = nzoom ;         }         function BrowserZoomMinuse() {             nzoom = parseInt(divTest.style.zoom) - 10 + '%';             divTest.style.zoom = nzoom ;         }         function ResetZoom() {             nzoom = parseInt(divTest.value);       ...

How to refresh parent page on close of popup window by toolbar close button

How to refresh parent page on close of popup window by toolbar close button 1. Create a Page default.aspx <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server">     <title></title>     <script type="text/javascript">         //Method is used for Open a Url in Popup window.         function openPopup() {             open('Default2.aspx', "Page", "status=1, width=350, height=150, top=300, left=500,location=no,resizable=yes,scrollbars=1,toolbar=no,directories=no,status=no,menubar=no");         }     </script> </head> <body>     <form id="form1" runat="server">     <a href=...

Automatically Jquery close alert /dialog box

Automatically Jquery close alert /dialog box  //Add below html code into body < div id ="dialog1" title ="Alert Message" style =" display :none">     < asp : Label ID ="lblMessage" runat ="server" Text ="Record Inserted Successfully"></ asp : Label > </ div > //add below code into head < script type ="text/javascript">         function DisplayPOP() {             var mydiv = $( '#dialog1' );             mydiv.css( 'display' , 'block' );             mydiv.dialog({ autoOpen: false , height: 20, width: 300 });             mydiv.dialog( 'open' );             //send the time     ...

Open only 1 highslide pupup window if use highslide in a gallery (automatically close the already open window)

1.        Open Highslide-full.js or highslide-with-html.js which is used in your project. Add the below hightailed code in  Highslide-full.js or highslide-with-html.js hs.Outline =  function (outlineType, onLoad) {    this .onLoad = onLoad;    this .outlineType = outlineType;    var v = hs.uaVersion, tr;       this .hasAlphaImageLoader = hs.ie && hs.uaVersion < 7;    if (!outlineType) {           if (onLoad) onLoad();           return ;    }    hs.init();   this .table = hs.createElement(           'table' , {                  cellSpacing: 0           }, { ...

Alert message when close the browser

 Alert message when close the browser <script language="JavaScript" type="text/javascript">         window.onbeforeunload = confirmExit;         function confirmExit() {             return "Are you sure you want to close this page?";         } </script>