I've got an HTML question for you guys. I was just wondering if it is possible to create a textbox with urls in them and can excute by pressing submit or something. Is there a code like this? This would benefit me what i'm doing cause I want be able to copy and paste urls into the textbox and excute immediately instead of opening a new window and pasting that way. Thanks!
How to make text in textbox a clickable link?
Collapse
X
-
Say what?? I've read this a couple times now and am still not sure what you're asking for.
Clicking on a submit button would invoke the script that's been defined for the form and the script would take the input from the textarea and proces it. That's just standard CGI stuff. -
Ok sorry, let me try that again. Say you have a textbox or textarea field and since you are able to write in the fields (just as you would filling out a form) I was thinking if it is was possible to write a url in the field, like gfyboard.com and then be able to make it open in a new window by pressing submit or something. The reason I want it like this instead of just hyperlinking is because I only want to replace a piece of the url and test to see if i wrote it properly. Basically this will help in tgp submitting faster.
or
is it possible to do a mouseover over text or a url and it would appear in a textbox field for example.
hopefully you understand what I am trying to say.
if not just forget it, i'll figure it out, lol
Comment
-
You'd have to write that in java script. You'd have a button (not a submit button) and use an onClick event to invoke your script. The script would grab all the text from the textarea, parse it and then start opening windows for any valid domain names.
As for the mouseover, I doubt it unless the urls you're mousing over are on your own page so you can write java script for it.Comment
-
Ok thanks, but do you have the code for thisOriginally posted by Tempest
You'd have to write that in java script. You'd have a button (not a submit button) and use an onClick event to invoke your script. The script would grab all the text from the textarea, parse it and then start opening windows for any valid domain names.
As for the mouseover, I doubt it unless the urls you're mousing over are on your own page so you can write java script for it.
Comment
-
LOL... No. You can try looking on some script sites for something but the reality is that what you want is fairly specific. So you'll have to write it or have someone write it for you.
If you're going to be a WM then you'd better get yourself some html, java script, perl/cgi and php books. Or hire some people to do that sort of stuff for you.Comment

Comment