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
sp_Feed Topic RSS sp_TopicIcon
source files not executing before my code
24/08/2010
03:16
Avatar
mchahn
Member
Members
Forum Posts: 5
Member Since:
24/08/2010
sp_UserOfflineSmall Offline

I'm having trouble getting subgrids to work.  It just says loading... forever.  So I decided to try running non-minified to trace the problem down.

I followed the installation instruction for using the development source.  It is loading all the files.  My problem is that my code is executing before grid.base.js is.

My html in the head of the page:

<script src="/includes/js/ui/jqGrid-src/grid.loader.js" type="text/javascript"></script>
<script type="text/javascript">
$(function(){

...

var logLinesGrid = $logLinesGrid.jqGrid({ 

...

As you can see my code is set to run after the dom is loaded.  The grid.load.js runs first and inserts grid.base.js in the DOM.  Then my code runs and jqGrid is not defined.  And then grid.base.js runs.

This happens in chrome and IE.  Any idea what I can do to fix this?

24/08/2010
03:20
Avatar
mchahn
Member
Members
Forum Posts: 5
Member Since:
24/08/2010
sp_UserOfflineSmall Offline

I'm temporarily working around the problem by running all my code in a function in a setTimeout.  I still would like to know how to do this right.

24/08/2010
04:12
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

You can insert in your page all javascript files which you need to load (look inside of grid.loader.js) exactly how you load grid.loader.js file.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
71 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