>
> > I have managed to get lightbox working in cake but had to set these
> lines in
> > a scriptblock in a layout .thtml /.ctp



yep .  In a scriptblock in a layout view such as default.thtml for example


On 04/03/07, Mech7 <[EMAIL PROTECTED]> wrote:
>
>
> Yes that would be possible but no php acces in javascript files :( do
> you move this to the head of your document instead ?
>
> On Mar 3, 10:43 pm, "Sam Sherlock" <[EMAIL PROTECTED]> wrote:
> > are the troublesome lines these:
> >
> > var webRoot = "<?php e($this->webroot); ?>";
> >
> > var fileLoadingImage = webRoot . "/img/loading.gif";
> >
> > var fileBottomNavCloseImage = webRoot . "/img/closelabel.gif";
> >
> >
> >
> > I have managed to get lightbox working in cake but had to set these
> lines in
> > a scriptblock in a layout .thtml /.ctp
> >
> > On 03/03/07, phirschybar <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > > hmm. not sure I understand what you mean. Can you give an example?
> >
> > > On Mar 3, 1:32 pm, "Mech7" <[EMAIL PROTECTED]> wrote:
> > > > Well the problem is when it is in a subdir then this does not work,
> > > > since you need the subdir in front of it, but when it changed you
> need
> > > > to edit them manual again :(
> >
> > > > On Mar 3, 6:21 pm, "phirschybar" <[EMAIL PROTECTED]> wrote:
> >
> > > > > if you prepend the image path with a '/' like '/img/...' it will
> trace
> > > > > back to the web document root and hit the right directory every
> time.
> >
> > > > > So wherever you see images/ in the .js file, change it to /img or
> > > > > whatever you want.
> >
> > > > > On Mar 3, 12:11 pm, "Mech7" <[EMAIL PROTECTED]> wrote:
> >
> > > > > > The problem is it does not work like css where it links relative
> > > from
> > > > > > the file, but instead it writes html via dom in the document
> when
> > > > > > needed.. so the path will link from a different directory
> depeding
> > > on
> > > > > > which controller or page i am on :(
> >
> > > > > > On Mar 3, 6:06 pm, "Grant Cox" <[EMAIL PROTECTED]> wrote:
> >
> > > > > > > If you put the lightbox images in the js folder (where your
> > > > > > > lightbox.js is) then they should work.  A bit messy perhaps,
> but
> > > > > > > otherwise just edit the javascript file yourself to point to
> the
> > > > > > > correct location (ie ../img/ )
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to