Solved

Launch Link From Free TextBox Control

Posted on 2011-03-24
8
796 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
Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

 

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

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

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

Suggested Solutions

"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

756 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