A test without webgadget because I think it's useless
A simple example without CCS
■ HTML Code (
This is an example : mainform.html)
- Code: Select all
<h1>Call SpiderBasic procedure</h1>
<!-- your button -->
<p><button onclick="window.parent.f_dummy('test');" >Click Me</button></p>
No <html> <header> <body>
■
SpiderBasic code- Code: Select all
; Remove spiderbasic body style
! $("body").removeClass("flat");
! $('*').css('background', 'transparent');
; Include your html file
!$("body").load("mainform.html");
Declare Dummy(Value.s)
Declare onClose()
;, Show value
; This procedure is called when you click on the button defined in the HTML page
Procedure Dummy(Value.s)
OpenWindow(#PB_Any, 0, 0, 300, 50, "Information", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
TextGadget(#PB_Any, 10, 10, 280, 24, "Value : " + Value)
BindEvent(#PB_Event_CloseWindow, @onClose() )
EndProcedure
Procedure onClose()
CloseWindow( EventWindow() )
EndProcedure
■ Demo :
http://falsam.com/sbtest/callsbprocedure.html