Skip to main content
Topic: Copy Url suggestion (Read 10608 times) previous topic - next topic

Copy Url suggestion

On most NWC's pages outside this forum, there is an option to Copy Url.
If, for example, I click on Copy Url for <this page>, it places this in my clipboard:
Code: [Select · Download]
Commands
http://ntworthy.com/nwc2/help/HELP_ONCOMMANDS.htm

It would more useful to me if this were placed in my Clipboard instead:
Code: [Select · Download]
[url=http://ntworthy.com/nwc2/help/HELP_ONCOMMANDS.htm]Commands[/url]
Registered user since 1996

Re: Copy Url suggestion

Reply #1
We will consider options for its usage.

Technical note: The feature being described here is only available for browsers that support the window.clipboardData object. You probably don't see it if you are using a browser other than Internet Explorer (such as Firefox).

Re: Copy Url suggestion

Reply #2
Thanks.
Technical note: The feature being described here is only available for browsers that support the window.clipboardData object.
And depending on security settings, some of them will complain. IE should at least allow text of < 64KBytes to be copied without warning. If it has a 'buffer overrun' on that, it is hopelessly brain damaged.
Registered user since 1996

Re: Copy Url suggestion

Reply #3
A cross browser, multiple format URL copy feature is now available. Currently, it is accessed from the copy icon next to the date on the top right of our primary web pages. This is only available when Javascript is enabled in your browser.

Re: Copy Url suggestion

Reply #4
Thanks, again.
A bit awkward in IE6.
  • 3 clicks, Ctrl+C, click.
  • Causes a horizontal scrollbar where it formerly did not appear.
  • Hide is "hidden" unless I click on the scrollbar.

I'll add to this when I've tested in Google Chrome and IE8.

Edit: removed attachment.
Registered user since 1996

Re: Copy Url suggestion

Reply #5
Uploading the fix now...

Re: Copy Url suggestion

Reply #6
Better. However, I still get a horizontal scrollbar when I navagate to Noteworthy pages outside the forum. Strangely, when I click on the "copy icon", the scrollbar goes away.

When I test on my IE3 browser that is not Java enabled (see attachment), I don't get the horizontal scrollbar unless I make the window insanely narrow. IE6 is not nearly as friendly.
Registered user since 1996

Re: Copy Url suggestion

Reply #7
Thanks. A fix for the unnecessarily scroll bar is up now.

Re: Copy Url suggestion

Reply #8
Works fine. The "Copy" button is not really needed.

A simple:
  • click on <Image Link>
  • click on BBCode or HTML
  • click in the textarea
  • right click->Select All
  • right click->Copy
  • click on Hide
does the trick.

If a click on BBCode or HTML moved the focus to the textarea, and did a Select All... nah, I'm being picky :)
Registered user since 1996

Re: Copy Url suggestion

Reply #9
More changes:

  • Selecting the format moves the focus to the text area, and selects all of the text
  • Added a Copy link for those using IE (browser support for window.clipboardData)
  • Removed the Select all button, as it is no longer needed
  • Changed the Hide link to Close


Re: Copy Url suggestion

Reply #10
Works great in IE6. Sometimes, I guess it pays to be picky...
Registered user since 1996

Re: Copy Url suggestion

Reply #11
Thanks. This mechanism has saved me some time.
Registered user since 1996

 

Re: Copy Url suggestion

Reply #12
Technical note: The feature being described here is only available for browsers that support the window.clipboardData object. You probably don't see it if you are using a browser other than Internet Explorer
The feature currently works for IE8 and Chrome
Registered user since 1996