You are not logged in.
I've received a lot of feedback about jQuery integration in the Zend Framework. This little video will show you how you can quickly integrate jQuery and jQuery UI into your Zend Framework project.
Offline
Hi Jon,
Quick heads up on the "extras" folder for the Zend Framework. These are items that have been completed and approved but their Open Source License conflicts with the New BSD license of Zend Framework. jQuery is using GPL2.
The incubator folder is the location of modules which are still being developed and tested.
Thanks for another great video,
John
Offline
Hey Jon!
Thanks for the great casts, they're awesome!
One thing I would like to know though. Why won't my jQuery associated code work, if called from a layout file?
For an example, if I call ajaxLink() from a view, the appropriate jQuery include files are inserted in the <head>.
But if I call the same ajaxLink() form a layout file, it doesnt insert the files in the <head>
Thanks!
Janis
Offline
Thanks for the clarification Johnn!
@Janis,
can you provide a code sample?
Offline
//layout.phtml file
<head>
<?php echo $this->jQuery();?>
</head>
<body>
<?php echo $this->ajaxLink("Like",
"/mod/xx/like/id/",
array('update' => '#ajaxed',
'beforeSend'=>'fadeout'
));
?>
<?php echo $this->layout()->content; ?>
</body>I threw this sample layout together real quick, so it's missing some of the usual layout parts, but it suits the purpose of example.
The thing is, that $this->jQuery(), is empty, or does not return anything, if a jQuery method is called from within a layout, rather than a view.
Offline
hey
great cast
but ive run into a weird issue
that im sure has to do with my setup
i built out the datepicker as you have shown
the input text box is showing up
so i know somethings working
but nothing happens when i click on it
on further investigation
i noticed that the page source contains no link to the google jquery libs
even tho in my layout i did add:
<?php $this->jQuery(); ?>
i noticed there was some discussion about $this->jQuery() showing up
based upon if it was in layout or view
but in the cast jon had the line in the layout
as do i
i also added a line in my view JUST to make sure:
<?php echo
Offline
Hello Jon,
How would you set default settings (setDefaults) which sets default setting for all Datepicker instances?
Under Utility functions there is this code
$.datepicker.setDefaults( settings ) - Set settings for all datepicker instances.
to set defaults...
Thanks, Udo
Offline