Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,194,774 members, 7,955,954 topics. Date: Sunday, 22 September 2024 at 07:36 PM |
Nairaland Forum / Science/Technology / Programming / Need Help With Server-side Script (1529 Views)
Best Server Side Language Your Opinion / Language Wars(server Side Tech): Asp.net Vs Php / Using AJAX For Server Side Compiling (2) (3) (4)
Need Help With Server-side Script by jt2010: 2:28pm On May 29, 2012 |
Guys, Please i have come again with my problem. I need help or direction on what to do concerning this answer. You have a server-side script that cannot handle any ampersands (& in the form data. Write a function that converts all ampersands in a form field to “ and “ when the field loses focus (onblur). This is what i have done so far. <html> <head> script type="text/javascript"> Function TextBox1_OnBlur() document.all("TextBox1".value = Replace(document.all("TextBox1".value,"&","and" End Function </script> </head> <body> <input type="Text" name="TextBox1"> </body> </html> link to test. http://jsfiddle.net/9KJC5/ |
Re: Need Help With Server-side Script by delomos(m): 3:29pm On May 30, 2012 |
So this is it, firstly, Javascript it not a server-side language: 2. I'd advice on how to use jsFiddle - there is box that says "HTML", another says "CSS" and another "Javascript. Paste the proper code in the right places. 3. It doesn't seem you have any rudimentary understanding of JavaScript, read through this tutorial: http://www.w3schools.com/js/js_intro.asp. You can't be talking of writing a function if you don't even know what a function is. Generally, I will be willing to help if you've invested some time in truly learning on your own. Those said: the syntax for writing a JavaScript function is: function functionName() { //do stuff here } In your case, it'll be: function textBox1_onBlur(){ //do stuff here } That syntax you have is for VBScript, they are two completely different language. So again, learn JavaScript fundamentals, then I can help from there. |
Re: Need Help With Server-side Script by pmatrixr2: 1:33am On Jun 06, 2012 |
You have to do that with Jquery |
Re: Need Help With Server-side Script by trentmoller: 7:52am On Jun 09, 2012 |
you need to use either AJax, jquery or javascript...and each of the above are all client-side scripts... if you wanna play with server-side scripting, ASP.net or php will do.... |
(1) (Reply)
Padding/margin I Need Help / In Need Of A Laptop For Programming / Learning coding
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 13 |