On Oct 18, 1:06 pm, "[email protected]" <[email protected]> wrote:
> Hi Guys,
>
> I wonder if you can help, Im trying to implement something simple im
> sure, but am getting a little stuck and cant find any up to date
> tutorials with the information i need. Is anyone able to point me in
> the right direction please?
>
> I cant find a decent tutorial (or the correct way to do it) to add
> jquery into cakephp 1.3
try removing "cakephp 1.3" from your google search query, as that's
the typical mistake.
> and use it to create a button which submits to
> a page.
Use cakephp or standard php to create a button with an id or class.
and put this in a js file and load it:
$('#theid').click(function() { stuff.goes.here; });
> So for example a button clicks and it adds an entry to the db
so you mean a form - write a form that does that without js first.
> and then outputs the number of times the button has been clicked...
I think your problem is purely from mixing unrelated things together.
Write your cake code so it works without js. AFTER that add some js to
make things as you describe - your cake code will barely if at all
change.
>
> I know its simple, but the tutorials I have found all show different
> ways to add jquery etc and im a little confused.
Please point at what you've been reading
>
> Hope someone can help.
>
> Thanks!
AD
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php