0

This may be a silly question, but I am wondering if it's possible to override styles for the upload.aspx dialog to customize the look...not from the upload pages content but form the calling 'parent' page? I don't think it is since I believe that it is a iframe and I assume you can't do this with a iframe but I am not really sure. Have customized look and feel collection of pages I did with ecma/designer but I am stuck with the OOB look of the upload form itself?

To be clear I don't want to mess with the upload page itself because I have read its not a great idea, and I don't want to change functionality, just styles....

Thanks as always

  • May be, you can inject css into that dialog use 'window' object – Raymond Jul 1 '13 at 5:09
  • that's cool, now I just need to figure out how to do that. thanks – Justin Jul 1 '13 at 11:30
2

You can inject a css file into that dialog use some code like this:

var myIframe = document.getElementById('myIframeId');    
var link = document.createElement("link");
link.href = "http://example.com/mystyle.css";
link.type = "text/css";
link.rel = "stylesheet";
document.getElementsByTagName("head")[0].appendChild(link);

visit here for detail.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.