[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Lynx-dev] Re: Adding submit button to forms which don't have one ?
From: |
aw585 |
Subject: |
[Lynx-dev] Re: Adding submit button to forms which don't have one ? |
Date: |
Mon, 5 Jan 2009 14:32:16 GMT |
My original post was accidently abbreviated by a protocol
conventions somewhere along the way, so I'm resending,
with changes that will hopefully get it through!
(Those %^&&^% periods in column 1. :-) )
--
> ..........
> lynx could detect that a form has no submit button and add one.
> ............
> Thanks,
> Sébastien.
You can do this with Privoxy (the follow-on to JunkBuster).
Install it, get it running, configure Lynx to use it, and install these
edits in it, before restarting it:
> In your user.actions file put:
>
>
> # '.' seems to act a synonm for all sights.
> { +filter{js-submits} }
> .
>
>
> In your user.filter file put:
>
> FILTER: js-submits Get rid of particularly annoying JavaScript submits
>
> s|<a *href="javascript:.*".*OnClick.*submit.*>.*</a>|<input type="submit">|igU
> s|<a *href="javascript:.*".*OnClick.*reset.*>.*</a>|<input type="reset">|igU
> s|<A +HREF="javascript:.*ONCLICK=.*(https?://[^'",]*).*\)"|<A HREF="$1"|ig
> s|(<form[^>]*>)|$1 <input type="submit" name="submit" value="submit
> (privoxy)">
> |ig
I use this frequently.
Some other browsers, have a function to force submission
of HTML forms whether there is a submit button in the form or not.
For w3m this is normally not mapped to a key, but it is easy to do,
or you can open up raw command prompt at the bottom of the screen.
I plan (and have been urged by friends) to blog on "abuse"s of
Privoxy as above in the future.
Just about anything you can do with the ed/ex/vi/vim/sed/Perl
"s/.../.../" to the HTML can be done with it.
Regards, Dallas E. Legan II / address@hidden / address@hidden
http://isthereanotherquestion.blogspot.com
************************************************************************
"Tekeli-li! Tekeli-li!"
- "At the Mountains of Madness", H.P.
Lovecraft
---------------------------------------------
This message was sent using Endymion MailMan.
http://www.endymion.com/products/mailman/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Lynx-dev] Re: Adding submit button to forms which don't have one ?,
aw585 <=