Comments for eKini: Web Developer Blog http://blog.ekini.net PHP, MySQL, Javascript, MVC, Zend Framework, AJAX, jQuery Thu, 28 Aug 2008 00:35:38 +0000 http://wordpress.org/?v=2.5 Comment on Mixing PHP Variables with Javascript (Zend Framework and jQuery) by Peter C http://blog.ekini.net/2008/04/23/mixing-php-variables-with-javascript-zend-framework-and-jquery/#comment-7888 Peter C Sat, 23 Aug 2008 09:23:57 +0000 http://blog.ekini.net/?p=410#comment-7888 In the previous post, you have to add script tags to the echo'ed variable. This was removed by the system, sorry. In the previous post, you have to add script tags to the echo’ed variable.
This was removed by the system, sorry.

]]>
Comment on Mixing PHP Variables with Javascript (Zend Framework and jQuery) by Peter C http://blog.ekini.net/2008/04/23/mixing-php-variables-with-javascript-zend-framework-and-jquery/#comment-7887 Peter C Sat, 23 Aug 2008 09:22:02 +0000 http://blog.ekini.net/?p=410#comment-7887 Thanks for your tip! I also move lots of PHP data (HTML really) to JS by using in the : <?php echo 'var myhtml='.$HTML.';'; ?> Further in JavaScript you can use the myhtml variable. To be successful, be careful of quotes in $HTML (str_repl them with un backslash. Thanks for your tip!
I also move lots of PHP data (HTML really) to JS by using in the :
<?php
echo ‘var myhtml=’.$HTML.’;';
?>
Further in JavaScript you can use the myhtml variable.
To be successful, be careful of quotes in $HTML (str_repl them with un backslash.

]]>
Comment on Hightlight a table row on click using jQuery by Chris http://blog.ekini.net/2008/02/19/hightlight-a-table-row-on-click-using-jquery/#comment-7863 Chris Fri, 22 Aug 2008 05:29:02 +0000 http://blog.ekini.net/2008/02/19/hightlight-a-table-row-on-click-using-jquery/#comment-7863 Hey wenbert, try not using .attr('style') but rather use the built-in jQuery css functions! Your code will mess up style, if you have other style definitions in the tag... JS: <pre> $(document).ready(function(){ $("tr").click(function() { $(this).toggleClass("active"); } }); </pre> CSS: <pre> .active { /*highlight class, add a background color, change the border or font color, whatever */ border: 1px dashed red; background-color: green; } </pre> HTML: ......... ... Hey wenbert, try not using .attr(’style’) but rather use the built-in jQuery css functions!
Your code will mess up style, if you have other style definitions in the tag…

JS:

$(document).ready(function(){
  $("tr").click(function() {
    $(this).toggleClass("active");
  }
});

CSS:

.active { /*highlight class, add a background color, change the border or font color, whatever */
  border: 1px dashed red;
  background-color: green;
}

HTML:
………

]]>
Comment on Simple CAPTCHA Tutorial with Zend Framework by Wenbert http://blog.ekini.net/2007/10/29/simple-captcha-with-zend-framework/#comment-7839 Wenbert Thu, 21 Aug 2008 03:31:32 +0000 http://blog.ekini.net/2007/10/29/simple-captcha-with-zend-framework/#comment-7839 @Sudarshan, I am not sure. I have not tested this with the layouts. But I am thinking that you need to "disable" layouts for the ImagegeneratorController and its actions because the HTML tags in the Layout will be rendered with the images. Instead of outputting the image, the Layout interferes with the HTML tags, etc. because the layout is parsed first before the action (the image) is rendered. @Sudarshan, I am not sure. I have not tested this with the layouts. But I am thinking that you need to “disable” layouts for the ImagegeneratorController and its actions because the HTML tags in the Layout will be rendered with the images.

Instead of outputting the image, the Layout interferes with the HTML tags, etc. because the layout is parsed first before the action (the image) is rendered.

]]>
Comment on Simple CAPTCHA Tutorial with Zend Framework by Sudarshan http://blog.ekini.net/2007/10/29/simple-captcha-with-zend-framework/#comment-7829 Sudarshan Wed, 20 Aug 2008 13:46:43 +0000 http://blog.ekini.net/2007/10/29/simple-captcha-with-zend-framework/#comment-7829 Hello, I am using this code in a sample test I am working on. In the application the Layout is used .But when the layout is enabled the image is not generated.Without layout image is generated. What should I do? Hello,
I am using this code in a sample test I am working on.
In the application the Layout is used .But when the layout is enabled the image is not generated.Without layout image is generated.
What should I do?

]]>
Comment on A Very Quick Zend Framework VS. Code Igniter Comparison by Wenbert http://blog.ekini.net/2008/01/25/a-very-quick-zend-framework-vs-code-igniter-comparison/#comment-7819 Wenbert Wed, 20 Aug 2008 00:40:29 +0000 http://blog.ekini.net/2008/01/25/a-very-quick-zend-framework-vs-code-igniter-comparison/#comment-7819 @david, i still use code igniter :P for my quick projects. :P @david, i still use code igniter :P for my quick projects. :P

]]>
Comment on A Very Quick Zend Framework VS. Code Igniter Comparison by david http://blog.ekini.net/2008/01/25/a-very-quick-zend-framework-vs-code-igniter-comparison/#comment-7809 david Tue, 19 Aug 2008 15:49:23 +0000 http://blog.ekini.net/2008/01/25/a-very-quick-zend-framework-vs-code-igniter-comparison/#comment-7809 >> But the joy ends there - well at least for me since I love exploring the unknown. lol, that's the reason you degrade CodeIgniter ? you may try Python or Ruby IMHO ... >> But the joy ends there - well at least for me since I love exploring the unknown.

lol, that’s the reason you degrade CodeIgniter ?

you may try Python or Ruby IMHO …

]]>
Comment on Using PEAR behind a proxy server that requires authentication by michael http://blog.ekini.net/2008/03/06/using-pear-behind-a-proxy-server-that-requires-authentication/#comment-7777 michael Tue, 19 Aug 2008 00:34:54 +0000 http://blog.ekini.net/2008/03/06/using-pear-behind-a-proxy-server-that-requires-authentication/#comment-7777 Thanks, always good to type 'tool authenticated proxy' and get the answer in 10 seconds Thanks, always good to type ‘tool authenticated proxy’ and get the answer in 10 seconds

]]>
Comment on jQuery AJAX in Zend Framework by kevvy http://blog.ekini.net/2007/08/28/jquery-ajax-in-zend-framework/#comment-7708 kevvy Sun, 17 Aug 2008 04:38:47 +0000 http://blog.ekini.net/2007/08/28/jquery-ajax-in-zend-framework/#comment-7708 couldnt u you do this in your controller? it works for me: $this->_helper->json(Zend_Json::encode($array)); couldnt u you do this in your controller? it works for me:

$this->_helper->json(Zend_Json::encode($array));

]]>
Comment on Using FCKEditor with Zend Framework (File Browser Enabled) by pouderstream http://blog.ekini.net/2007/11/28/using-fckeditor-with-zend-framework-file-browser-enabled/#comment-7663 pouderstream Fri, 15 Aug 2008 15:32:56 +0000 http://blog.ekini.net/2007/11/28/using-fckeditor-with-zend-framework-file-browser-enabled/#comment-7663 Ha!It worked for me too.The only thing that I didn't found here is where exactly should I put my .htaccess with <b>RewriteEngine Off</b>.. So you should put it in JS folder. E.g. web_root/js/.htaccess Tnx,u helped me a lot ;) Ha!It worked for me too.The only thing that I didn’t found here is where exactly should I put my .htaccess with RewriteEngine Off..
So you should put it in JS folder. E.g. web_root/js/.htaccess

Tnx,u helped me a lot ;)

]]>
Comment on Symfony Framework vs. Zend Framework by Raj Anand http://blog.ekini.net/2007/12/05/symfony-framework-vs-zend-framework/#comment-7609 Raj Anand Tue, 12 Aug 2008 15:05:35 +0000 http://blog.ekini.net/2007/12/05/symfony-framework-vs-zend-framework/#comment-7609 Hi Wenbert. Thanks for your thoughts I think you certainly have a point here. We have recently adopted Zend too. Quoted your blog :) http://blog.kwiqq.com/2008/08/12/announcement-bye-bye-symfony-hello-zend/ Hi Wenbert. Thanks for your thoughts I think you certainly have a point here. We have recently adopted Zend too. Quoted your blog :)

http://blog.kwiqq.com/2008/08/12/announcement-bye-bye-symfony-hello-zend/

]]>
Comment on jQuery: Select all options in a Multiple-option Select Box by Wenbert http://blog.ekini.net/2008/02/04/jquery-select-all-options-in-a-multiple-option-select-box/#comment-7515 Wenbert Sat, 09 Aug 2008 13:50:18 +0000 http://blog.ekini.net/2008/02/04/jquery-select-all-options-in-a-multiple-option-select-box/#comment-7515 Hi Paulo, I have not tried this code yet, but it should look something like this: <pre> $(document).ready(function() { $("#id_of_submit_button").click(function() { $("#col_manager_list").each(function(){ $("#col_manager_list option").attr("selected","selected"); }); $("#id_of_form").submit; }) ; }); </pre> Hi Paulo,

I have not tried this code yet, but it should look something like this:

$(document).ready(function() {
    $("#id_of_submit_button").click(function() {
        $("#col_manager_list").each(function(){
            $("#col_manager_list option").attr("selected","selected"); });
        $("#id_of_form").submit;
    }) ;
});
]]>
Comment on jQuery: Select all options in a Multiple-option Select Box by Paulo http://blog.ekini.net/2008/02/04/jquery-select-all-options-in-a-multiple-option-select-box/#comment-7503 Paulo Fri, 08 Aug 2008 12:58:38 +0000 http://blog.ekini.net/2008/02/04/jquery-select-all-options-in-a-multiple-option-select-box/#comment-7503 Is it possible to select everything in a select multiple when the user click in the submit button? Is it possible to select everything in a select multiple when the user click in the submit button?

]]>
Comment on Twitter moving away from Ruby on Rails by Wenbert http://blog.ekini.net/2008/05/03/twitter-moving-away-from-ruby-on-rails/#comment-7485 Wenbert Thu, 07 Aug 2008 13:17:22 +0000 http://blog.ekini.net/?p=415#comment-7485 @jong i have nothing against RoR :P it's just that this: http://www.identi.ca - a twitter clone feels faster than the original twitter. this post was from March :P @jong i have nothing against RoR :P it’s just that this: http://www.identi.ca - a twitter clone feels faster than the original twitter. this post was from March :P

]]>
Comment on Twitter moving away from Ruby on Rails by jong http://blog.ekini.net/2008/05/03/twitter-moving-away-from-ruby-on-rails/#comment-7484 jong Thu, 07 Aug 2008 13:13:07 +0000 http://blog.ekini.net/?p=415#comment-7484 whew....!!.. how can you comment on RoR when you haven't tested it.... the issue before was connecting RoR with Oracle, is a problem that was 2 years ago.. but now... I am smiling... you're using old programming langguge dude... whew….!!.. how can you comment on RoR when you haven’t tested it…. the issue before was connecting RoR with Oracle, is a problem that was 2 years ago.. but now… I am smiling… you’re using old programming langguge dude…

]]>