Hi, basically I create a png image on the fly and that all works fine but when I go to save the image it's taking the name of the .php script used to create it as its default name.
e.g. I visit qrcode.php?id=1 00092 which creates a qrcode png image for "100092" which works fine. I then want to save this png image so I right click and pick "Save Picture As..." which displays a dialog that already has "File name:"...
User Profile
Collapse
-
gd library - Content-type: image/png - set name of image
-
Is there no way of capturing, say for example, a hyperlinks onmousedrag event in the same way you can capture its onmouseover event? That way I could just use onmousedrag i.e. mouse button held down and mouse then moved to fire a function? Your script is perfect if I didnt already have existing JS doing other things but I do. I'm open to suggestions but every other mouse event, I think, already does something -> onclick, ondblclick, onmousedown... -
The problem with having an opaque copy of the link following the mouse whilst I also have a JS tooltip which follows the mouse whenever you are onmouseover of a hyperlink is they are interfering with each other. The JS tooltip isn't disabled till onmouseout and as this hasn't occured when onmousedown occurs there is already a <div></div> present (the JS tooltip) thus the opaque copy is miles up the page - I think that's the problem anyway!...Leave a comment:
-
Amazing thanks alot! Ive put it into my own page which has numerous other bits of JS so Ive noticed a few bugs. For some reason when I hold my mouse down and begin dragging a link instead of the opaque link that follows the mouse being just besides the mouse cursor it's miles up the page (this changes so sometimes its close enough to allow me to drop it in the textarea) but then if I do manage that it doesn't paste it again til I move my mouse over...Leave a comment:
-
A lot of code even for a simple thing like copying and pasting the text of a hyperlink once dragged over a textarea? The link to the example given seems a lot more complicated than I wish to do. I guess I'm on a bit of a downwards slope? Thank-you for your reply.Leave a comment:
-
drag and paste hyperlink to textarea without highlighting in IE using JS
hi, i just wondered if there was a way (like there is in firefox) using javascript to allow a user using IE to drag a hyperlink (without highlighting it) and if dragged over a textarea that the text of the hyperlink (or text of your choosing) is pasted into the textarea at the very beginning? ive seen many examples that allow you to drag and move images around a page but nothing that allows text to be effectively copied and pasted into a textarea...
No activity results to display
Show More
Leave a comment: