hi all we are test some accordion menu with css and html in a htmlviewer how we can trap when the sub item is clicked for call some xojo containero or webdialog
Not easily. If youâre set on building your own, your best bet would be to create a WebSDK control out of this. Look for documentation and examples in the Xojo install directory under Extras/WebSDK.
To do what you want, youâd need to implement postMessage in JavaScript then find some useable way of routing that back to your Xojo application. Not a simple task.
Alternatively, I do provide GraffitiAccordionMenu as part of GraffitiSuite.
Correction. Youâd only need the postMessage API for communication if the resulting WebHTMLViewer is an iframe on the page. Either way, youâd need to build a mechanism for sending data back to the Xojo application.
Tks very much Anthony for your help, we will try your sugest
I use Graffitiâs accordian and it is awesome and fast to impliment
xojo web 2.0 controls are so limited in many ways, that learning to make a websdkcontrol is almost mandatory if you want to develop web 2 apps.
once youâve made one or two (and @Anthony_G_Cyphers is great helper for that !), you can make plenty by yourself.
the examples in xojo folder are âfrugalâ to say the leastâŠ
tks Jean awesome control
yourâs is nice too. you âonlyâ have to get the data back to xojo, and it is still some workâŠ