in reply to Re: CGI delete attributes set in textfield()
in thread CGI delete attributes set in textfield()

Thank you Fletch, but I know of a change through the -onchange method of javascript available in CGI so it is not quite that what you coded for me. It would be much easier (IMHO) if there would be a possibility that do the following
-onchange => "override onfocus, override onblur",
Nevertheless thank you for your help.

Replies are listed 'Best First'.
Re^3: CGI delete attributes set in textfield()
by Fletch (Bishop) on Feb 21, 2008 at 15:37 UTC

    Aaah I misunderstood what you were asking, which is a Javascript question and not really a Perl problem (whatever JS library you're using should provide some method of removing or changing event bindings; e.g. jquery would be something like $("textfield[name=name]").unbind( 'focus' ); $("textfield[name=name]").unbind('blur');).

    Update: tweaks to sample jquery and link'd to unbind docs

    The cake is a lie.
    The cake is a lie.
    The cake is a lie.