Limiting Date value on one field based on date value on other date field using jQuery DatePicker
jQuery date picker is one of the easiest, light weight & most easily configurable for all websites. It can be used with JSP, ASP, PHP forms at an ease. You can confiure the date picker exactly like the way you need under the following link Demo But those configurations are limited to single text box element alone. What do you do if you want to limit the date based on the date value in [...]
Unblockable popup on Browser close event
Popup on browser close event can save lot of customers who try to abandon shopping cart by giving special offers. But most of the popups are blocked by browsers popup blockers. This is an un blockable popup browser close event. This is done using a javascript library moodalbox. You can use this for offering discounts, displaying messages etc.
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
<!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> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <script src="mootools.v1.11.js" type="text/javascript"></script> <script src="moodalbox.js" type="text/javascript"></script> <link media="screen" type="text/css" href="moodalbox.css" rel="stylesheet"> <style type="text/css"> #mb_center { z-index: 8000; } #mb_bottom { z-index: 7500; } #mb_overlay { z-index: 7000; } </style> <script type="text/javascript"> // This is set to true at first to avoid false firing var noCouponPop = false; var couponAlertText="_____________________________________________________________\r\n\r\n **** We want to offer you a special discount for this purchase. **** \r\n\r\n** CLICK CANCEL TO RECEIVE 5 PERCENT DISCOUNT OFF THIS ORDER ** \r\n\r\n _____________________________________________________________"; // Setup the onbeforeunload function handle window.onbeforeunload=function(ev) { // Is the cookie set already? // Check to see if we want to show the exit pop if(noCouponPop==false) { // Set a cookie saying that we've already seen the popup // Tell the broweser to go back up to the top of the page. // document.location.hash="Top"; // Display our lightboxed coupon page MOOdalBox.open( // case matters "s", // the link URL "The coupon has already been applied to your cart. Click close to finish your order.", // the caption (link's title) - can be blank "550 450" // width and height of the box - can be left blank ); // Remove our window hook window.onbeforeunload=null; // Return the text that will be displayed back the brower with the cancel or OK dialog return couponAlertText; } } // Setup the onload function handle window.onload=function(ev) { noCouponPop = false; } function attachClickAndFormHandler() { // Attach a click handler to the link $$('a').each(function(item, index){ item.addEvent('click', function(){ // We clicked something on our own page so we don't want an pop here. noCouponPop = true; }); }); $$('form').each(function(item, index){ item.addEvent('submit', function(){ // We clicked something on our own page so we don't want an pop here. noCouponPop = true; }); }); } attachClickAndFormHandler(); </script> </head> <body> </body> </html> |
Also included other codes Live Demo Download
Installing SSL certificate & Making entire wordpress site https
Installing SSL certificates to your Apache based Linux server makes all your information on your site delivered to the user browser through different port which makes a dedicated line between the server & browser. Also the information is encrypted before sending. Lets say you need to make particular pages of your site to be https, & all other pages of your site to be http. This methodology is possible in static HTML sites of previous decade, but not in [...]
Authorize.net Payment Gateway Integeration
Authorize.net remains popular payment method of all time. For programmers you can follow this Authorize.net PHP class to accept authorize.net payments for your services in less than 10 minutes. Step 1 : You require authorize.net account API Username & Password that should be obtained for your authorize.net account. Go to https://sandbox.authorize.net and create your developer test account if you already don’t have one. Then Login to your account Goto Account -> Security Settings -> API login [...]
5 Best Free Software’s to take awesome screenshots
For a developer, technical support, customer support or normal daily user, taking screenshots remain very important because you can store the information on your screen without any notes, notepad or pen. In this post i explain the 5 bestmethods i use to take screeshots. 1 Picasa Picasa is a freeware, the beauty of using picasa software to take screenshots is you can take screenshots on the go, just run picasa in the background and use print screen [...]
Using Google Public DNS to access internet at amazing speed
I am using BSNL 3G connection to access internet at my laptop with “Tethering & Portable Hotspot”. I experienced an issue that probably most of them might expect on the same network. The issue is that all google websites like Gmail, Youtube are loading in amazing speed, but most of the other websites do not load at all. If i see in my browser status bar, It states Waiting for soandso.com site. The browser waits [...]
Best free data recovery software for corrupted/formatted SD card
Are you recieving any of the following if you plug in your precious memory card to your computer H:// drive is un accessible This volume contains unrecognized file system The total free & Used space on your card is zero bytes The file system is detected as RAW Then your Memory card or removable storage device is possibly corrupted. It’s hard to repair the corrupt card but you can recover 90% of data stored in [...]
Using Crayon Syntax Highlighter in WordPress Blogger
I just started the programmers guide blog to share my knowledge with the world. When i try to post tutorials, i have to use original code samples to demonstrate people. It seems unprofessional when using the plain text to paste the code in blog post. I wondered if there is any software that provides same visual theme of code like as seen in program editor and to my surprise “Crayon Syntax highlighter” made it possible [...]
LATEST POSTS
- Limiting Date value on one field based on date value on other date field using jQuery DatePicker
- Unblockable popup on Browser close event
- Installing SSL certificate & Making entire wordpress site https
- Authorize.net Payment Gateway Integeration
- 5 Best Free Software’s to take awesome screenshots
- Using Google Public DNS to access internet at amazing speed
- Best free data recovery software for corrupted/formatted SD card
- Using Crayon Syntax Highlighter in WordPress Blogger
- Adding Custom Navigation Menu in WordPress 3.0 Theme
- PHP MySQL Pagination – Simplest in entire Internet
- Pagination of MySQL data Using AJAX PHP & jQuery
- Testing & Debugging UltraCart Single page checkout during development
- Integrating UltraCart account with Custom JavaScript API Chekout
- A Simple Guide for Building UltraCart Custom JavaScript API Checkout
- 4 Simple Steps to follow before building Shopping Cart using UltraCart
- I Support Open Source
- 5 Simple Steps eliminate Spam Comments in WordPress
- FireBug – The best HTML Debugging tool Ever
- Optimizing Multiple Images for best Size/Quality using popular freeware Picasa
- How to optimize images for best possible file Size/Quality?
Sponsored Links
Library
- December 2012 (4)
- November 2012 (3)
- October 2012 (43)
- September 2012 (1)
- August 2012 (1)
- June 2012 (1)
- May 2012 (2)
- April 2012 (2)
- December 2011 (1)
Popular Search Terms
- devfactory interview questions
- devfactory interview
- devfactory test questions
- devfactory skype interview
- one page checkout virtuemart 2 скачать
- free sd card data recovery software
- single page checkout for virtuemart скачать
- One Page Checkout for Virtuemart скачать
- devfactory skype interview questions
- dragonfly vs firebug




An article by Jagan Krishnaraj







