473,386 Members | 1,908 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

save a canvas locally in IE JavaScript

Hi I want to save a canvas locally in IE with execCommand("SaveAs"). Here is my code.
Expand|Select|Wrap|Line Numbers
  1.  var img = canvas.toDataURL("image/png").replace("image/png", "image/octet-stream");     
  2.  window.win = open (img);
  3.  setTimeout('win.document.execCommand("SaveAs")', 1000);
However when new window opened the page cannot be displayed. data:image/octet-stream;base64... How can I solve this problem? Thank you very much...
Apr 11 '13 #1
1 2049
omerbutt
638 512MB
hi please provide the complete part of the code that you are working on so that the problem could be identified
regards,
Omer ASlam
Apr 25 '13 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: kieran | last post by:
Hi, I want to download an image from the web and save it locally. I have spent all day messing about with this and am still no where. We have a firewall so i use the below code. I know it...
2
by: Mrunal | last post by:
Hi, I require a file to be created and saved on the client machine bsed on values stored in the asp controls. I sthere some wauy to do this? Thanks, Mrunal
10
by: . | last post by:
Yes, now you can with LocaWapp (and async Ajax): http://daviderognoni.blogspot.com/?locawapp jsFileWrite("testJsFile.txt","This is a test."); alert(jsFileRead("testJsFile.txt"));
27
by: Chris | last post by:
Hi, I have a form for uploading documents and inserting the data into a mysql db. I would like to validate the form. I have tried a couple of Javascript form validation functions, but it...
2
by: balakrishnan.dinesh | last post by:
Hi Frnds, I want to know about, how to use color in canvas in javascript. Bcoz im using canvas in javascript for plotting line graph, I have plotted the linegraph, now i need to differentiate...
3
by: William Krick | last post by:
I know that you can use the javascript document.write() method to inject new content into a page. Is it possible to _modify_ an HTML page? For example, say I wanted to go through the current...
1
by: padmakar | last post by:
Hi everyone, I have an asp page and in that i got an iframe which displays text..Now i want to save the text to a desired location by opening a savedialog box(just like you save a file in windows)...
2
by: aaronwmail-usenet | last post by:
ANN: SkimpyGimpy PNG canvas has Javascript mouse tracking The SkimpyGimpy PNG image canvas now can generate Javascript data structures which allow HTML pages to intelligently respond to mouse...
1
by: maheshmrk22 | last post by:
Hi, I have a gridview and inside that "select" button in Template column to which i have added command and that handling it in RowCommand Event of grid.. I have added attribute to that button...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.