https://cmlenz.github.io/jquery-iframe-transport/
http://terminalapp.net/submitting-a-form-with-target-set-to-a-script-generated-iframe-on-ie/
$
("
iframe.form_container")
.submit
(function
() {
$
.ajax(this
.action, {
data: $
("
:text", this)
.serializeArray(),
files: $
("
:file", this),
iframe: true,
processData: false
}).complete(function(data) {
console.log
(data);
});
});
$
("
iframe.submit")
.click
(function
() {
console.log
('
cancancan enter');
alert();
});
$
('input
:submit
[class=submit]')
.click
(function
() {
var name = $
('
iframe')
.contents
()
.find('
.input_name')
.val();
console.log
(name);
});
function explode(){
//$val = document
.getElementById('
iframe')
.contentWindow.document
.body
.innerHTML
$val = $
('
iframe')
.contents
()
.find
('
.logged_in_name')
.html
();
$vall = $
('
iframe')
.contents
()
.find('
.logged_in_email')
.html
();
$
( "
.section-footer"
).append
( $val
);
}
setTimeout(explode, 5000);
No comments:
Post a Comment