Welcome Guest, Not a member yet? Register   Sign In
[solved]can't add and edit data
#1

[eluser]maria clara[/eluser]
hi to all,

im having a problem because i can't add data from my jqgrid and even to edit existing data there. it shows an error in my console like this:
Code:
str is null
search_change(select)script.js (line 1541)
anonymous(Object type=change timeStamp=1262754631759, [Object type=change timeStamp=1262754631759 0=Object], select, Object name=E)jquery-1....2.min.js (line 19)
anonymous()jquery-1....2.min.js (line 19)
anonymous([select length=1 prevObject=[1] context=document], function(), Object name=F)jquery-1....2.min.js (line 12)
anonymous(function(), Object name=E)jquery-1....2.min.js (line 12)
anonymous("change", Object name=F)jquery-1....2.min.js (line 19)
anonymous()script.js (line 1606)
anonymous()jquery-1....2.min.js (line 19)
anonymous([function(), function(), function(), 3 more...], function(), Object name=F)jquery-1....2.min.js (line 12)
anonymous()jquery-1....2.min.js (line 19)
anonymous()jquery-1....2.min.js (line 19)
[Break on this error] if (str.match("date")=="date")\r\n



hope someone can help me with this..

thanks in advance,
maria
#2

[eluser]Unknown[/eluser]
this is such a nice and informative post, and i like this post, and i think this is so helpful to all users,
#3

[eluser]maria clara[/eluser]
@hijjamaul

thanks for the complement, Smile
hope this could help others with the same problem.. i have found the solution for this but there's no validation..

regards,
maria
#4

[eluser]theprodigy[/eluser]
if you've found a solution, please post it, so that others may benefit from it as well, or maybe someone can modify your solution to include validation.
#5

[eluser]maria clara[/eluser]
[quote author="theprodigy" date="1262781967"]if you've found a solution, please post it, so that others may benefit from it as well, or maybe someone can modify your solution to include validation.[/quote]

here it is:

i put this script in the function to create data in the CONTROLLER:

Code:
switch($postConfig['action']){
            case $crudConfig['create']:
                $sql = 'insert into '.$crudTableName.'(';
                $sql .= implode(',',$crudColumns);
                $sql .= ')VALUES(';
                $sql .= implode(',',$crudColumnValues);
                $sql .= ')';
                mysql_query( $sql );
                break;

with this i can now add data from my jqgrid but it doesn't have a validation.
hope someone can modify this with validation..

hope this can help others..

regards,
maria Smile




Theme © iAndrew 2016 - Forum software by © MyBB