|
Posted by hywel.jenkins on 11/17/05 18:02
Jeremy wrote:
> Hi All,
> I'm trying to create a client-side event that will run when the user
> submits a form. I want them to be able to enter a value for USERID
> that will either be "joe@domain.com" or just "joe."
>
> If the value is just "joe" don't do anything to it, and if the value is
> "joe@domain.com", strip the "@domain.com" before submitting it.
>
> Here's something that I thought might work, but didn't.
That's because your code isn't JavaScript. If that's supposed to be a
pseudo-code representation of your realy code, it's useless. Post the
real code.
If you're submitting to a server-side process do the interpretation
server-side, too.
--
Hywel
Navigation:
[Reply to this message]
|