Forum



06:35

08/04/2010

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:
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)
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.
13:41

Moderators
30/10/2007

Hello,
Could you please post your problem into the appropriate forum here:
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.
Most Users Ever Online: 715
Currently Online:
139 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.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66