Login Register
Saturday, May 19, 2012
You are here : Forum
 
Forums Minimize
 
ForumForumForumForumIndoo Grid DNN ...Indoo Grid DNN ...small problem with gridEdit.jssmall problem with gridEdit.js
Previous Previous
 
Next Next
New Post
 3/28/2008 10:36 AM
 
 Modified By Nosdrovni  on 3/28/2008 11:37:02 AM

hello,

I'm very happy with IndooGrid but have a small problem with the gridEdit.js script, more specifcly the function fkpr(el,ev) which isn't behaving as it should (for us).

1. when we have a form like

name:

first name:

etc

and want to fill in " this is a ' test " (without the "), while typing the ' character on my keyboard the next field is selected. I am using a foreign keyboard (azerty nl-BE), but I guess I'm not the only one using IndooGrid not using US qwerty.

I traced the javascript and (kinda) solved it by putting in an extra line:

isDown=false;isUp=false;isLeft=false;isRight=false;isCtrl=(ev.ctrlKey);

and commenting out

//isDown=(keyCode==40);isUp=(keyCode==38);isLeft=(keyCode==37);isRight=(keyCode==39);isCtrl=(ev.ctrlKey);

it seems our ' key (which is the 4 key) generates a keycode 52 AND a keycode 39 when I put a trace ( alert("keycode: " + keyCode); ) in your javascript, so I understand why it does a field change, but I don't understand why it generates the keycode 39. If I test it here: http://www.ryancooper.com/resources/keycode.asp then it only generates keycode 52.

2. this is minor, but important to us - when we have a dropdownlist, let's say with countries, you can't quick-select a country by typing it in with the focus on the control.

Let's say you have a dropdown with 100 countries

You type "Cana" (fast enough)

Normally it would select Canada, but with the script enabled it select the first country starting with A (let's say Argentina).

If I disable this if clause in your fkpr function:

if (vid>-1 && vid<vidlAll){...}

then it works for us.

I must say, I do not fully understand what this part of the function does, but for now I keep it disabled so our users can quickly select the contents of a dropdownlist using the keyboard.

for the developers: maybe you want to take a look at this, maybe not, I just thought it might help someone,

kind regards,

Dennis

New Post
 3/28/2008 11:04 AM
 

Nosdrovni,

I'm very glad you find module useful. Fix for issue with apostrophe is provided in version 2.00.25 (see history on download page, please) but for now this version is not available for download because there is debate about some other functionality for version .25 and above on another thread. Version .26 will be available soon for download and there will be option for disabling fkpr (field key or press function, it move focus between fields for inline option and also when gridEdit is used with combination of right, left, up and down arrow with ctrl key also).

Apostrophe issue is caused by undefined standard for javascript key code, more info is provided here: http://www.thescripts.com/forum/thread151666.html but fix is already available.

Kind regards,

Primoz

 

New Post
 3/28/2008 11:24 AM
 

Nosdrovni,

I just have checked fast typing for dropdown list in ff 1.5 and ie7.0 and works well (but I have .26 beta). Please wait until this version is out and let us tell if works fin on your computer too.

Kind regards,

Primoz

New Post
 3/28/2008 11:46 AM
 

thank you, for now I'll leave my "fix" as it is and I'll test both issues in v .26 when it's released

best regards,

Dennis

Previous Previous
 
Next Next
ForumForumForumForumIndoo Grid DNN ...Indoo Grid DNN ...small problem with gridEdit.jssmall problem with gridEdit.js

  
Buy it Minimize

 

 

  
Home | Demo | Custom Solutions | Downloads | Forum | Company
 
Privacy Statement | Terms Of Use
 
Copyright 2008-2009 IndooLab d.o.o.