Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Process a request
Message
From
12/12/2001 08:52:44
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, United States
 
General information
Forum:
Visual FoxPro
Category:
Third party products
Miscellaneous
Thread ID:
00593092
Message ID:
00593199
Views:
23
Markus,

Thanks, this worked. >THIS.Page.Navigate("wc.dll?mysite~myprocess")

I've been using WC for 4 years and I'm just starting to use voodoo.

Using the sample from the help, it looks like when the button is pressed, the post calls the same process again(meaning that the textbox and button are generated again), and then the button's click() method is called. I just want the buttons click method called and a new page displayed.

How can I avoid having the following code run when the button is pressed:
LOCAL loPage
loPage = NewObject("WCPage","voodoo.prg")
loPage.NewObject("txtDemo","WebTextbox","voodoo.prg")
loPage.txtDemo.Label = "Example Text: "
loPage.NewObject("cmdTest","DemoButton","shop_wizards.prg")
loPage.DoEvents()
Response.Write(loPage.Render())
I would rather run the CLICK() method then run:
LOCAL loPage
loPage = NewObject("WCPage","voodoo.prg")
***Different page here.
loPage.DoEvents()
Response.Write(loPage.Render())
Is there a way to specify the post string? Or would the button click method not get called if that happened?

Thanks,

Jerryt


>
>One way would be to run your process, and then navigate to another page.
>
><
>FUNCTION Click
>   THIS.Page.Navigate("NextPage.Voodoo")
>ENDFUNC<
>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform