by magosk » 11 Oct 2016 09:52
Hi Alexander and thank you very much for the new version and the demo! After testing, I have two important questions though:
1. The demo was for jQuery UI. Can the same JS code be used in jQuery Mobile (which is my target) without any problems?
2. The most difficult part for inexperienced mobile users is the text selection, and the current version of the demo does not help them with that. Maybe I was a bit unclear in my posts earlier, but I want the functionality of the button to be "copy the entire content of the edit into the clipboard" (so that the user does not have to bother with text selection at all). If the solution to this is "first (automatically) select all text in the edit, then copy the selection", that is fully acceptable (although you you would prefer if the mobile browsers built-in "copy popup" did not appear, as you have already copied the content). Is it easy to extend the JS code in JQButtonOptions.OnClick.Script to do this before calling CGCopyToClipBoard? Or would you have to modify your CGCopyToClipBoard function (e.g. with an optional "CopyAllText" bool parameter)?
Again, I'm sorry if these are obvious questions for most people, but I have not enough experience in HTML/JS frontend coding.
Best regards
Magnus Oskarsson