Forum


22:11

18/08/2008

I am getting a few errors and are unsure how to fix them. First, I downloaded the latest source and applied it accordingly. I copy and pasted the source code from the examples and placed it into the body of my page. Every page load I get the following:
11: TypeError: Undefined Value - grid.formedit-min.js
Line 11= ;(function($){$.jgrid.search={caption:"Search...",Find:"Find",Reset:"Reset",odata:['equal','not equal','less','less or equal','greater','greater or equal','begins with','ends with','contains']};$.jgrid.edit={addCaption:"Add Record",editCaption:"Edit Record",bSubmit:"Submit",bCancel:"Cancel",processData:"Processing...",mtype:"POST",msg:{required:"Field is required",number:"Please enter valid number!",minValue:"value must be greater than or equal to ",maxValue:"value must be less than or equal to"}};$.jgrid.del={caption:"Delete",msg:"Delete selected record(s)?",bSubmit:"Delete",bCancel:"Cancel",processData:"Processing...",mtype:"POST"};$.jgrid.nav={edittext:" ",edittitle:"Edit selected row",addtext:" ",addtitle:"Add new row",deltext:" ",deltitle:"Delete selected row",searchtext:" ",searchtitle:"Find records",refreshtext:"",refreshtitle:"Reload Grid",alertcap:"Warning!",alerttext:"Please, select Row!"};$.fn.extend({searchGrid:function(p){p=$.extend({top:0,left:0,width:360,height:70,modal:false,drag:true,closeicon:'ico-close.gif',dirty:false,sField:'searchField',sValue:'searchString',sOper:'searchOper',processData:"",sopt:null},$.jgrid.search,p||{});return this.each(function(){var $t=this;if(!$t.grid)return;if(!p.imgpath)p.imgpath=$t.p.imgpath;var gID=$("table:first",$t.grid.bDiv).attr("id");var IDs={themodal:'srchmod'+gID,modalhead:'srchhead'+gID,modalcontent:'srchcnt'+gID};if($("#"+IDs.themodal).html()!=null){viewModal("#"+IDs.themodal,{modal:p.modal});}else{var cM=$t.p.colModel;var cNames="<select id='snames' class='search'>";var nm,hc,sf;for(var i=0;i<cM.length;i++){nm=cM[i].name;hc=(cM[i].hidden==true)?true:false;sf=(cM[i].search==false)?false:true;if(nm!=='cb'&&nm!=='subgrid'&&sf&&!hc){var sname=(cM[i].index)?cM[i].index:nm;cNames+="<option value='"+sname+"'>"+$t.p.colNames[i]+"</option>";}}
50: TypeError: Value undefined (result of expression jQuery#navgrid").jqGrid) is not an object. - admin.lasso
this = {height:280,reloadAfterSubmit:false}, // add options
23:32

18/08/2008

Ok, got a little further. Now I hit this in Mozilla 3.0
Error: jQuery(modwin).jqDrag is not a function
Source File: http://im.hldns.com/scripts/js.....dit-min.js
Line: 62
BUT, it does now load! WOW! Any idea why I get this error. I saw another post on this but no definite answer. Oh, and the other error I posted earlier "Undefined Value - grid.formedit-min.js"... I found this happens when you include the scripts in the head but then have either an undefined grid or an error in the code which registers no grid. Anyhow, the offending line below for the not a function error.
if(p.width==0||!p.width)p.width=300;if(p.height==0||!p.width)p.height=200;if(!p.zIndex)p.zIndex=950;jQuery(mw).css({top:p.top+"px",left:p.left+"px",width:p.width+"px",height:p.height+"px",zIndex:p.zIndex});return false;};function viewModal(selector,o){o=jQuery.extend({toTop:true,overlay:10,modal:false,drag:true,onShow:showModal,onHide:closeModal},o||{});jQuery(selector).jqm(o).jqmShow();return false;};function DnRModal(modwin,handler){jQuery(handler).css('cursor','move');jQuery(modwin).jqDrag(handler).jqResize(".jqResize");return false;};function findPos(obj){var curleft=curtop=0;if(obj.offsetParent){do{curleft+=obj.offsetLeft;curtop+=obj.offsetTop;}while(obj=obj.offsetParent);}
02:56

Moderators
30/10/2007

You should include the jqModal.css and jqDnR.js too. Also refere to
documentation
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
08:40

18/08/2008

No change. Do you have webkit (Safari)? If so, check out this and you will see what I mean.
09:34

Moderators
30/10/2007

Hello,
I check this with Safari 3.1 on Windows and seems that this work ok.
Now to resolve the problem try to include the files manual and not
with the loader. Follow the order that is in the loader.
Please let me known if this work.
Best Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
09:50

18/08/2008

It is saying the error is in the actual file, and not that file is missing. I can try manually loading. I'm not sure how to enable script debugging on the PC version of Safari but here is the error:
http://im.hldns.com/error.png
The errors have to be cleared before I can consider using this and I am not sure what is left. Also, is there a way to set the location for the "select a row" box and where the search box etc are located? In Safari the instructions show at the top of the page and off right. The search box is at top center.
10:41

Moderators
30/10/2007

Hello,
Yes, there is something unusual here.
You can use top,left width and height properties - see docs.
But I think we should first see what is wrong. Now I recommend if possible
to test just with jqgrid plugin only. Exclude all other plugins and
see if all is ok.
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
10:51

Moderators
30/10/2007

Also found a error - FireBug tell me that jqModal.css is not loaded.
Please check the right paths - I think that
this
<link href="/scripts/themes/basic/jqModal.css"
rel="stylesheet" type="text/css">
Should be replaced with this
<link href="/scripts/themes/jqModal.css"
rel="stylesheet" type="text/css">
Reagrds
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
01:23

Moderators
30/10/2007

Hello,
Humm, it seems to be a loader problem. Could you please load files
manual whitout using jqGrid loader - I mean load grid.base.js ...
and all js file separatly.
Please let me known about the result.
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
05:34

20/08/2008

Hello,
I am experiencing a similar problem. Works fine in FF2 but IE6 gives the javascript errors. I seemed to observe that after one or two attempts, things would start to work under IE6 too but then if I clear the cache, I can make it break again. Wierd, maybe a race condition/timing issue.
If I load the js files separately using <script> tags then things seem to work. I cleared the cache to verify.
Thank you
10:26

Moderators
30/10/2007

I think that the problem in IE is in the loader. Also if you forget please clear the cache in IE again. I think that the best way is to split the modules like
jQueryUI - what do you think about this?
Best Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
02:42

Moderators
30/10/2007

Hello,
There are two way to solve this
1. We can use jquery getScript
2. Merge modules like jQueryUI.
Both have pro and contra - So I will ask here for help -
Which one to implement in jqGrid?
Thank you
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 715
Currently Online:
68 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66