PDA

View Full Version : Resolved CopytoClipboard...Help Plz



zai
04-07-2009, 08:29 PM
hello all

i want to copy the value of a field in to clipboard .....

where as in the following path

http://media.photobucket.com/image/funny%20animals/findstuff22/Best%20Images/Funny/FUNNY-THUMB.jpg?o=1

(check share this image)

Thanks for Reading.....plz help me...ASAP :D


Zai

Nile
04-08-2009, 04:03 AM
It seems to copy when I click on it... problem solved?

zai
04-08-2009, 05:59 PM
hi nile....

if we click on a field ...i want to copy field value to clipboard automatically...

i want the functionality similar to "share this image" option in the following link...

http://media.photobucket.com/image/funny%20animals/findstuff22/Best%20Images/Funny/FUNNY-THUMB.jpg?o=1


i tried some codes which works on...IE ...
but Not in Mozilla :confused:

and finally i approached (My favourite DynamicDrive ;)) here for Answer

Plz...any solution ...:)

Thanks

zai
04-09-2009, 12:52 AM
is it possible through any other medium :confused:

zai
04-09-2009, 01:58 AM
hi guys,

finally i Got it....:cool:

with the help of some AS code..

It is working in FF and IE....

Hope this code is very usefull to novoice persons....:)

njoy the link

http://www.freewebs.com/czaisankar/ctcb/new.html


Zai

zai
04-09-2009, 02:06 AM
http://www.freewebs.com/czaisankar/ctcb/copyButton.swf

download that swf Button!

and create one html page with the following code...:p



<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>copytoclipboard problem --zai</title><script type="text/javascript">
<!--
function alertUser(){
alert('Copied to Clipboard');
}
-->
</script>
</head>
<body>
<p>&nbsp;</p>
<table width="218" height="78" border="0" align="center" cellpadding="2" cellspacing="0" bgcolor="#669900">
<tr>
<td width="63" height="23"><div style="border:solid 1px black; width:60px; height:20px;">
<div align="center">
<object width="60" height="20">
<param name="FlashVars" VALUE="txtToCopy=cfRuss.blogspot.com&js=alertUser()" />
<param name="movie" value="copyButton.swf" />
<embed src="copyButton.swf" flashvars="txtToCopy=Zai got it !&js=alertUser()" width="60" height="20"> </embed>
</object>
</div>
</div></td>
<td width="152"><input type="text" name="textfield" id="textfield" value="Zai got it !" /></td>
</tr>
<tr>
<td><div style="border:solid 1px black; width:60px; height:20px;">
<div align="center">
<object width="60" height="20">
<param name="FlashVars" VALUE="txtToCopy=cfRuss.blogspot.com&js=alertUser()" />
<param name="movie" value="copyButton.swf" />
<embed src="copyButton.swf" flashvars="txtToCopy=I love Dynamic drive&js=alertUser()" width="60" height="20"> </embed>
</object>
</div>
</div></td>
<td><input name="textfield2" type="text" id="textfield2" value="I love Dynamic drive" /></td>
</tr>
<tr>
<td height="26"><div style="border:solid 1px black; width:60px; height:20px;">
<div align="center">
<object width="60" height="20">
<param name="FlashVars" VALUE="txtToCopy=cfRuss.blogspot.com&js=alertUser()" />
<param name="movie" value="copyButton.swf" />
<embed src="copyButton.swf" flashvars="txtToCopy=Have a break&js=alertUser()" width="60" height="20"> </embed>
</object>
</div>
</div></td>
<td><input name="textfield3" type="text" id="textfield3" value="Have a break" /></td>
</tr>
</table>
</body>
</html>



and final outout will be....

http://www.freewebs.com/czaisankar/ctcb/new.html


ok guys...have a nice day..
Zai:)