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_Related Related Topics sp_TopicIcon
Cannot Load Data in Grid Because My setURL Path Wrong?
08/04/2010
06:35
Avatar
jquery_fan_coder
New Member
Members
Forum Posts: 2
Member Since:
08/04/2010
sp_UserOfflineSmall Offline

Hi Tony and forum users,

I can't load json data into the visible grid in my custom php page because I can't get the setURL path correct.

I can get the quick installation demo going – even when it uses the same jq-config.php file and other setup files as my own custom page does.

Firebug's console shows that the address created by $grid->setUrl gives a 404 Not Found.

Yet, if I'm not corrected, this address exists – at least the part before the attributes after the .php?

I must have overlooked something simple, but have wasted days on this after testing for many other problems that may have caused this.

Please help. I want to get back to developing with the grid again as I could with the non-php version – not fighting a config file.

My deadline is tight so if I can't get this working in 1 more day, I'll have to find an alternative to the otherwise excellent jqgrid.

My dir, file, and config Layout:

includes/classes/jq-config.php

includes/classes/jqGrid.php

/includes/classes/jqGridPdo.php

My files:

1. same role as myfirstgrid.php demo:

includes/template_type/user_type/view_1/my_custom_view_jqgrid.inc.php  

With $grid->setUrl($path_to_controllers . '/includes/template_type/user_type/view_1/my_custom_view_jqgrid.inc.php');

$path_to_controllers can be substituted with the full path, but still no luck.

2. same role as myjqgrid.php:

includes/template_type/user_type/view_1/my_custom_view.inc.php

3. URL shown in browser:

http://domain/site/user/view/

This view includes the file:

includes/template_type/user_type/view_1/inpage_tabs

and the first tab in tis includes file 1. above:

includes/template_type/user_type/view_1/my_custom_view_jqgrid.inc.php

Firebug's 404 shows (sorry - had to post url as below as otherwise forum abbreviates it)

http://domain/

path/

controllers/

includes/

template_type/

user_type/

view_1/

my_custom_view_jqgrid.inc.php?

oper=grid&_search=false&nd=1270692718070&rows=10&page=1&sidx=OrderID&sord=asc

To make testing simple, I've tested the grid with 1 less include – that is – included directly into http://domain/site/user/view/ outside of the the 'inpage_tabs' include, but again, only the grid is rendered – no data, and the son output is similar but for a slight change in path.

Again – I can get the demo myjqgrid.php showing data in the site's root dir – even with the same config paths that point to includes/classes/jq-config.php etc.

I've read that setURL should be the same as the include path in final view, but using this (as above) doesn't work.

If it was because I am using 2 includes, I could understand, but if I include the final jqgrid with just 1 include directly to the view page, I can still only render the grid with no JSON data.

Please help! I'd like to get this going, pay for the developer licence, and publish my site.

08/04/2010
13:41
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Could you please post your problem into the appropriate forum here:

http://www.trirand.net/forum/

Thank you

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.

08/04/2010
14:00
Avatar
jquery_fan_coder
New Member
Members
Forum Posts: 2
Member Since:
08/04/2010
sp_UserOfflineSmall Offline

Thanks mate,

I didn't see the other php forum, which is what I assume you are referring to.

My post has been reposted there.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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