how to acquire the text inputted by a user in a text field in web programming?
832090
Manipulate the inputs using vbscript.\n\nLinked page...\nLog_Type\n=Trim(Request.Form("Log_Type")) \nor\n=Trim(Request.QueryString("Log_Type"))\n\nMain page...\n<form>\n<input type=text name="Log_Type " value=" "> <=%Log_Type%>\n</form>
635745
How's this? \n\nfunction addText(text) {\n  t = document.forms[0].mytextarea;\n  t.value = text + t.value;\n}\n\nFor the highlighting stuff, have a look at the documentation for things like createTextRange .
392646
You usually do this by using a programming language and comparing the input to a regular expression.\n\nLook up "regular expression tutorial" in Yahoo search and you'll find more information that you probably want  :)
978490
u should learn "Microsoft.XMLHTTP" object \nsimple sample\n\n SET  objXMLHTTP = Server.CreateObject("Microsoft.XMLHTTP")  \n        With  objXMLHTTP\n            .Open "GET", "http://www.isohunt.com",  False\n            .Send\n            StrPage = .ResponseBody\n        End  With\n           SET  objXMLHTTP =  Nothing  \n response.write StrPage\n\nand u can rip results with "replace, mid, etc "
376825
yes... this is a server side technology, so you will need to use javascript.  \n\ntake a look at the code of a site you like that has it to see how it is coded.\n\nGood luck!
638752
Put this in an asp page and try it.I jus did it and it worked. \n\n<%@ Language=VBScript %>\n<HTML>\n<HEAD>\n<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">\n</HEAD>\n<BODY>\n<form name="frmTest" method="post">\n<img src="Bluebar.gif" ></img>\n<br>\n<LABEL id="lblclick" onclick="ShowList()">Click on this</LABEL>\n<P> </P>\n<br>\n<LABEL id="lblShow" ></LABEL>\n</form>\n</BODY>\n</HTML>\n<script language="javascript">\nfunction ShowList()\n  {\n   window.document.getElementById('lblShow').innerHTML = "Hey ! you just viewed and clicked me :)"\n  }\n</script>\n\nDude.....the window.document.getElementById will show as .... I tried all methods and yahoo still sucks...\nSo here I will explain.  getElementBytId() .In this bracket you need to give the Label which is displaying the text, its id , i.e in this case getElementBytId('lblShow'), and after the close parenthesis we give ".innerHTML" and then "=" what value we want to give.\nhave issues still then, send me a mail at nigeljd@gmail.com
183946
Manual input? Use an OCR program with a scanner, and just scan the text in. The OCR program will convert the scanned document into text that you can manipulate. You will have to go back through, though, and clean up all of the "trash" that it misreads into text.\n\nThe easiest method (for those that can type fast) is just to type it in.
743647
Dim i, total As Integer\ntotal = 0\nFor i = 0 To Integer.Parse(TextBox1.Text) Step 2\n     total += i\nNext\nMsgBox(total.ToString())
986896
You can either just open the web page as a file and search for text. (Risky)\n\nOr, you can use an HTML parser.  See link for an example.  You may want to search for others yourself.
99731
Reading a barcode value always needs a textbox. What is the use of Keypress event... No use.\n\nNormally if you created a textbox and set the focus to it before firing the barcode scanner you'll get the return data in your textbox instantly.
253441
try - \ndocument.getElementsByTagName("tag") :Returns a collection of objects with the specified TAGNAME\n\ntag = input.\nThen do a foreach loop on the returned object. if the name of the control matches your text box naming pattern use it.\n\njainnys\nMind Experts Inc\nhttp://www.mindexp.com
357526
This question is pretty vague. If you're serious about getting a good answer you have to make it more specific. VB6 or VB.Net? Web Forms or Win Forms?\n\nIf it's VB6 then you simply write the code to do what you need it to do. You want to validate user input immediately after the form has been submitted for processing. \n\nIf it's VB.Net then you can use the Validator controls. The method is different based on whether it's a web from or a windows form. \n\nHere are some .Net tutorials:\n\nhttp://samples.gotdotnet.com/quickstart/aspplus/doc/webvalidation.aspx\n\nhttp://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbconValidationOfControlDataOnWindowsForms.asp\n\n\n\ngood luck
87907
The previous answer is correct.  The Javascript prompt just gets the value into the CLIENT side - it does not invoke the SERVER side, where the aspx runs.  Somehow, after you do this, you have to send the request to the server.\n\nLogically, in you application, is there a form the user is filling in?  If so, pass the value in the form as a hidden field or on the query string.\n\nOr, are you wanting to end the current page right after the prompt, and go directly to the page the aspx builds?  If so, immediately after your prompt, do a\nlocation.replace="http://...nameofpage?valueInAspx="+variablevalue\nand pick in up in the request collection.
255272
it depends what you are trying to do exactly\nif you have data from a DB that you are displaying you can write VB script into the page, to direct the information to the where ever you need it to go.\n\nbut if you have a website that you are visiting, and you want to basically take information from them because thay are a newsite, or they have information that changes periodically, it would be best if you learned a different language. such as PERL, and then you can GREP the information from that site. but this can lead to errors. if you are more specific with what you are trying to do in your question then the answer can be easier to find. always have some type of example.
430486
You can try emulating a keypress event. \nThe way to do that will depend on which browser(s) you want to support.\n\nThe DOM/Mozilla way: http://developer.mozilla.org/en/docs/DOM:document.createEvent\n\nNote that this part of the DOM interfaces are not very well documented. You'll want to create an event of type "KeyEvents" (I guess) and then populate its properties to match a Ctrl-Z keypress.\nThis discussion might be of some help: http://tinyurl.com/lbfvk\n\nGood luck!
353874
First you have to have a variable assigned to the edit box, one called, say, m_String. Then in your code you write:\n\nUpdateData(TRUE);\n\nNow m_String has the contents of the edit box.
396385
If you have PHP enabled, you could add a hidden field:\n\n<?\n$url = $_ SERVER[SCRIPT_NAME]."?".\n$_ SERVER[QUERY_STRING];\n?>\n\n<input type="hidden" name="url" id="url" value="<? echo $url; ?>" />\n\nYou'll need to remove the spaces between the underscores and SERVER in the example above.