Lines Matching refs:iframe

953  * Class for uploading files using form and iframe
967 var id = 'qq-upload-handler-iframe' + qq.getUniqueId();
987 var iframe = document.getElementById(id);
988 if (iframe){
992 iframe.setAttribute('src', 'javascript:false;');
994 qq.remove(iframe);
1006 var iframe = this._createIframe(id);
1007 var form = this._createForm(iframe, params);
1011 this._attachLoadEvent(iframe, function(){
1012 self.log('iframe loaded');
1014 var response = self._getIframeContentJSON(iframe);
1022 qq.remove(iframe);
1031 _attachLoadEvent: function(iframe, callback){
1032 qq.attach(iframe, 'load', function(){
1033 // when we remove iframe from dom
1036 if (!iframe.parentNode){
1041 if (iframe.contentDocument &&
1042 iframe.contentDocument.body &&
1043 iframe.contentDocument.body.innerHTML == "false"){
1047 // when we upload file with iframe
1055 * Returns json object received by iframe from server.
1057 _getIframeContentJSON: function(iframe){
1058 // iframe.contentWindow.document - for IE<7
1059 var doc = iframe.contentDocument ? iframe.contentDocument: iframe.contentWindow.document,
1062 this.log("converting iframe's innerHTML to JSON");
1074 * Creates iframe with unique name
1080 // var iframe = document.createElement('iframe');
1081 // iframe.setAttribute('name', id);
1083 var iframe = qq.toElement('<iframe src="javascript:false;" name="' + id + '" />');
1086 iframe.setAttribute('id', id);
1088 iframe.style.display = 'none';
1089 document.body.appendChild(iframe);
1091 return iframe;
1094 * Creates form, that will be submitted to iframe
1096 _createForm: function(iframe, params){
1107 form.setAttribute('target', iframe.name);