Hi,
I've been using jqgrid to manage data in my database quite successfully, but now I need to add a 'file' field.
If I set the field as 'required', then I'm getting a Javascript error when I 'save' a new record:
Error: TypeError: val is undefined
Source File: https://lopc-dev-0831/LOPCapp/js/jquery/jqGrid/js/jquery.jqGrid.src.js
Line: 6281
(I'm using version 4.5.4)
This is in the function isEmpty – which makes sense.
Tracing back the stack, this is called from
checkValues (line 6329)
saveRow (line 9395)
jqGrid (line 747)
onClickButton (line 9799)
If I don't mark the field as 'required' I get data posted back to my php server app, but the element in the $_POST variable that I would expect to contain the name of the file (so I can then use the AjaxUploader as explained elsewhere) is not defined either.
I'm seeing similar behaviour from both inline editting and form editting.
The source of my page is below. It's the field modFilename that's giving the problem.
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top