Realmac Software

Welcome to the RapidWeaver Community Forums, where you can chat with RapidWeaver users from around the world!

External link warning question

I need to add external link warnings to several links on a site. I've seen and tried RapidlyWoven's External Link Warning Stack:

http://forums.realmacsoftware.com/discussion/33094

And, while it's great for some instances, the links I need to put the warning on are in body copy of a text stack.

So, I'm trying to figure out if there is anyway to include code in RapidWeaver's 'add a link' dialog box (attached image shows where I mean) that will accomplish that?

I've started with this javascript:

<a href="http://www.example.com" onclick="return confirm('You are now being taken to an external site');">External Site Link</a>

But, I can't get it to work in this scenario. Am I missing something? Is there any way to do this?

Thanks in advance!
link-window.jpg
597 x 457 - 37K

Comments

  • ColorwaveColorwave A rock in the middle of the Pacific OceanPosts: 1,174Members
    Why not just type the warning into the title of the external link in the inspector, so that it will appear in the tooltip when the visitor hovers over the link. If you use an html line break in the title message, you can get the warning on one line and the name of the site on another.
    You are now being taken to an external site.<br />THIS IS THE NAME OF THE SITE
    
  • revwirerevwire Posts: 17Members
    Thank you for the suggestion. It's an interesting alternative. Unfortunately, in this case I don't think it provides the necessary feedback.

    The site in question needs an actual pop-up window, when a user clicks, to comply with a regulatory requirement.
  • ColorwaveColorwave A rock in the middle of the Pacific OceanPosts: 1,174Members
    Um, porn or securities derivatives? :^)
  • revwirerevwire Posts: 17Members
    It's in the financial industry.

    I'm really in need of a solution. So, if anyone has any additional input, I'd be very interested in hearing it.
  • ColorwaveColorwave A rock in the middle of the Pacific OceanPosts: 1,174Members
    Sorry, if I wore out my welcome by presenting my question about what type of website would require such a warning in joke form, but here's another option. It might not be the simple javascript silver bullet you were looking for, but it would certainly work.

    How about using your on page link to trigger a lightbox. I'd probably use TopBox, from StacksForStacks, so I could style it completely, including controlling the overlay to make it an obvious one, or downplay the overlay to make the modal box the only thing you notice. From there, you could have all of your legal requirements and the true link to the external site. That would satisfy the legal requirements you have, and require the visitor to click two times: once to see the disclaimer, and once to visit the linked site. TopBox is fully customizable, and simple to implement.
  • revwirerevwire Posts: 17Members
    No worries Ron. No offense was taken. :-) And, I appreciate your creative ideas to my issue.

    The lightbox idea is also interesting. I'll test it out and see how it works.

    I'm still interested in anyone chiming in with any additional ideas that might work.

    Thanks!

Leave a Comment

bolditalicunderlinestrikecodeimageurlquotespoiler