Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
This topic is locked No permission to create posts
sp_Feed Topic RSS sp_TopicIcon
How to fix these errors
17/08/2008
22:11
Avatar
Steffan
Member
Members
Forum Posts: 50
Member Since:
18/08/2008
sp_UserOfflineSmall Offline

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

The URL is http://im.hldns.com/admin.lasso. I have no idea how the error comes from the navgrid not being defined. I have the following in the body:
<table id="navgrid" class="scroll" cellpadding="0" cellspacing="0"></table>
<div id="pagernav" class="scroll" style="text-align:center;"></div>
Any suggestions are appreciated.
17/08/2008
23:04
Avatar
Steffan
Member
Members
Forum Posts: 50
Member Since:
18/08/2008
sp_UserOfflineSmall Offline

Ok, either I have drank too much over this or something is severely hosed. I am trying to get the tabs working and those are broke too. There is something I am missing like an unclosed element that is causing this to be all screwed up. If you spot it, I'll call you my hero. 😉

17/08/2008
23:22
Avatar
Steffan
Member
Members
Forum Posts: 50
Member Since:
18/08/2008
sp_UserOfflineSmall Offline

Ok. Adding $().ready(function()... brought back the tabs but now onto the remainder. It seems the error in the grid.formedit-min.js is the culprit.

Is there an update needed? 

17/08/2008
23:32
Avatar
Steffan
Member
Members
Forum Posts: 50
Member Since:
18/08/2008
sp_UserOfflineSmall Offline

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);}

18/08/2008
01:50
Avatar
garnett21
Member
Members
Forum Posts: 17
Member Since:
02/08/2008
sp_UserOfflineSmall Offline

Try to include the jqmodal library in your html file

something like :

<script src="js/jqModal.js" type="text/javascript"></script>

18/08/2008
01:55
Avatar
Steffan
Member
Members
Forum Posts: 50
Member Since:
18/08/2008
sp_UserOfflineSmall Offline

same TypeError: Undefined value - grid.formedit-min.js.

This comes up in webkit and as some other error in IE.

18/08/2008
02:56
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

18/08/2008
08:40
Avatar
Steffan
Member
Members
Forum Posts: 50
Member Since:
18/08/2008
sp_UserOfflineSmall Offline

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

18/08/2008
09:34
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

18/08/2008
09:50
Avatar
Steffan
Member
Members
Forum Posts: 50
Member Since:
18/08/2008
sp_UserOfflineSmall Offline

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.

18/08/2008
10:41
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

18/08/2008
10:51
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

20/08/2008
01:15
Avatar
Steffan
Member
Members
Forum Posts: 50
Member Since:
18/08/2008
sp_UserOfflineSmall Offline

I applied the changes you suggested and still no difference. Same errors.

20/08/2008
01:23
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

20/08/2008
05:34
Avatar
phummel
New Member
Members
Forum Posts: 2
Member Since:
20/08/2008
sp_UserOfflineSmall Offline

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

20/08/2008
09:38
Avatar
phummel
New Member
Members
Forum Posts: 2
Member Since:
20/08/2008
sp_UserOfflineSmall Offline

Sorry, I was incorrect - even with the js files specified in <script> tags I'm still intermittantly getting javascript errors in IE.

20/08/2008
10:26
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

20/08/2008
19:31
Avatar
roo
New Member
Members
Forum Posts: 2
Member Since:
21/08/2008
sp_UserOfflineSmall Offline

Hi,

I have been having the same issues.

IE7 reported errors - null value
FF loaded OK
Safari didn't load at all.

I added the modules individually in my header and this solved the issue.
It appears to be a loader problem.

Roo

20/08/2008
19:56
Avatar
Steffan
Member
Members
Forum Posts: 50
Member Since:
18/08/2008
sp_UserOfflineSmall Offline

So, it seems to be a loader issue. How about an update?

21/08/2008
02:42
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

This topic is locked No permission to create posts
Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
22 Guest(s)

Currently Browsing this Page:
1 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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information