Re: Action address in HTML forms

2009-03-05 Thread Andy Wardley

Zbigniew Lukasiak wrote:

Is it then a reasonable rule when writing a 'high level web
library/framework' to restrict the forms to always submit to their own
address?


It's a reasonable default, but not so good as a restriction.  I can think
of several occasions where my forms don't submit straight back to the
place that generated them.

For example, I'm working currently on a project where we have an external CMS
for customers to use and an internal CMS (with extra wizzy features) for the
support staff to use.

Image upload from the internal CMS is messy as it requires syncing the
files out to the external machine.  So instead we have the internal CMS
generate a form which submits the image upload to the external CMS along
with a hidden parameter which says redirect the user back to *here* when
the image upload is done.

  http://internal.example.com/image/upload

  - generates form, user submits -

  http://external.example.com/image/upload

  - accepts upload (or prints errors), redirects -

  http://internal.example.com/image/uploaded?status=okimgid=12345

Another scenario is where you have one page with lots of forms on it.
Each one changes a different aspect of some data and is handled by separate
URLs/actions.

   +-+
   | update blah - url1 |
   +-+

   +-+
   | update yada - url2 |
   +-+

   +-+
   | update bobo - url3 |
   +-+

In this case the page generating the forms is not the same page that
receives the form data.  Otherwise your one handler ends up with lots
of separate code branches to process each form.

A


Re: Backpan mirror wanted

2009-03-05 Thread Peter Corlett

On 4 Mar 2009, at 16:13, David Cantrell wrote:

Can anyone bring a backpan mirror to the pub tomorrow on a USB thingy
please so I can copy it?


I have one, although it stopped being updated a couple of weeks ago  
when I moved house and lost my ADSL. It's about 10GB.





Re: London.pm Dim sum Thursday 1pm: Baozi Inn

2009-03-05 Thread Léon Brocard
2009/3/3 Léon Brocard a...@astray.com:
 Let's go back to Chinatown. We haven't been back to Baozi Inn, so
 let's do that this week. It's more a noodle place than a dim sum
 place. There is the social meeting ion the evening too.

 Baozi Inn
 Thursday 1pm
 25 Newport Court, Chinatown, WC2H 7JS
 http://londonfood.typepad.com/stuff/2008/07/baozi-wowzi.html
 http://www.timeout.com/london/restaurants/reviews/13356.html

This is today. And there's the social in the evening too. See you there! Léon