« first day (2036 days earlier)      last day (1744 days later) » 

12:16 AM
0
Q: R3GUI - How to set the size of an 'area'

GordRI've tried: hgroup [label "Note" 64 AFV_Note: area 100x50] which produces the correct width but the height is still too tall. I also tried: hgroup [label "Note" 64 AFV_Note: area options [init-size: 100x50]] but that results in an error; probably not an option for 'area'.

 
 
5 hours later…
5:38 AM
@HostileFork I googled my own code to see if there's a solution extant
write-html-source: function [ 'word
	/local page
][
	page: rejoin [ base word %.html ]
	hook :print :my-print
	write page source word
	hook :my-print :print
]
 
0
A: R3GUI - How to set the size of an 'area'

Graham ChiuDoes this help at all? https://github.com/gchiu/RSOChat/blob/master/rsochat.r3#L811 chat-area: area "" 600x90 options [min-hint: 750x50 detab: true]

 
probably need an attempt around the 'write in case it errors and we quit the function leaving 'print with the wrong code attached
 
6:23 AM
if all [not x | not y] [...] => if none [x | y] [...] basically clinches Ren-C's choice to move to blank / _
I always had a bad feeling about none as it was. And blank is working out very well... just as bar is.
So none is now going into the <r3-legacy> pile and deprecated for its current meaning for a while to keep people from messing up... along with unset? and value?... and will be reclaimed when it's a good time.
 
 
1 hour later…
7:51 AM
That tags and issues have no evaluator behavior is actually quite an asset. It means that if you have code like if blah [...] and you're in some module and realize that some of your IFs have a certain property requiring decoration, and you don't want to touch all the code or change them to say my-if, you can hook the IF in that scope to look for the tag, e.g. if blah [<something> ...]
But you don't have to skip or decorate or muck with the block at all, the tags are inert. So they will DO the same... mostly. Unless they were if blah [] and now they return a tag instead of void.
 
 
3 hours later…
10:26 AM
if you have

<button class="button yellow" type="submit" name="button">Log in</button>
and you submit it, what gets posted to the server?
button="" ?
 
 
8 hours later…
6:08 PM
Experience suggests &true and &false are worse than $true and $false.
 
 
3 hours later…
9:12 PM
Rebol was always touted as the language of the web but how succinct is it?
using the base language with other libraries, how easy is it for you to read a web page, grab the session cookie and all the data needed to post to the form on that web page?
So, the challenge is to submit the form on a web page with the existing default values
If the page has multiple forms, then you're allowed to use the name of the form rather then needing to parse it out.
the web page needs to be proper xhtml
 
9:43 PM
@GrahamChiu Needs a value="" I believe.
@GrahamChiu It could be the language of the web. Still more elegant than most others, but needs a more populous culture to make it happen.
 
0
Q: Are HTML buttons with no values submitted in a form?

Graham Chiuif you have <button class="button yellow" type="submit" name="button">Log in</button> and you submit it, what gets posted to the server for the button which has a name but no value attribute? The reason I ask is that I'm parsing HTML forms, and need to post the named values that send data to...

@rgchris Seems button values are not submitted
 
@GrahamChiu If you can figure out the PowerMezz glitches, we have a very capable HTML parser in Rebol 3 (works fine in Rebol 2). Add that to the Rest API and you have the makings of a Mechanize clone. Been wanting to put that together for a while.
@GrahamChiu Per the spec, they should be if they're clicked. Don't know how widely that works though.
 
What glitches exactly are in the powermezz
I do note that Gabriele writes very dense code that is hard to maintain and understand
@rgchris do you have a reference I can read?
@rgchris btw, you're welcome to answer that question
 
@GrahamChiu I was discussing it with Fork here last year. It is a lot of opaque code and something wasn't quite coming together after changing all the headers and functions to Rebol 3. I never got to the bottom of what behaviour change was throwing the whole thing off.
 
10:07 PM
@rgchris unmaintainable code :(
 
@GrahamChiu Perhaps, but an HTML parser is a complex thing and there's a lot of efficiencies in there that make it performant and still somewhat lightweight. The trouble I have is that there is a fusion of three separate concepts and their implementation that make it hard to track down badly behaving code, namely: Macros, Trees (Niwashi) and a Markup dialect. I've been trying to separate those concerns simply to understand how they should work and what about them has broken in Rebol 3.
 
10:26 PM
@rgchris so, in my example, what if anything gets submitted as button?
 
I imagine it should be button= if the button is clicked.
 
so not the button text
just empty
since it has empty value attribute
Interesting .. I have 5 answers on my question and no upvotes that I can see ( or perhaps equal number of upvotes and downvotes )
and 4 of the 5 answers are wrong :(
 

« first day (2036 days earlier)      last day (1744 days later) »