Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 825
  • Last Modified:

Launch Link From Free TextBox Control

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
ablesa
Asked:
ablesa
  • 3
  • 3
1 Solution
 
MlandaTCommented:
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
 
ablesaAuthor Commented:
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
 
MlandaTCommented:
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
Get 10% Off Your First Squarespace Website

Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to Squarespace.com and use offer code ‘EXPERTS’ to get 10% off your first purchase.

 
ablesaAuthor Commented:
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
 
MlandaTCommented:
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
 
ablesaAuthor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now