Jump to content

keypress buffer modify via javascript in valuelists


chevell
 Share

This topic is 5594 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hi, i'm trying to modify the keypress buffer using javascript of an xsl generated value list from filemaker. I have the script in the head, but I can't figure out how to trigger it in the select statement. I've included my code below.


requestor()

Select One

requestor

Select One

I think i just have the script being called in the wrong place. Getting source on the final generated page doesn't even have mention of the function call. Any help would be greatly appreciated. Thanks!

Link to comment
Share on other sites

Yeah, same thing happened to me the first time and I just thought I was crazy. On the second post I figured out to turn off markup.

Ok, so I put it where you suggested, but it seems as if it still doesn't work. i know the script works, as I put in a non xsl based popup and it works fine. There as to be a way to do this...

Anyone?

Link to comment
Share on other sites

In your example, "this" will return the actual object, which will be the select object, not the option that you have selected.

In one of our solutions, I use

onChange="myfunctions(document.name_of_the_form.name_of_the_select_object.options[this.selectedIndex].index)"

However, that depends on what your keySort function really does.

Link to comment
Share on other sites

Well, the script essentially allows you to freetype into the dropdown list, so when you type j-a-m-e-s you get "james" rather than the begining of the 's'. So basically, you're saying i need to modify this text: "onkeypress="return keySort(this);"

Link to comment
Share on other sites

This topic is 5594 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.