Re: javascript declarations

2008-01-15 Thread b logica

On Jan 15, 2008 9:29 PM, hydra12 <[EMAIL PROTECTED]> wrote:
>
> Try this instead:
>
>  if(isset($javascript))
> {
> echo ($javascript->link('prototype.js'));
> echo ($javascript->link('scriptaculous.js'));
> }
> ?>
>
> This is the normal way to write an if statement in php.  I don't know
> if the other way will work or not.
>

That's not the problem. See:

http://www.php.net/manual/en/control-structures.alternative-syntax.php

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: javascript declarations

2008-01-15 Thread hydra12

Try this instead:

link('prototype.js'));
echo ($javascript->link('scriptaculous.js'));
}
?>

This is the normal way to write an if statement in php.  I don't know
if the other way will work or not.

hydra12

On Jan 15, 7:59 pm, "b logica" <[EMAIL PROTECTED]> wrote:
> On Jan 14, 2008 6:21 PM, top123 <[EMAIL PROTECTED]> wrote:
>
>
>
> > I'm try this way for access my javascripts file :
> > 
> >  > if(isset($javascript)):
> > echo ($javascript->link('prototype.js'));
> > echo ($javascript->link('scriptaculous.js'));
> > .
> > endif;
> > ?>
> > 
> > but I got something error to include the javascript file to my CAKE,
> > my FireBug (Mozzila) said "unterminated.something",
>
> As a guess, the "unterminated.something" suggests that you're
> missing a quote somewhere in your JS.
>
> You'd probably do better to paste the exact error.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: javascript declarations

2008-01-15 Thread b logica

On Jan 14, 2008 6:21 PM, top123 <[EMAIL PROTECTED]> wrote:
>
>
> I'm try this way for access my javascripts file :
> 
>  if(isset($javascript)):
> echo ($javascript->link('prototype.js'));
> echo ($javascript->link('scriptaculous.js'));
> .
> endif;
> ?>
> 
> but I got something error to include the javascript file to my CAKE,
> my FireBug (Mozzila) said "unterminated.something",

As a guess, the "unterminated.something" suggests that you're
missing a quote somewhere in your JS.

You'd probably do better to paste the exact error.

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: javascript declarations

2008-01-14 Thread top123


I'm try this way for access my javascripts file :

link('prototype.js'));
echo ($javascript->link('scriptaculous.js'));
.
endif;
?> 

but I got something error to include the javascript file to my CAKE,
my FireBug (Mozzila) said "unterminated.something",
can I access my .js with another way ?
please help me to fix this error
thank's
-- 
View this message in context: 
http://www.nabble.com/RE%3A-javascript-declarations-tp13863726p14795027.html
Sent from the CakePHP mailing list archive at Nabble.com.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: javascript declarations

2007-11-21 Thread ldb

G'day

Thanks very much for that reference.  I did try the fix but it did not
work in my situation. But it's a great link and is bookmarked for
future issues. Much appreciated.

I did end up trying a grueling comparison of the header tags between
two cake projects, one works, one (the current one) did not. I
couldn't visually see any differences. However, replacing it with a
copy of the header from the working project behaves. There's something
in there and I have to get on with this project but am keeping the
code aside so I can finally figure out what it is a bit later. Because
it's going to bother me.  Definitely syntax, hex or something.

Funny too, the "javascript-> link"  was generating the identical code
to just entering it using the "

Re: javascript declarations

2007-11-20 Thread bingo

hi idb

I came across this problem many times..and the only reason IE7 fails
to load javascript is when the 

Re: javascript declarations

2007-11-20 Thread Pablo Viojo
Please provide more details...javascript error, if any, generated html code,
etc


-- 
Pablo Viojo
[EMAIL PROTECTED]
http://pviojo.net

On Nov 20, 2007 4:07 PM, ldb <[EMAIL PROTECTED]> wrote:

>
> G'day
>
> This has got to be a tweak I missed, can someone please tell me what
> IE7 doesn't like about the following javascript declaration I have in
> my default.thtml header?  I've tested and the "isset($javascript)" is
> true.
>
>if(isset($javascript)) {
>echo ($javascript->link('prototype'));
>echo ($javascript->link('scriptaculous'));
>echo ($javascript->link('datepicker'));
>   }
> ?>
>
> This works fine in Firefox and Safari on Windows and of course any
> linux browser???
>
> Thanks...;-)
>
> --
> ldb
>
> >
>

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



RE: javascript declarations

2007-11-20 Thread ldb

G'day

This has got to be a tweak I missed, can someone please tell me what
IE7 doesn't like about the following javascript declaration I have in
my default.thtml header?  I've tested and the "isset($javascript)" is
true.

link('prototype'));
echo ($javascript->link('scriptaculous'));
echo ($javascript->link('datepicker'));
   }
?>

This works fine in Firefox and Safari on Windows and of course any
linux browser???

Thanks...;-)

--
ldb

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---