PageSourceSearch

https://www.mahallfunerals.com/tools/iframepost/jquery.iframe-post-form.js

js mahallfunerals.com collected 2026-10-10 00:55:23 UTC 2,675 bytes, 102 lines download raw bytes

1var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{
2let window = _____WB$wombat$assign$function_____("window");
3let self = _____WB$wombat$assign$function_____("self");
4let document = _____WB$wombat$assign$function_____("document");
5let location = _____WB$wombat$assign$function_____("location");
6let top = _____WB$wombat$assign$function_____("top");
7let parent = _____WB$wombat$assign$function_____("parent");
8let frames = _____WB$wombat$assign$function_____("frames");
9let opens = _____WB$wombat$assign$function_____("opens");
10/**
11 * jQuery plugin for posting form including file inputs.
12 * 
13 * Copyright (c) 2010 - 2011 Ewen Elder
14 *
15 * Licensed under the MIT and GPL licenses:
16 * http://www.opensource.org/licenses/mit-license.php
17 * http://www.gnu.org/licenses/gpl.html
18 *
19 * @author: Ewen Elder <ewen at jainaewen dot com> <glomainn at yahoo dot co dot uk>
20 * @version: 1.1.1 (2011-07-29)
21**/
22(function ($)
23{
24	$.fn.iframePostForm = function (options)
25	{
26		var response,
27			returnReponse,
28			element,
29			status = true,
30			iframe;
31		
32		options = $.extend({}, $.fn.iframePostForm.defaults, options);
33		
34		
35		// Add the iframe.
36		if (!$('#' + options.iframeID).length)
37		{
38			$('body').append('<iframe id="' + options.iframeID + '" name="' + options.iframeID + '" style="display:none" />');
39		}
40		
41		
42		return $(this).each(function ()
43		{
44			element = $(this);
45			
46			
47			// Target the iframe.
48			element.attr('target', options.iframeID);
49			
50			
51			// Submit listener.
52			element.submit(function ()
53			{
54				// If status is false then abort.
55				status = options.post.apply(this);
56				
57				if (status === false)
58				{
59					return status;
60				}
61				
62				
63				iframe = $('#' + options.iframeID).load(function ()
64				{
65					response = iframe.contents().find('body');
66					
67					
68					if (options.json)
69					{
70						returnReponse = $.parseJSON(response.html());
71					}
72					
73					else
74					{
75						returnReponse = response.html();
76					}
77					
78					
79					options.complete.apply(this, [returnReponse]);
80					
81					iframe.unbind('load');
82					
83					
84					setTimeout(function ()
85					{
86						response.html('');
87					}, 1);
88				});
89			});
90		});
91	};
92	
93	
94	$.fn.iframePostForm.defaults =
95	{
96		iframeID : 'iframe-post-form',       // Iframe ID.
97		json : false,                        // Parse server response as a json object.
98		post : function () {},               // Form onsubmit.
99		complete : function (response) {}    // After response from the server has been received.
100	};
101})(jQuery);
102}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.