faqts : Computers : Programming : Languages : JavaScript

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

70 of 135 people (52%) answered Yes
Recently 4 of 10 people (40%) answered Yes

Entry

When i use document.execCommand('SaveAs') it doesn't save the images. How to I save the images?

Apr 6th, 2008 19:55
ha mo, Moisés Moreno, will beh,


A possible solution is:
function SaveImage()
{
  document.MYFRAME.location.href = MYIMAGEURL;
  window.setTimeout( 'document.MYFRAME.document.execCommand( "SaveAs"
)', 1000 );
}
But it's better do it using the "onload" in the IFRAME.
http://www.businessian.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com
http://www.healthinhealth.com