?
Solved

Launch Link From Free TextBox Control

Posted on 2011-03-24
8
Medium Priority
?
810 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
8 Comments
 
LVL 31

Expert Comment

by:MlandaT
ID: 35238618
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
ID: 35240498
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 31

Expert Comment

by:MlandaT
ID: 35240857
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
Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

 

Author Comment

by:ablesa
ID: 35241802
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 31

Accepted Solution

by:
MlandaT earned 2000 total points
ID: 35242267
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
ID: 35242347
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

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses

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