Re: [racket] Web input-string with pre-fllled value

2010-08-25 Thread Mark Carter
- Original Message > From: Jay McCarthy > I'm interested in figuring out what is overwhelming and alleviating > it. Unless you're overwhelmed by its featurefullness ;) Yes - there's just a lot to absorb all at once. The example blog for Racket is very good. There's things that pu

Re: [racket] Web input-string with pre-fllled value

2010-08-25 Thread Jay McCarthy
On Wed, Aug 25, 2010 at 2:01 AM, Mark Carter wrote: > Sweet! Many thanks. I've decided to mess around with websites. I'm quite > comfortable with Python (I'm not familiar with any of its web frameworks, > though), but Scheme/Lisp sounded like it would be more fun. Lisp turned out to > be an exerci

Re: [racket] Web input-string with pre-fllled value

2010-08-25 Thread Mark Carter
- Original Message > From: Nadeem Abdul Hamid > To: Mark Carter > Cc: users@racket-lang.org > Sent: Tue, 24 August, 2010 19:33:05 > Subject: Re: [racket] Web input-string with pre-fllled value > > > > > I would like to pre-fill the VAT Rate inp

Re: [racket] Web input-string with pre-fllled value

2010-08-24 Thread Nadeem Abdul Hamid
> > I would like to pre-fill the VAT Rate input-string with a rate (set to 17.5 > as a > default). Is there a way I can do that? > You probably have to define your own formlet, e.g.: (define init-input-string (λ(val) (to-string

[racket] Web input-string with pre-fllled value

2010-08-24 Thread Mark Carter
I'm trying to construct a simple tax calculator in Racket for use over the web. Here's my code so far: #lang web-server/insta (require web-server/formlets) (define new-post-formlet (formlet (div "Amount: " ,{input-string . => . amount} ;,(select-input '("Net" "Gross") . => . type)