Hello LuckyLuke,
this is not that easy...
* jQuery already exists when SpiderBasic loads.
Remove this:
Code: Select all
LoadScript("//code.jquery.com/jquery-1.12.4.js", @test())
* jQuery UI also already exists, but in a custom version without autocomplete (Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.position.js, jquery.ui.draggable.js, jquery.ui.droppable.js, jquery.ui.resizable.js, jquery.ui.selectable.js, jquery.ui.sortable.js).
Remove this:
Code: Select all
LoadScript("//code.jquery.com/ui/1.12.1/jquery-ui.js", @test())
For testing purposes you can replace the content of "[SpiderBasicPath]\Libraries\javascript\jquery-ui.custom.min.js" with the content shown under
http://code.jquery.com/ui/1.12.1/jquery-ui.min.js
Now your code should look like this:
Code: Select all
OpenWindow(0, 0, 0, 322, 205, "StringGadget Flags", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
StringGadget(0, 8, 10, 306, 20, "")
a = GadgetID(0)
! $(v_a.gadget.textbox).autocomplete ({
! source: [ "c++", "java", "php", "coldfusion", "javascript", "asp", "ruby" ]
! });
This works in principle but unfortunately not like expected because Dojo and jQuery UI are not the best friends (the jQuery UI autocomplete dropdown is hidden somewhere).
I think, the best idea is to use dijit.form.FilteringSelect (
https://dojotoolkit.org/reference-guide ... elect.html).
I'm out & Good luck! ... Peter