Page 1 of 1

expected '}' error

Posted: Mon Nov 08, 2010 1:38 am
by irfan_sw
I have a jquery javascript and flexigrid code .this running fine in mozila firefox.but creating problem in internet explorer.
ERRORS
1.Flexigrid close button is not displaying



Message: Expected '}'
Line: 6124
Char: 14
Code: 0
URI: http://ixlms.com/prod/theme/oceanblue/jquery.js


Message: Expected '}'
Line: 6124
Char: 14
Code: 0
URI: http://ixlms.com/prod/theme/oceanblue/jquery.js

plz help me.

Re: expected '}' error

Posted: Mon Nov 08, 2010 2:38 am
by irfan_sw
code below for above problem.

Code: Select all

  
 $(document).ready(function(){
	
	$("#flex1").flexigrid
			({
			url: 'lib.php?cmd=grouplist',
			dataType: 'json',
			colModel : [
		{display: 'Name', name : 'Name','width':100, sortable : true, align: 'left'},
		 
 		 
 		{display: 'Action', name : 'Created','width':100, sortable : true, align: 'left'}		
				
				],
			 
			sortname: "id",
			sortorder: "asc",
			usepager: true,
 			useRp: true,
			rp: 10,
			height: 255
			}
			);   

	

  
  
  
//$(".addnew").fancybox({ 	'titleShow':false,		'type': 'iframe', 	'transitionIn'	: 'elastic','transitionOut'	: 'elastic', 'width':700,'height':600,'onClosed':modalupdate		});

   });	
function update(id){ 	
var url = "add_group.php?action=update&id=" + id;

$.fancybox({ 'href':url,	'titleShow':false,		'type': 'iframe', 	'transitionIn'	: 'elastic','transitionOut'	: 'elastic', 'width':800,'height':700,'onClosed':modalupdate		});

}
  function modalupdate(){   $("#flex1").flexReload(); 	}

Re: expected '}' error

Posted: Mon Nov 08, 2010 2:43 am
by Weirdan
The file referenced in error message seems to be truncated.