Solved

Launch Link From Free TextBox Control

Posted on 2011-03-24
8
792 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
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 30

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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 

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 30

Accepted Solution

by:
MlandaT earned 500 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
This video teaches users how to migrate an existing Wordpress website to a new domain.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

773 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