PATH:
home
/
letacommog
/
crmleta
/
libraries
/
jquery
/* * WindowMsg jquery plugin * * Copyright (c) 2008 Peter Hulst (sfpeter.com / hollice.com) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * Version 1.0 */ (function($) { // this array keeps the list of event handlers and names $.windowMsgHandlers = []; // this init method must be called in the parent window upon page load $.initWindowMsg = function() { $('body').append($('<form name="windowComm"></form>') .append($('<input type="hidden" name="windowCommEvent">')) .append($('<input type="hidden" name="windowCommData">')) .append($('<input id="myinput" type="button" name="windowCommButton" value="" style="display:none">'))); // register event listener $('#myinput').click(function() { eventType = $('[name=windowCommEvent]').val(); data = $('[name=windowCommData]').val(); //console.log('received event/data: ' + eventType + " / " + data); for (var i=0; i<$.windowMsgHandlers.length; i++) { h = $.windowMsgHandlers[i]; if (h.event == eventType) { h.callback.call(null, data); // call the callback method break; } } }); }; // triggers an event in the parent window. Returns true if the // message was succesfully sent, otherwise false. $.triggerParentEvent = function(event, msg) { $.triggerWindowEvent(window.opener, event, msg); }; // triggers an event in a window that was opened by the current window $.triggerWindowEvent = function(otherWindow, event, msg) { if (typeof otherWindow == "object") { form = otherWindow.document.forms["windowComm"]; if (form) { form.windowCommEvent.value = event; form.windowCommData.value = msg; form.windowCommButton.click(); return true; } } return false; } // adds a handler for a message from child window $.windowMsg = function(event, callback) { $.windowMsgHandlers.push({event: event, callback: callback}); } })(jQuery);
[+]
..
[+]
rochal-jQuery-slimScroll
[+]
jqplot
[-] jquery.stickytableheaders.min.js
[edit]
[+]
pdfjs
[-] jquery.ba-outside-events.min.js
[edit]
[-] jquery.form.js
[edit]
[-] jquery.placeholder.js
[edit]
[+]
datepicker
[-] jquery_windowmsg.js
[edit]
[+]
ckeditor
[+]
dangrossman-bootstrap-daterangepicker
[+]
garand-sticky
[+]
malihu-custom-scrollbar
[-] jquery.jqote2.min.js
[edit]
[+]
colorpicker
[-] jquery.virtualpages.js
[edit]
[-] jquery.additions.js
[edit]
[+]
boxslider
[+]
lazyYT
[+]
autosize
[+]
gridster
[+]
twitter-text-js
[+]
defunkt-jquery-pjax
[-] jquery.hoverIntent.minified.js
[edit]
[-] jquery.blockUI.js
[edit]
[+]
bootstrapswitch
[-] jquery.class.min.js
[edit]
[-] jquery.ajaxq.js
[edit]
[-] jquery.easing.1.3.js
[edit]
[-] vtchart.js
[edit]
[-] VtJqplotInterface.js
[edit]
[+]
multiplefileupload
[+]
jquery-ui
[+]
timepicker
[+]
posabsolute-jQuery-Validation-Engine
[-] jquery-visibility.min.js
[edit]
[+]
node-inflection
[-] jqueryRating.js
[edit]
[-] license.txt
[edit]
[+]
instaFilta
[-] jquery.printf.min.js
[edit]
[-] jstorage.min.js
[edit]
[-] jquery.spin.min.js
[edit]
[+]
select2
[-] jquery.sparkline.min.js
[edit]
[-] jquery.fitvids.js
[edit]
[+]
pnotify
[-] jquery.jeditable.min.js
[edit]
[+]
gantt
[-] jquery.tagcloud.js
[edit]
[+]
chosen
[+]
pivot
[+]
Viewer.js
[+]
handsontable
[-] jquery.min.js
[edit]
[+]
video-js
[+]
jquery.datepick.package-4.1.0
[-] jquery.cycle.min.js
[edit]