- Create Account

VALUES OF CALCULATE INTO BLIND AREA CONTENT

Forums > HTMLHttpRequest > VALUES OF CALCULATE INTO BLIND AREA CONTENT
Author
Message

1) watdaduck Group: Guests
IP: 167.107.--.--
I'm not much of an AJAX programmer, but say I have a text box in the htmlhttprequest.html form. Is there a way to get the data that I enter in the textbox (onblur) to appear in the Blind Content Toggle? If so how would I go about doing that?

2) Angus Turnbull Group: Moderators
Posts: 4042 Joined: 7 Dec 2003 Location: New Zealand IP: 203.109.--.--
document.getElementById('targetArea').innerHTML = document.getElementById('id-of-textbox').value;

That's  the quick and dirty way of doing it! You might want to consider escaping HTML too; probably grab a JavaScript tutorial somewhere if you're doing this seriously.

- Angus.

3) watdaduck Group: Guests
IP: 75.50.--.--
sorry i'm not very familiar with favascript where would i put thtat line of code?

4) Angus Turnbull Group: Moderators
Posts: 4042 Joined: 7 Dec 2003 Location: New Zealand IP: 203.109.--.--
OK, might be best to pick up that JavaScript tutorial then :). I can't really advise further without knowing how you app works, and can't really develop it for free anyhow.

- Angus.

Post a Reply:

You are not logged in, and will be posting anonymously as a guest. If you want to post using an account, please login at the top of this page.