g2petter
Junior Member
Posts: 3
Registered: 3/28/2008
Member Is Offline
|
| posted on 3/28/2008 at 11:42 AM |
|
|
"Can not find the input with NAME" [solved]
Hello.
I'm trying out Tigra Slider, and have a problem: I made a working slider from the demo pages included in the download, and it worked perfectly. Then
I copied the code into my actual project without changing anything, and now all I get is a message saying "Can not find the input with
NAME='inputName'" where inputName is the name I've chosen.
This is really weird, because I know the input is there. I've even made sure that it exists in the DOM. Does anyone know what's wrong?
|
|
|
tigra
Administrator
Posts: 1984
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 3/28/2008 at 08:01 PM |
|
|
My guess is that there is more that one input with that name.
|
|
|
g2petter
Junior Member
Posts: 3
Registered: 3/28/2008
Member Is Offline
|
| posted on 3/29/2008 at 09:52 AM |
|
|
That's not it. I've tried to rename the input to a series of random letters just to make sure, and it still gives the same error.
|
|
|
mvdl
Newbie
Posts: 1
Registered: 4/4/2008
Location: Netherlands
Member Is Offline
|
| posted on 4/4/2008 at 08:13 PM |
|
|
Hi g2petter,
Most likely the problem is caused by the “s_form” configuration key in the first configuration structure (e.g. “A_INIT”). The demo specifies
“'s_form' : 0”.
If your input box is not placed on a form, or not placed on the first form (as the 0 indicates the first zero-based index of the form in the
collection of forms) it can’t find it.
So, either refer to the correct form (by index or name), or (especially if you don’t use a form) simply remove this configuration key.
Hope this helps, if not, please provide your source code to see what is wrong.
Regards,
Marcel van der Laan
|
|
|
g2petter
Junior Member
Posts: 3
Registered: 3/28/2008
Member Is Offline
|
| posted on 4/5/2008 at 07:44 AM |
|
|
That solved it, thanks a lot!
|
|
|