Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: I am Master of Overcomplification.. Can this be simplified?

From: inetw3::mindspring::com at: 10-Jan-2005 0:19

Hello Izkata, It looks like you may want to reduce the Form1 block, before the load/page btn is pressed. I could be wrong. btn "Send" [LoadPage/post (Url) to-string reduce Forml] Hey, I have a Rebol Browser i've put together. But because i've never really programmed before i think i may be the real Master Overcomplication. It reads local and http files and render them also to VID layout, but if the HTML code does'nt conform to some XHTML rules, like you must have closing tags such as... </p>, </table>, and no improper nested tags, it lays it out as it is. It will still view the pages, but it's looks is not close enough to what most browsers would show with bad HTML. My approach for a send button. I use my %quickparser.r script as a part of my browser. I have'nt put together a send button, but it would have to go something like this. btnSend: func [ attributename /local Form1][ Form1: [] getattribute attributename append Form1 reduce [attribute "=" attvalue "&"] ] <input id=Form#1 type="send" onclick="btnSend{Hours}btnSend{MP} btnSend{GP}btnSend{VocPromo}"]LoadPage/post.Url.to-string.reduce.Form1 /> You could put the attributes you want in a block and use... onclick="foreach.attribut.attributename[btnSend.attribut]etc."] /> you need to parse the html to Form#1 to "onclick" and copy it as something to "/>" replace something "." { } replace something "[" " [" replace something "]" "] " and then...... btn send [LoadPage/post(Url) to-string reduce something ]