Forums
This topic is locked
Advanced HTML Form Validation
Posted 18 Aug 2008 15:48:30
1
has voted
18 Aug 2008 15:48:30 Michael Bielen posted:
Anyone have an answer to this question. I posted it in the JavaScript forum last week and nobody had any responses? I've searched the forums and found similar questions with no answer. The same exact issue occurs with WebAssist's Validation Tool when used with the Advanced HTML Edtior.---
I'm using the Advanced HTML Editor. Everything is going well, except I've come across and issue that I've been strugging with.
I have a simple script to check if the HTMLEdit text area is empty. If it, display the error. If not, continue on. When I run the script, the first time the alert always appears even if there is content in the text area. When I click submit the second time without changing any content, the validation works properly. Is there a different way I should be looking at an HTML Editor text area to validate?
Thanks
if (document.getElementById("NONE".checked)
{
if (document.getElementById("announcementTitle".value.length > 0)
{
document.MM_returnValue = true;
}
else
{
alert("Please enter an announcement title."
document.MM_returnValue = false;
}
}
Replies
Replied 26 Aug 2008 13:21:47
26 Aug 2008 13:21:47 Miroslav Zografski replied:
Hi Michael,
In AHE field there is no value, witch to be measured with your script.
Ahe is a i-frame which you edit. It's not just a text field.
Regards,
M.Zografski
-----------------------------------
DMXZone.com Support Team
-----------------------------------
In AHE field there is no value, witch to be measured with your script.
Ahe is a i-frame which you edit. It's not just a text field.
Regards,
M.Zografski
-----------------------------------
DMXZone.com Support Team
-----------------------------------