I want the client to be able to save the svg doc he/she modified on my web app but I don't know how to write javascript that provide that functionality. I have found several example on saving format such as txt and html. But could not find one for svg. I want it to be saved as .svg because the client can see it as picture still unlike saving as txt.
Yeast27
Posts
-
Saving svg or xml to client side -
How to change cursor in SVG document?I wanted to change to cursor when it goes over an element in SVG document, I tried to set cursor="wait" attribute within that element, but it didn't work. How could I do so then .. I wanted to change the cursor when I am dragging the svg element too.. any suggestion ? And I am using IE as the browser to display the SVG.
-
learn AJAX -
SVG drag-dropI plan to use SVG for my web application, and I need to make them dragable. First I tried to use the following javascript http://www.walterzorn.com/dragdrop/dragdrop_e.htm which works for image but not for SVG. So how should I make use of these script with SVG. I tried to move using
document.getElementById('myimage').style.top = '250px';
, this code works for image but not SVG that I uses tag instead of . -- modified at 5:52 Monday 3rd April, 2006 -
Configuring AJAX problemI found what I have been missing all these while..These should be cover the scipt
-
Configuring AJAX problem -
Configuring AJAX problemI have problem in configuring AJAX, one of the steps told me to add some code in web.config file, inside the . I tried to create a web.config file in various places (project folder, c:/, Framework config) and put some codes in but the AJAX still does not work. What should I do?
-
IfModifiedSince and my FavoritesI want to find the time when a given URI is last modified, I used HttpWebRequest.IfModifiedSince but the result return is the current dateTime. I want to compare the IfModifiedSince with the time last visit so that I would know whether the page has been changed since I last visit. And did anyone know how to export my favorites using coding?
-
How to get browser bookmark or my favorite ?For IE in order to get the html file I need to manually export the file, do you know how to export it using c# coding?
-
How to get browser bookmark or my favorite ?Got it thanks, another query to add ... Instead of finding the XML file, I got the HTML file that has these information instead. It include the HREF as well as LAST_VISIT, one of which is LAST_VISIT="1136827040", what did the number stand for anyway? Is it date? I last open it on January 19, 2006 though.
-
How to get browser bookmark or my favorite ?I wish to retrive that URL from my bookmark of either IE or Mozilla Firefox, how is it possible? And can I get the date/time that I last visit those sites?
-
Get webpage source?It works, thanks you very much For anyone who is interested http://www.c-sharpcorner.com/Internet/WebRequestNResponseMDB.asp is a good tutorial of how to use webRequest.
-
Get webpage source?How could I retrive page source from a given website/url ?? Do I need to write HTTPrequest in order to do this or is there any other ways?? I need the page source in order to find out what is the likely content of that page and then uses this information to make an application to seach for website of similar content of in a different languages.
-
Transferring image from webservice to PPCpublic Image getObjectPicture(string objectID) { OdbcConnection connection= new OdbcConnection(@"Driver={MySQL ODBC 3.51 Driver};SERVER=localhost;DATABASE=ic;UID=;PASSWORD=;"); OdbcCommand cmm = new OdbcCommand("SELECT Picture FROM Object WHERE ObjectID='"+objectID+"'", connection); connection.Open(); OdbcDataReader reader = cmm.ExecuteReader(); string filename= @"c:\default.bmp"; //default pic while(reader.Read()) { filename = reader[0].ToString(); } Bitmap bitmap = new Bitmap(filename); MemoryStream stream1 = new System.IO.MemoryStream(); bitmap.Save( stream1, System.Drawing.Imaging.ImageFormat.Bmp ); stream1.Position = 0L; BinaryReader br = new BinaryReader(stream1); byte[] bytes = br.ReadBytes( (int)stream1.Length ); stream1.Close(); MemoryStream stream2 = new MemoryStream(bytes); Image image = Image.FromStream( stream2 ); return image; } I combined the given code and did this, and I got this error message "System.Drawing.Imaging.ImageFormat cannot be serialized because it does not have a default public constructor.", I put this coding on the webservice though.. that exactly should I do, I am rather confuse now
-
Transferring image from webservice to PPCI am trying to make a webservice that return a image to ppc. I have tried to return it as a bitmap but it give this following error "System.Drawing.Bitmap cannot be serialized because it does not have a default public constructor" so I changed from bitmap to base64 string, this works, however when I tried to convert base64 string back to bitmap(on ppc) I got the same error again.. Do anyone know exactly what I should do?
-
Database WebServiceI am implementing a webservice that link to a database on the server machine, The operation on SELECT function work alright. However, operation such as INSERT, DELETE doesn't work at all. Could any one suggest why? I have tried various ways of INSERTing, I have tried using OleDbCommand as well as OleDbDataAdapter... but none of it works. The database I am using in MS Access though. Thank you in advance
-
Sending Xml file using TcpClientWell... after looking through the resulting xml file, I discovered that it didn't really get mess up but instead one of the line get copied twice and somehow the second copy appeared at the end of the file... the same thing happened to the code you given though
-
Sending Xml file using TcpClientCan this method handle multiple client? I mean like if the client are sending at the same time.. will the data get mixed up ? Well, I am making a service to inpect client hardware specf and then display it back on the website. It is for my internship project though. Thanks a lot, will try it out tomorrow ..
-
Sending Xml file using TcpClientI don't really get it, do you mind showing me how to do it in coding? Well I didn't think about encoding though, I just thought that when transfering through socket, infomation needed to be converted to byte form... isn't it so? Thank you,
-
Sending Xml file using TcpClientbuffer = new byte[1024] ; while(ns.DataAvailable) { ns.Read ( buffer, 0, buffer.Length ) ; str += Encoding.ASCII.GetString ( buffer ) ; } sw.WriteLine(str); sw.Close(); }