![]() |
Tie in A .JS file to work along with Intraweb? - Printable Version +- Atozed Forums (https://www.atozed.com/forums) +-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html) +--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html) +---- Forum: English (https://www.atozed.com/forums/forum-16.html) +----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html) +----- Thread: Tie in A .JS file to work along with Intraweb? (/thread-942.html) |
Tie in A .JS file to work along with Intraweb? - cpstevenc - 02-13-2019 Greetings! Using Tokyo 10.2.3 IW 14.2.7 I found a nice JS project to do auto complete / dropdown combo box setup. Demo @ https://leaverou.github.io/awesomplete/ Can download ZIP file with everything. I have fiddled with this in a few ways but I just can't seem to get the JS too hook with the TIWEdit control? I've added these to the extraheaders Code: <link rel="stylesheet" href="awesomplete.css" /> Which seem to work, as if i look at the source of the page and click them, they load, so feel they are loading properly in the browser then. I tried to do the "Combobox Dropdown" example at the bottom of the above page to hook to my IWEdit control but not been able to. I modified their javascript to be included under the "JavaScript" property of the form. I modified the names of the controls to look for.. IWEDIT1 , IWEDIT1CSS, ect.. but not exactly working. I haven't had to use IW much in past few years, as product we have, has worked very well but now to finally add some new features, and they want an autocomplete dropdown that works similar to this. So figured hey, why not try and get this guy to work. Any tips would help alot! RE: Tie in A .JS file to work along with Intraweb? - Jose Nilton Pace - 02-15-2019 Hi. This JS can run on IW very well. Your extraheaders is ok. In your IWEdit1, go to css property and type: Code: css := 'awesomplete'; Now go to ExtraTagParams and add your data-list. Code: data-list=Ada, Java, JavaScript, Brainfuck, LOLCODE, Node.js, Ruby on Rails [attachment=80] RE: Tie in A .JS file to work along with Intraweb? - cpstevenc - 03-25-2019 ![]() Hmm sorta works... but the autocomplete drop down pops up in the top right corner of the page. I assume it doesn't like the extra tags IW puts in there for rendering? Then for trying to do the "combobox dropdown" I couldn't figure this one out.. as its a DIV tag class of "awesomplete" with what would be the iwedit with a class name of "dropdown-input" And putting the javascript on the form javascript property to get that side of stuff created and loaded. Code: <div class="awesomplete"> When I set the CSS property to "awesomeplete" it sets the DIV tag to it.. but also the class to it also. RE: Tie in A .JS file to work along with Intraweb? - Alexandre Machado - 04-04-2019 Can you please provide a simple test case showing this issue? |