setClipBoardContent not (yet) supported

Forum to discuss the Web client version of Servoy.

setClipBoardContent not (yet) supported

Postby pbakker » Tue Oct 04, 2005 10:29 pm

Dunno if this can be supported, but when a method is fired and in that methid the ClipBoard content is set, in the WebClient that doesn't happen.

Teh clipboard content remains as it is.

Paul
pbakker
 
Posts: 2822
Joined: Wed Oct 01, 2003 8:12 pm
Location: Amsterdam, the Netherlands

Postby ROCLASI » Wed Oct 05, 2005 12:05 am

Paul,

Keep in mind you are working in a webbrowser.
This is not a java client.
I wonder if the Javascript DOM even allow you to set the clipboard of a browser.

I guess you experianced why a rich client is such a good idea ;)
Robert Ivens
SAN Developer / Servoy Valued Professional / Servoy Certified Developer

ROCLASI Software Solutions / JBS Group, Partner
Mastodon: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5438
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Postby Westy » Wed Oct 05, 2005 12:51 am

ROCLASI wrote:I wonder if the Javascript DOM even allow you to set the clipboard of a browser.

Yes, with Internet Explorer 4.0 and above. See:

http://www.htmlgoodies.com/beyond/javascript/article.php/3458851
Westy
 
Posts: 852
Joined: Fri Feb 13, 2004 5:27 am
Location: Lynnfield, Massachusetts USA

Postby ROCLASI » Wed Oct 05, 2005 6:48 am

I did some testing and indeed it's for IE only. But then only for windows as well.
Safari (Mac), Firefox (Mac/Win), Opera (Mac/Win) all don't work with this.
IE 5.2.3 for Mac OS X (the last version of IE that MS produced for the mac) doesn't support it.
Robert Ivens
SAN Developer / Servoy Valued Professional / Servoy Certified Developer

ROCLASI Software Solutions / JBS Group, Partner
Mastodon: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5438
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Postby pbakker » Wed Oct 05, 2005 8:42 am

Keep in mind you are working in a webbrowser.
This is not a java client.
I wonder if the Javascript DOM even allow you to set the clipboard of a browser.


Hence the (yet) part in the subject header of this post :lol:

Paul
pbakker
 
Posts: 2822
Joined: Wed Oct 01, 2003 8:12 pm
Location: Amsterdam, the Netherlands

Postby Westy » Wed Oct 05, 2005 2:31 pm

ROCLASI wrote:I did some testing and indeed it's for IE only. But then only for windows as well.
Safari (Mac), Firefox (Mac/Win), Opera (Mac/Win) all don't work with this.
IE 5.2.3 for Mac OS X (the last version of IE that MS produced for the mac) doesn't support it.

Another exception might be writing files to local disk. I believe browsers were originally designed not to allow writing to disk for security reasons, however, you can write to disk with recent versions of Internet Explorer using the Windows Scripting Host (with VBScript and JScript, I am not sure about JavaScript). It will be interesting to see how the Web Client handles inconsistencies between browsers.
Westy
 
Posts: 852
Joined: Fri Feb 13, 2004 5:27 am
Location: Lynnfield, Massachusetts USA

Postby pbakker » Wed Oct 05, 2005 4:34 pm

Are you passing a string to application.setClipBoardContent(...) ?


Yes, I'm passing the content of an global variable of type = text to the clipboard.

Paul
pbakker
 
Posts: 2822
Joined: Wed Oct 01, 2003 8:12 pm
Location: Amsterdam, the Netherlands

Postby Jan Blok » Wed Oct 05, 2005 6:52 pm

clipboard cannot be supported in webclient, your client/method is running in a server environment
Jan Blok
Servoy
Jan Blok
 
Posts: 2684
Joined: Mon Jun 23, 2003 11:15 am
Location: Amsterdam

Postby pbakker » Wed Oct 05, 2005 7:00 pm

ok, clear
pbakker
 
Posts: 2822
Joined: Wed Oct 01, 2003 8:12 pm
Location: Amsterdam, the Netherlands


Return to Servoy Web Client

Who is online

Users browsing this forum: No registered users and 2 guests