I have an AIR app that uses HTMLLoader to display a webpage. This webpage has a form that I want to automatically populate. That's all fine except one of the form elements is an <input type=file/>. Now I know that for security reasons browsers cannot populate the value of a file type input.
var $mb = jQuery.noConflict();
var imgFrame = $mb("iframe[name='UIAdCreativeImage_Frame']", window.content.document).contentDocument; var fileBox = $mb(".UIAdCreativeImage_FileUpload", imgFrame); fileBox.value = image_path; imgFrame.forms.submit();
So if a browser extension can do it, is there no way for an AIR app to do it?