Zend Form can't load JQuery - zend-framework

I followed through this tutorial
http://zendgeek.blogspot.com/2009/07/zend-framework-and-jquery-jquery-date.html
when I done I found Only 2 text boxes are displayed. Datepicker is not loaded. so, not the problem with class library inclusion rather it may be something else that I can't figure out.

I skimmed that tutorial, it didn't seem very indepth. Don't give up. Just like most things, getting started is the hardest part. I would suggest you follow the tutorials on Zend Casts. Here is one about getting started with ZF and Jquery: http://www.zendcasts.com/working-with-zendx_jquery/2010/07/

Related

Show List of Products from sql in between blog content in codeigniter using tinymce

i am working on a blog system for my travel project on codeigniter. i am using tinymce for entering blog content.
one thing, i want is - display a list of travel packages from sql results in between those content.
how to achieve this using codeigniter and tinymce.
i have tried searching for threads and forums, but couldn't find anything related to it.
i hope someone can help me in this here.
i hope this screenshot can help in understand that what i want.
Reference to the question

joomla accordion module with sortable headings

I have an issue with Joomla I've been battling with for a while now and I can't seem to see the answer. So I was hoping maybe someone out there might be able to help. First post so go easy on me.
I'm in the process of making a portfolio website for myself and can't seem to get my head around the SP_accordion module I'm using. I have it working and everything displaying everything it should and how it should.
I need, or should I say I also would like it to have a "header" with 3 columns that only effect the un-expanded accordion and are "sortable".
A perfect example of what I would like can be found #Jkarch.at
I have found an abundence of code for accordions and plenty of modules for joomla but I can't for the life of me find any help to create a 3 column accordion module for joomla 3. I'm not the most brilliant at web based applications or coding but I believe I can and usually do figure the most out myself but this is kicking my A*S.
So if anyone has a spare minute or to help it would be greatly appreciated...
Thanks again...
Chris.

Zend Framework contextually load stylesheets

Is it possible in Zend Framework to contextually autoload a stylesheet based on a unique identifier?
I'd like to load css based on the layout and the action name by first checking if the stylesheet exists then loading it.
Is that possible?
Yes it is possible and surprisingly simple to implement. I have just started trying this for myself in a small project I am working on.
See Andy Baird's blog on this, which also includes the code you need to get you started. He continues it in a second blog which takes the concept slightly further.
He uses the same technique for both CSS and javascript files, so you may want to try it with both too.

How to integrate TinyMce with Zend Framework with Gzipping and Image managers?

I have done some research on this subject, and found out, that Gzipping and adding a new image manager through a plugin would not be as difficult. The only question is the Image manager.
I have seen some quite good ones, like the Image Manager for JCE, which is a Joomla wysiwyg editor, but none for TinyMce for itself.
Could someone show me a good image plugin?
P.S. SwampyFoot is out of question, as it's download links are broken, and PhP Letters Ajax image manager is quite hard to install.
Thanks!
EDIT: I just found Mad File Manager, which seems to work excelently except for a little glitch: An image can be uploaded, but cant be selected... Thats sad...
EDIT2: I've found KCFinder, which seems to be very promising, but I just can't get it to work properly. Somehow, the configuration is quite difficult.
Ok, So I have been able to answer my question myself. So here it goes:
Set up TinyMce with Sozfo solution. The important ting to remember here is, instead of extending your Forms from Zend_Form, you have to extend them from Sozfo_Form. As to the defining your own extendable controller, it didnt work for me, So I put the path defining helpers in my Bootstrap. And if the whole ordeal works, there is a textarea that should have TinyMCE controls, but there aren't any, try checking the comments at Sozfo, or checking if the page is cached or not. It took me a good hour, to find out, that the only reason why no JavaScript was pushed to the header was because of a very persistent cache.
Set up KCFinder. The main problems I faced here were due to wrong paths to corresponding files. When the paths were correct, the only thing to remember is to enable it. There is a boolean to change in configuration file.
The last issue was adding the KCFinder to my Tinymce, and what I ended up doing was, I added the function needed to call KCFinder in TinyMCE.php View helper. ( Due to some glitch I seem to be unable to post the code here). Once you have set up your paths correctly, everything should work splendidly.
All in all, it took me about 3 days to figure this whole thing out. Talk about steep learning curve...
Have you looked at MCImageManager - its not free but its an option if you're happy to pay for it
Not really a suggest as you've got it but swampy foot download does work
As you're already using zend framework, why not use dojo, set up the dojo form and call the editor element and integrate this http://docs.dojocampus.org/dijit/_editor/plugins/LinkDialog into it?

Google Web Toolkit Tutorial Question

I searched high and low and cannot a button tag in any of the javaScript that is generated that referred to step 7 of the tutorial. I must be looking in the wrong places, or I'm generating the code incorrectly. I generated the code in the three different levels of detail. Can anyone point me in the right direction who's completed the tutorial or is more experience with the GWT? Looked in every file inside of the war directory. Of course I could have missed one! :-/ Would definitely like to be able to find this stuff on my own when I begin development.
Here's the link:
http://code.google.com/webtoolkit/doc/latest/tutorial/style.html
Look under 3. Associating style rules with GWT-generated HTML elements. What I'm specifically trying to find is the tag.
<button class="gwt-Button" tabindex="0" type="button">Add</button>
Of course you don't have to do the tutorial any project you've worked on should have similiar tags to be found I just can't find the file containing them...
I did find some stuff containing gwt-Button class name on line 3078 of one of those "unique" file names, but the way the author stated it made me think this process would be "easier". This was generated using the pretty compile.
function $Button(this$static, html){
$ButtonBase(this$static, ($clinit_21() , $doc).createElement("<BUTTON type='button'><\/BUTTON>"));
this$static.element['className'] = 'gwt-Button';
this$static.element.innerHTML = html || '';
return this$static;
}
This looks like it could be used to generate the tag. Is this a combination of some javaScript and some javaScript library code like JQuery or Prototype?
Thanks
The best way I know to see the javascript generated by GWT is to use the Brain.jar DOM Viewer http://www.brainjar.com/dhtml/domviewer/
It's not the most user friendly, but if you click around, you can generally find the InnerHTML of some element that corresponds to the whole web page, and then search for "button" or the relevant keyword.