HI there John,
I just amended the JSON example and pointed the PHP script at one of
my own databases (the JSON stuff works fine).
The 'non-Wordpress' page is at
http://www.marketmentat.com/WIP/testflex1.php
and works like a charm.
Once that was working - which was really easy - all I did was take the
code from within the 'body' tags of that page and embed it into a
Wordpress post (with the page set to display full-width), ensuring
that the reference to the PHP file that created the JSON data was
amended appropriately. The post itself - which will eventually be a
static page that updates dynamically - should remain constant since
changes in the database will automatically reflect when the JSON
element does its work.
Within WP, the flexigrid renders, and if you examine the elements the
data is 'there' but the style properties of the TD elements are
somehow set to 'display:none' during the render (there is nothing in
my CSS to do this, and FireBug tells me that the CSS is being set
inline).
For the moment I can't point you to the appropriate Wordpress page,
because I have only attempted this on my local (development) install
of Wordpress. The code is identical to what's on the standalone page,
except that the headers and footers in the Wordpress page are more
complex.
I had a bit of a scratch around within the js file, and noted that the
attriute seemedto be being appended at line 678 (within function
addCellProp() )
if (pth.hide) $(this).css('display','none');
Commenting this line made the TD elements visible (but made other
things go awry). I can't see where pth.hide
Cheers
GT
On Oct 28, 11:56 am, John Teague <
johnt...@gmail.com> wrote:
> How are you trying to embed the grid in Wordpress? Please let us know.
>
> On Tue, Oct 27, 2009 at 6:52 PM, GT <
G...@marketmentat.com> wrote:
>
> > Hi there folks,
>
> > Congrats to Paolo on flexigrid - it's a terrific jQuery tool.
>
> > I got it working perfectly with JSON in a standalone page (an example
> > is athttp://
www.marketmentat.com/WIP/testflex1.php) ... but when I