Click here to Skip to main content
16,016,962 members

Bugs and Suggestions

   

General discussions, site bug reports and suggestions about the site.

For general questions check out the CodeProject FAQs. To report spam and abuse Head to the Spam and abuse watch. If you wish to report a bug privately, especially those related to security, please email webmaster@codeproject.com

 
GeneralHey Chris Pin
Nick Parker3-May-02 1:29
protectorNick Parker3-May-02 1:29 
GeneralRe: Hey Chris Pin
Chris Maunder6-May-02 18:35
cofounderChris Maunder6-May-02 18:35 
GeneralPreview with Email Author needed Pin
Tom Archer2-May-02 4:51
Tom Archer2-May-02 4:51 
GeneralRe: Preview with Email Author needed Pin
Nish Nishant2-May-02 14:14
sitebuilderNish Nishant2-May-02 14:14 
GeneralSponsors page Pin
Michael A. Barnhart2-May-02 1:17
Michael A. Barnhart2-May-02 1:17 
GeneralRe: Sponsors page Pin
James T. Johnson2-May-02 2:02
James T. Johnson2-May-02 2:02 
GeneralRe: Sponsors page Pin
Michael A. Barnhart2-May-02 11:51
Michael A. Barnhart2-May-02 11:51 
Generallink inserting widget Pin
Jason Jystad30-Apr-02 13:21
Jason Jystad30-Apr-02 13:21 
I banged out a JavaScript function that will take the text in a field and wrap it in link tags and then append it to the message area. Similar to the "Quote Selected Text" button you have now.

I figured you could put another button next to the "Quote" button and a small text field next to that. Then users could paste a URL into the field in whatever form and click the button and it would process it into the message. This saves users the typing of the tags, and makes sure that the damn target is set!!! Wink | ;)

This function also adds the "http://" if the user doesn't include it and if someone just clicks the button it will append a blank link tag that they can fill in themselves.

I have included the function within pre tags below. Just call it from a button's onclick and make sure the text field name matches, it should be ready to go otherwise. I tried to match your existing form and field names as best I could to make it as easy to drop in as possible.

Just doing my best to help out as things occur to me. Smile | :)
<script language="JavaScript" type="text/javascript">
<!--
  function InLinkErAtor(){
    var objContentText = document.MessageForm.ContentText;
    var strLinkText = document.MessageForm.LinkText.value;
    var strContentText = objContentText.value;
    var strOutputLink = "<a href=\"";
    if (strLinkText.indexOf("http://") == -1){strOutputLink += "http://"}
    strOutputLink += strLinkText + "\" target=\"_blank\">" + strLinkText + "</a>";
    strContentText += strOutputLink;
    objContentText.value = strContentText;
    objContentText.focus();
  }
//-->
</script>

BTW, if anyone is curious the function name, "InLinkErAtor", is a reference to a brand of garbage disposal here in the states named "InSinkErAtor". I was having garbage disposal problems shortly before writing this. Smile | :)

Jason Jystad
Cito Technologies
Sonork ID: Ogami(100.9918)

There ain't nothin' in this world that's worth being a snot over.
--Larry Wall

GeneralRe: link inserting widget Pin
Nish Nishant30-Apr-02 14:49
sitebuilderNish Nishant30-Apr-02 14:49 
GeneralRe: link inserting widget Pin
Jason Jystad30-Apr-02 15:00
Jason Jystad30-Apr-02 15:00 
GeneralVisual C++ Section Overbloated Pin
Swinefeaster30-Apr-02 0:44
Swinefeaster30-Apr-02 0:44 
GeneralRe: Visual C++ Section Overbloated Pin
Ravi Bhavnani30-Apr-02 11:24
professionalRavi Bhavnani30-Apr-02 11:24 
GeneralRe: Visual C++ Section Overbloated Pin
Chris Maunder30-Apr-02 14:20
cofounderChris Maunder30-Apr-02 14:20 
GeneralRe: Visual C++ Section Overbloated Pin
Nish Nishant30-Apr-02 14:50
sitebuilderNish Nishant30-Apr-02 14:50 
GeneralRe: Visual C++ Section Overbloated Pin
Ravi Bhavnani1-May-02 3:56
professionalRavi Bhavnani1-May-02 3:56 
GeneralRe: Visual C++ Section Overbloated Pin
Tom Archer30-Apr-02 22:49
Tom Archer30-Apr-02 22:49 
GeneralRe: Visual C++ Section Overbloated Pin
Michael P Butler30-Apr-02 12:01
Michael P Butler30-Apr-02 12:01 
GeneralRe: Visual C++ Section Overbloated Pin
Nish Nishant30-Apr-02 14:48
sitebuilderNish Nishant30-Apr-02 14:48 
GeneralRe: Visual C++ Section Overbloated Pin
Tom Archer30-Apr-02 22:51
Tom Archer30-Apr-02 22:51 
Generalthe lounge Pin
Bernhard30-Apr-02 0:13
Bernhard30-Apr-02 0:13 
GeneralLatest Popular Articles Pin
30-Apr-02 0:01
suss30-Apr-02 0:01 
GeneralRe: Latest Popular Articles Pin
30-Apr-02 0:11
suss30-Apr-02 0:11 
GeneralRe: Latest Popular Articles Pin
Mark A30-Apr-02 11:10
Mark A30-Apr-02 11:10 
GeneralRe: Latest Popular Articles Pin
Ravi Bhavnani30-Apr-02 11:22
professionalRavi Bhavnani30-Apr-02 11:22 
GeneralNewsletter Pin
-Dy29-Apr-02 1:41
-Dy29-Apr-02 1:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.