Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tie in A .JS file to work along with Intraweb?
#1
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" />
     <script src="awesomplete.js"></script>



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!
Reply
#2
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
You are done.
   
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)