expected '}' error

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
irfan_sw
Forum Newbie
Posts: 8
Joined: Tue Aug 31, 2010 4:59 am

expected '}' error

Post 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.
irfan_sw
Forum Newbie
Posts: 8
Joined: Tue Aug 31, 2010 4:59 am

Re: expected '}' error

Post 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(); 	}
Last edited by Weirdan on Mon Nov 08, 2010 2:44 am, edited 1 time in total.
Reason: added syntax highlighting
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Re: expected '}' error

Post by Weirdan »

The file referenced in error message seems to be truncated.
Post Reply