[REBOL] Re: I am Master of Overcomplification.. Can this be simplified?
From: Izkata::Comcast::net at: 9-Jan-2005 15:24
----- Original Message -----
From: "Carl Read" <[carl--cybercraft--co--nz]>
Sent: Sunday, January 09, 2005 3:11 PM
Subject: [REBOL] Re: I am Master of Overcomplification.. Can this be
>>Form1: ["Hours=" "(F1P1/text)" "&" "MP=" "(F1P2/text)" "&" "GP="
>>"(F1P3/text)" "&" "VocPromo=" "(F1P4/text)"]
>>view layout [
>> F1P1: field ""
>> F1P2: field ""
>> F1P3: field ""
>> F1P4: check-mark ""
>> btn "Send" [LoadPage/post (Url) ( to-string compose load to-block
>>Note: I am working on creating a web browser. So far, Forms, Images, and
>>This was created by the browser loading a test form, that's why I have the
>>before anything else and can't create it inside the send button.
>>Any way to simplify ( to-string compose load to-block rejoin Form1) ?
> Do you really need the parens in strings in Forml? As I think without
> them just a REJOIN should give the same results. ie...
> Form1: ["Hours=" F1P1/text "&MP=" F1P2/text "&GP=" F1P3/text "&VocPromo="
> btn "Send" [LoadPage/post (Url) rejoin Forml]
> I might've mis-read what you were trying to do, or course...
I see what you mean, and I did try it that way - but it wouldn't let me..
Here's basically how it gets the tags and such for the form..
Load/markup to separate the tags,
so a tag for, say, a field becomes <INPUT Type="Text" Name="Whatever">
it parses out the Type and Name, then sticks the Rebol form (using 'field)
the end of the file that becomes the layout,
and adds that F1P1/text onto Form1 block - Append and Insert won't let me
simply stick it on the way you suggested, so I had to make a (huge)
It would have been far simpler had I configured it for 1 form a page, but
web pages with 3+ forms.. including one of my own XD
If you need it I'm willing to post part of my code