ID:262027
 
When using Deadron's htmllib, just where do you put the form_window var at and what value do you assign to it in order to make the form come up in a new window?

//I've tried putting here

Form
//I've tried putting it here
Testform
//And here
var
name


Each time I assigned it to 1. I also tried putting it in return value for the HtmlLayout() proc, encasing it with brackets. Just a little confused here.

Resonating Light
Resonating_Light wrote:
When using Deadron's htmllib, just where do you put the form_window var at and what value do you assign to it in order to make the form come up in a new window?
you mean Dantoms Htmlib right?
dont think Deadron got one...correct me if im wrong someone
Form/Test
form_window="window=Test"//open in window
var
Test
Initialize()
//put what you want to happen as soon as Form is opened
HtmlLayout()
////HTML goes here ^_^
ProcessForm()
///this happens after you hit the submit button if you dont know check out Dantoms demo
usr << browse(null,"window=Test")//close's it
In response to Brokenleg
Brokenleg has it right. I just thought I'd add that it would be good to replace
    usr << browse(null,"window=Test")

with
    usr << browse(null, form_window)

so that it will still automatically close if you change the form_window var.
In response to Shadowdarke
Shadowdarke wrote:
Brokenleg has it right. I just thought I'd add that it would be good to replace
    usr << browse(null,"window=Test")

with
    usr << browse(null, form_window)

so that it will still automatically close if you change the form_window var.

^_^ didnt know you could just set it like that,Shadowdarke teaches me something everyday hehe
In response to Brokenleg
Yeah, I did mean Dantom's. I read the help file for the library through and through and I understood most everything(the procs, and interface var and such), but I wasn't quite getting just how to use the non-interface variables, however I did end up being close! Because at one point I tried something like this.

Form/Test
form_window="test"


Thanks a lot,
Resonating Light