May 8, 2020
Need to Simulate Look Ahead in Search – Help?
Comments
(4)
May 8, 2020
Need to Simulate Look Ahead in Search – Help?
Newbie 4 posts
Followers: 0 people
(4)

Hello,

I need to simulate a look ahead function in search. Let’s say I have 4 account numbers:

  • 1234567
  • 1236784
  • 1267398
  • 1873495

I need them all to show when the user presses 1 in the text box. I also need them all to be clickable as a link to another slide.

When the user enters the 2 following the 1, only the top three show (and again are clickable) entering the 3 has only the top two showing and so on.

I could simulate this with a ridiculous number of slides and a massive kluge but what I want is a text entry box with javascript matching each keypress to an array that I have previously created (or pulled in from XML) and displaying just those entries still in the running as it were. Text boxes in Captivate only seem to fire off javascript on success (or failure) not with each keypress.

How do I do this?

Thanks,

Greg

4 Comments
2020-05-11 12:43:46
2020-05-11 12:43:46

I have been successful at performing actions on each keypress using the following…

$(“#entryBoxc”).on(“input”,function(){
//your actions here
});

The above code in blue is the name of your text entry box.
Do not forget the c

Hopefully this is enough to get you started.

Like
(1)
(3)
>
Greg Stager
's comment
2020-05-11 12:45:25
2020-05-11 12:45:25
>
Greg Stager
's comment

Ugh – What is the point of having a text editor in this community if all my formatting is going to be ignored?

The code above assumes your text entry box has the name  entryBox

Like
>
Greg Stager
's comment
2020-05-11 15:40:45
2020-05-11 15:40:45
>
Greg Stager
's comment

Thank you, Greg. I will start there.

Like
>
Greg Stager
's comment
2020-05-11 15:41:21
2020-05-11 15:41:21
>
Greg Stager
's comment

Thanks!

Like
Add Comment