include datagrid in a webpage

Questionsinclude datagrid in a webpage
RG asked 10 years ago

I have a php page which generates grid "jobs_datagrid.php" and I would like to include this grid in another web page index.php.

I have added the line php include 'jobs_datagrid.php'; in index.php.

The grid shows up but with no data.

What am I doing wrong?

Thank you.

3 Answers
RG answered 10 years ago

Let me correct my post. If I directly call the grid webpage http://localhost:8080/phpgrid/jobs_datagrid.php then the grid displays with data.

When I include above grid web page in my index.php (http://localhost:8080/index.php) using php include then the grid does not show up.

Checked using Firebug. No errors are being reported.
Checked the paths of css and js files. Everything looks good.
what am i missing here?

Thank you in advance.

RG answered 10 years ago

solved the issue causing the grid not be displayed.
I had to correct to path of the jquery js files.

SirShadow answered 10 years ago

I'm trying to include the grid in a webpage but I'm facing an error. Actually the Grid is shown without data with an Error subwindow which displays the page (again inside) with the data as an array. I'm shore that I'm doing something wrong but what?

The structure si something like this:
Index (with HTML head) <- calling function to check login {
calling function to display different things {
include(grid.php[only the php part])
I'm using absolute path as links to files:
Path of index = dirname(__FILE__).'/';
Path to jqgrid_dist.php = Path of index + Path to directory (relative to index)
When I'm putting again the HTML code (<head> things and <div>s) in grid.php and go directly to grid.php (not through index) the grid is shown ok.

Your Answer

18 + 8 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.

How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?