Page 1 of 1

Linking to another site/page?

Posted: Mon Jan 04, 2016 11:51 am
by es_91
Hey.

How can I use a hyperlink to link to another site or page?

Code: Select all

Shared link

Procedure WindowGadget ()
  
  Select EventGadget ()
      
    Case link
      ; what to do to link to say google.com ?
      
  EndSelect
EndProcedure

OpenWindow (#PB_Any, 0, 0, 0, 0, "", #PB_Window_Background)

BindEvent (#PB_Event_Gadget, @WindowGadget ())

link = HyperLinkGadget (#PB_Any, 0, 0, 200, 20, "Click me!", RGB (0, 0, 0))

Re: Linking to another site/page?

Posted: Mon Jan 04, 2016 1:18 pm
by Peter

Code: Select all

Global link

Procedure WindowGadget ()
  
  Select EventGadget ()
      
    Case link
      ! window.open('http://www.google.com', '_blank');
      
  EndSelect
  
EndProcedure

OpenWindow (#PB_Any, 0, 0, 0, 0, "", #PB_Window_Background)

BindEvent (#PB_Event_Gadget, @WindowGadget())

link = HyperLinkGadget (#PB_Any, 0, 0, 200, 20, "Click me!", RGB (0, 0, 0))
Greetings ... Peter

Re: Linking to another site/page?

Posted: Mon Jan 04, 2016 1:59 pm
by es_91
Thank You.

Re: Linking to another site/page?

Posted: Mon Jan 04, 2016 8:12 pm
by es_91
Perhaps, is there a just-as-easy way to call/execute a program on the hard drive?

Re: Linking to another site/page?

Posted: Tue Jan 05, 2016 8:07 am
by Fred
The browser will never allows external program launch for security reason.

Re: Linking to another site/page?

Posted: Sun Sep 11, 2016 7:23 am
by es_91
It's been a long time, but i'd like to dig out this question for a new case of use:

what if i use a local server to trigger a program tool, will SpiderBasic pages be able to get info out of that program via the local web server?