Albert Rosa It's not what you say it's how you say it

1Jun/100

Sorting with JQuery

No Gravatar

So tonight I am working on finalizing my dot net project http://www.synapticdigital.com.  I had a request for custom ordering, and an easy way to do so. Originally It was just a field in the cms that the user can place a number in but of course that isn't as easy to follow and use.

Enter Jquery and Sorting:

I wanted to do some drag and drop sorting but nothing custom, I wanted something simple and easy to use then I fell to this post: http://www.wil-linssen.com/musings/entry/extending-the-jquery-sortable-with-ajax-mysql/ It was great and somewhat easy to implement on the ASP.NET MVC 1.0 application.

I would totally recommend all to give it a small shot if you haven't yet.

Share
Tagged as: , No Comments
2Feb/100

Zend Forms you make my forms rock

No Gravatar

So I have been playing around with Zend Forms today and well I got to a really interesting problem I wanted to ajaxify my form and have a pop-up come up from which I can select and Item from and that item be placed within a fields in my form.

And boy did I have fun trying to figure that out. In the end I decided to 86 the possibility of using Zend_Forms completely as a setting up and rendering aspect of the forrm. but long and behold I found a good solution for both.

So I have  been using ini's to set up my form and get my validators and filters set up there for every field in the form.  On the view how ever when I added the full form to the view I was able to hook into the element I was targeting with jQuery. Yay ... but nope the elements filled a field but they weren't visible to the user.

So I went back to the board and cried because I didn't want to write all the html mark up again. so what I ended up doing was using a hybrid of both.  I used custom form elements through pure html and then I added <?= $this->form->elementToRender ?> to display the elements I wanted to show.

This ended replacing a lot of theories I had about zend form, but then again it's only been 2 hours of me just messing around. I will continue my researching but the code will live on lol....

Hope this helps and if I am wrong in my expectations please feel free to let me know,

Thanks

Share
Tagged as: , No Comments
   

Albert Rosa is using WP-Gravatar