Solved

Launch Link From Free TextBox Control

Posted on 2011-03-24
8
785 Views
Last Modified: 2012-05-11
I use the Free Textbox control on an asp.net form.  I can use the "Create LInk" button to create a link in the textbox, however, I don't see a way to actually launch the link in another tab or window when the user clicks it.
Is there a way to do that?  I assume if you can create a link, there would be a way to launch it.

Thanks!
0
Comment
Question by:ablesa
  • 3
  • 3
8 Comments
 
LVL 30

Expert Comment

by:MlandaT
Comment Utility
When you are in DESIGN mode, you can Ctrl+Click a link in order to open it. This is done so that you can be able to easily edit the link, should you need to make changes to it.

If you change to HTML you will see how the HTML is actaully constructed. The idea with the Free Textbox, is really to offer an EDIT mode, to allow your users to edit HTML, then have a VIEW mode (in your application) where you just display the HTML that would have been previously generated with the Free Textbox. This explains it's popularity with CMS designers and so on.
0
 

Author Comment

by:ablesa
Comment Utility
Thanks for your response.  When I Ctrl-Click a link in design mode, nothing happens.  It does highlight the link, but that's all...  Do I have some sort of browser setting (IE) that might be causing the link not to launch?  I provided a screenshot of what my control looks like...
FreeTextBox-Screenshot.doc
0
 
LVL 30

Expert Comment

by:MlandaT
Comment Utility
I don't think there is anything special that  you need to do. I previously tried in FireFox but not IE. These are my results from tests in 3 browsers:

FireFox:
- Ctrl+Click works to navigate the link and open the page specified in the Url
- Right clicking the link allows to open in new tab or window etc

IE:
- Ctrl+Click selects the entire link, but does not navigate to it
- Right click just brings up copy + paste and other standard options for working with text

Google Chrome:
- Ctrl+click does not work
- Right clicking the link allows to open in new tab or window etc

I have attached the HTML code which I am testing with on http://www.freetextbox.com/demos/

I suppose it's a browser thing. Not sure if there is anything you can do to change that, apart from just switching browser to FireFox if that functionality is really important to you.
<p>Try some <b>bold</b> text, and then apply other styles.</p><p><a target="_blank" title="http://www.google.com/" href="http://www.google.com/">this takes me to google</a><br></p>

Open in new window

0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:ablesa
Comment Utility
Thanks for doing the tests.  Your results for IE are the same as mine.  And we are strictly a Microsoft shop, so changing browsers is not an option.  I'm wondering if I could put a button beside the text box itself and when the user clicks it, I could possibly extract the link from the HTML of the text box or perhaps have the user select the link before they click the button (Is there a method on the free textbox where I could determine what text the user has selected?).  Do you think either is a viable option or is there some other way to do this that I'm not aware of?

Thanks again for your help.
0
 
LVL 30

Accepted Solution

by:
MlandaT earned 500 total points
Comment Utility
I'm afraid I have no "tricks in the bag" for working around this behaviour.

However, conceptually speaking, the intention of the Free Textbox is for page on which you have the control offer two modes: readonly mode, and edit mode... wiki style. When you display the HTML contents of the Free Textbox in readonly mode (perhaps in a Label), the links will work fine, however, when your user opts to edit the page, you display the Free Textbox, allowing the user to edit the page content, in which case then the hyperlink functionality will be "broken" a bit - temporarily in a sense.

I would aso suggest that you perhaps also check out the Free Textbox community forums on this.
0
 

Author Comment

by:ablesa
Comment Utility
Well, unfortunately, I cannot get into their forum.  When I go to register, I see no "agree" button on the "Forum Rules and Policies" page and therefore, it won't let me register...  So, I can't see anything there...  I've sent email and will see if I get help there.

Thanks for your help.  You have given me some insight into how the control handles the links and things to think about...
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now