₦airaland Forum

Welcome, Guest: Register • Login • With Google • Trending • Recent • New

Stats: 3,344,448 members, 8,511,943 topics. Date: Monday, 02 November 2026 at 02:25 PM

Toggle theme

Error With XHTML Markup - Programming (2) - Nairaland

Nairaland Forum › Science/Technology › Programming › Error With XHTML Markup (3980 Views)

1 2 Reply

Re: Error With XHTML Markup by delomos(m): 8:28pm On May 29, 2012
jt2010: Bros,


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 (&wink 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"wink.value = Replace(document.all("TextBox1"wink.value,"&","and"wink
End Function
</script>
</head>
<body>
<input type="Text" name="TextBox1">
</body>
</html>
This isn't an HTML question per se and I'm guessing you want to do this in JavaScript.

1. Paste your code (the above) on http://jsfiddle.net/ (and run it and see if you can see what the problem is).
2. You still have issues, open a new thread and post your question there with the respective jsfiddle link.

Cheers.
Re: Error With XHTML Markup by jt2010(op): 8:22am On May 30, 2012
Bros,

I have create a new thread for the javascript question.

Here is the link: https://www.nairaland.com/950070/need-help-server-side-script#10952166
1 2 Reply

How Do I Fix "Player.exe Has Stopped Working" Error Message. • Invalid Security Token Error 403 Blogger Template • Xml: Extensible Markup Language • 2 • 3 • 4

Please Don't Learn To Code • MATLAB: The Language Of Technical Computing • I Have A Google Coding Interview Coming Up. I’m Panicking!!!