I had lots of problems with slickgrid and use jqgrid instead.
Slickgrid is sleek but the documentation is lacking and contains code
like this

var BoolCellFormatter = function(row, cell, value, columnDef,
dataContext) {
    return value ? "<img src='../images/tick.png'>" : "";
};

Which seams to assume a folder structure like
scrips/
   slick.editors.js
images/
   tick.ong

while in effect it is distributed as

slick.editors.js
images/
   tick.ong

Since this only happens in editors you may want to consider replacing
"../" with "" in the slick.editors.js file.

On May 4, 12:46 pm, MaxDoesPython <[email protected]> wrote:
> I am trying to integrate a javascript library (slickgrid) and can't
> seem to figure out where to place the images folder referred to by
> components of the library.
>
> in my view .html file:
>
>                 <script language="JavaScript" src={{=URL(r=request, 
> c='static',
> f="slick.editors.js")}}></script>
>                 <script language="JavaScript" src={{=URL(r=request, 
> c='static',
> f="slick.grid.js")}}></script>
>
> in slick.editors.js there are referances like:
>  '../images/calendar.gif'
> and return (value) ? "<img src='../images/bullet_star.png'
> align='absmiddle'>" : "";
>
> I need to know where to place the images folder in web2py or how to
> modify these references, preferably so they will be portable across
> apps, i.e. is URL () processed in .js files stored in app/static, and
> if so what should it look like.
>
> thanks,
>
> max

Reply via email to