₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,324,996 members, 8,419,859 topics. Date: Thursday, 04 June 2026 at 03:50 AM

Toggle theme

Error With XHTML Markup - Programming (2) - Nairaland

Nairaland ForumScience/TechnologyProgrammingError With XHTML Markup (3930 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 TemplateXml: Extensible Markup Language234

Learn Programming For Free And Earn Stipendsclosed.net Programmers I Need Your Help O