Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Community Discussions (All other subjects)
 Javascript Clipboard Functions
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

instantnet11
New Member

USA
69 Posts

Posted - 03 September 2004 :  02:07:47  Show Profile  Visit instantnet11's Homepage  Send instantnet11 an AOL message  Send instantnet11 an ICQ Message  Send instantnet11 a Yahoo! Message
hello!

I have some text that I am bringing from a database that I would like to be attached to a button "a href" and when it is clicked on copies it into the clipboard. For IE and Mozilla.

I would like another script to ask user if they want to take the contents from the clipboard (if there are any) and paste into the form.

I have seen screen for the first but the work off an ugly form. Any ideas anyone?

Thanks!

Thank you

Kieran Mullen

-------------

Free Snitz Web Site Hosting With Auto Setup

http://freeforums.instantnetworks.net/

pdrg
Support Moderator

United Kingdom
2897 Posts

Posted - 03 September 2004 :  06:16:28  Show Profile  Send pdrg a Yahoo! Message
I think you'll be on a hiding to nothing - clipboard copy/paste from script should be at worst unreliable, at best impossible due to the security abuses it would open up. I'd strongly suggest trying to find another solution, as even if you get a partial solution from one browser you can be pretty confident it won't work in another, or for mac users, or linux users or ... you get the idea. The great thing with HTML is the portability, can be viewed on any box (even text browsers and speaking browsers for the deaf), and javascript extensions will not port easily.

hth
Go to Top of Page

sy
Average Member

United Kingdom
638 Posts

Posted - 03 September 2004 :  11:48:02  Show Profile  Visit sy's Homepage  Send sy a Yahoo! Message
I came across this:

http://www.smokinggun.com/code/clippings.php a while ago.

[i]Clippings add a method of collecting links on a site for later browsing. First used at IHT.com and also in use at Three Oh (called Excerpts), they function like a shopping basket for links or other URI addressed data. Cookies are required.[i/] - smokingun.com

Not sure about browser compatibility.

The pessimist complains about the wind; the optimist expects it to change; the realist adjusts the sails

Go to Top of Page

instantnet11
New Member

USA
69 Posts

Posted - 03 September 2004 :  18:13:17  Show Profile  Visit instantnet11's Homepage  Send instantnet11 an AOL message  Send instantnet11 an ICQ Message  Send instantnet11 a Yahoo! Message
Thanks sy. It was more helpful than a post telling me what I need to do and what I dont need to do...

Most of the scripts only work in IE Which is somehting I will have to deal with I suppose.

However I wonder how I can hide a button based on the browser type?

I think the other javascripts are interfereing with it. As I have the googlead words java and a form validation java as well.

Thanks

Thank you

Kieran Mullen

-------------

Free Snitz Web Site Hosting With Auto Setup

http://freeforums.instantnetworks.net/

Go to Top of Page

sy
Average Member

United Kingdom
638 Posts

Posted - 04 September 2004 :  04:30:03  Show Profile  Visit sy's Homepage  Send sy a Yahoo! Message
There was something called 'netcloak' you might look into, this let you easily show or hide elements based on browser (and even OS I think).

http://examples.maxum.com/

The pessimist complains about the wind; the optimist expects it to change; the realist adjusts the sails

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.32 seconds. Powered By: Snitz Forums 2000 Version 3.4.07