<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.1.3" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: why is dijit date picker background bg color transparent?</title>
	<link>http://www.eatmybusiness.com/food/2008/12/22/setting-the-background-color-of-dojo-datepicker-zend/85/</link>
	<description>Web Publishing Techniques</description>
	<pubDate>Sat, 19 May 2012 12:38:46 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.1.3</generator>

	<item>
		<title>By: Krish</title>
		<link>http://www.eatmybusiness.com/food/2008/12/22/setting-the-background-color-of-dojo-datepicker-zend/85/#comment-11519</link>
		<author>Krish</author>
		<pubDate>Tue, 07 Apr 2009 09:43:07 +0000</pubDate>
		<guid>http://www.eatmybusiness.com/food/2008/12/22/setting-the-background-color-of-dojo-datepicker-zend/85/#comment-11519</guid>
					<description>Hey Johnnie,

Thanks for this tip......it helped me a lot....

i'm new to zend framework</description>
		<content:encoded><![CDATA[<p>Hey Johnnie,</p>
<p>Thanks for this tip&#8230;&#8230;it helped me a lot&#8230;.</p>
<p>i&#8217;m new to zend framework</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Gaston</title>
		<link>http://www.eatmybusiness.com/food/2008/12/22/setting-the-background-color-of-dojo-datepicker-zend/85/#comment-17898</link>
		<author>Gaston</author>
		<pubDate>Tue, 26 Jan 2010 21:46:08 +0000</pubDate>
		<guid>http://www.eatmybusiness.com/food/2008/12/22/setting-the-background-color-of-dojo-datepicker-zend/85/#comment-17898</guid>
					<description>Hi I am having trouble undertanding some of this post, I dont know if you can help me?  on this part, how are you doing this? 

if ($Z_view_obj-&#62;dojo()-&#62;isEnabled()){....

thank you</description>
		<content:encoded><![CDATA[<p>Hi I am having trouble undertanding some of this post, I dont know if you can help me?  on this part, how are you doing this? </p>
<p>if ($Z_view_obj-&gt;dojo()-&gt;isEnabled()){&#8230;.</p>
<p>thank you</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Gaston</title>
		<link>http://www.eatmybusiness.com/food/2008/12/22/setting-the-background-color-of-dojo-datepicker-zend/85/#comment-17899</link>
		<author>Gaston</author>
		<pubDate>Tue, 26 Jan 2010 22:15:26 +0000</pubDate>
		<guid>http://www.eatmybusiness.com/food/2008/12/22/setting-the-background-color-of-dojo-datepicker-zend/85/#comment-17899</guid>
					<description>Ok I think I need to be more clear on my questions, I want to change the background color of the datepicker because the numbers are white like the background, this is what i have on my coding.

1.- On my layout: 

     dojo(); ?&#62;



2. On my view:
dojo()-&#62;addStylesheetModule('dijit.themes.tundra');?&#62;

3. On my Form:
$toDate = new Zend_Dojo_Form_Element_DateTextBox('ToDate');
$toDate-&#62;setRequired(true);		
$toDate-&#62;setLabel('To: ');

4. Bootstrap:
// Set the Dojo Helper
$view = Zend_Layout::getMvcInstance()-&#62;getView();
Zend_Dojo::enableView($view);

and thats it, I am new at dojo and zend in general.

thanks in advance</description>
		<content:encoded><![CDATA[<p>Ok I think I need to be more clear on my questions, I want to change the background color of the datepicker because the numbers are white like the background, this is what i have on my coding.</p>
<p>1.- On my layout: </p>
<p>     dojo(); ?&gt;</p>
<p>2. On my view:<br />
dojo()-&gt;addStylesheetModule(&#8217;dijit.themes.tundra&#8217;);?&gt;</p>
<p>3. On my Form:<br />
$toDate = new Zend_Dojo_Form_Element_DateTextBox(&#8217;ToDate&#8217;);<br />
$toDate-&gt;setRequired(true);<br />
$toDate-&gt;setLabel(&#8217;To: &#8216;);</p>
<p>4. Bootstrap:<br />
// Set the Dojo Helper<br />
$view = Zend_Layout::getMvcInstance()-&gt;getView();<br />
Zend_Dojo::enableView($view);</p>
<p>and thats it, I am new at dojo and zend in general.</p>
<p>thanks in advance</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: John</title>
		<link>http://www.eatmybusiness.com/food/2008/12/22/setting-the-background-color-of-dojo-datepicker-zend/85/#comment-17900</link>
		<author>John</author>
		<pubDate>Thu, 28 Jan 2010 12:26:45 +0000</pubDate>
		<guid>http://www.eatmybusiness.com/food/2008/12/22/setting-the-background-color-of-dojo-datepicker-zend/85/#comment-17900</guid>
					<description>@ Gaston
This blog post was written a while a go. So i do not know if things have changed. 

To answer your question about the "isEnabled()" bit.... look at the Zend docs example of calling the "isEnabled()" method on the Dojo view helper. I was using Zend View outside of the MVC framework, which might explian my weird Zend View object variable name ($Z_view_obj):

http://framework.zend.com/manual/en/zend.dojo.view.html 
(To jump to it on the page tell your broswer to search (i.e CTRL+F) for the string: "$this-&gt;dojo()-&gt;isEnabled" )

But, for me, the key to my solution was something in the HTML body. I.e In your layouts/layout.phtml (or whatever script outputs the html body tag ) &lt;strong&gt;you need to remember to add the 'dojo theme' to the 'class' attribute of the 'body' tag in your html&lt;/strong&gt;. Its a css thang.

For example, if you want to use the 'tundra' theme, add the class attribute like this:

&#60;head&#62;
...where you add dojo scripts/css 
&#60;/head&#62;
.....
&#60;html&#62;
&#60;body class=&#34;tundra&#34;&#62;
....
&#60;h1&#62;My Nice page&#60;/h1&#62;
...
rest of html content
...

------------

Its happens cos
 * your head is concentrating on learning Zend Form - which is a feat in itself
 * plus you are getting your head around Zend MVC - which is a feat in itself
 * plus you are getting your head around Dojo  - which is a feat in itself
 * plus your mind is thinking 'backend' of server
 * then you head for the CSS scripts and hack away
 * then you come here ;o)

BUT - After all that - the solution is a common-or-garden body tag that disrupts the whole thing. I love it.

http://www.urbandictionary.com/define.php?term=forgot%20to%20hook%20up%20the%20doll


</description>
		<content:encoded><![CDATA[<p>@ Gaston<br />
This blog post was written a while a go. So i do not know if things have changed. </p>
<p>To answer your question about the &#8220;isEnabled()&#8221; bit&#8230;. look at the Zend docs example of calling the &#8220;isEnabled()&#8221; method on the Dojo view helper. I was using Zend View outside of the MVC framework, which might explian my weird Zend View object variable name ($Z_view_obj):</p>
<p><a href="http://framework.zend.com/manual/en/zend.dojo.view.html" rel="nofollow">http://framework.zend.com/manual/en/zend.dojo.view.html</a><br />
(To jump to it on the page tell your broswer to search (i.e CTRL+F) for the string: &#8220;$this->dojo()->isEnabled&#8221; )</p>
<p>But, for me, the key to my solution was something in the HTML body. I.e In your layouts/layout.phtml (or whatever script outputs the html body tag ) <strong>you need to remember to add the &#8216;dojo theme&#8217; to the &#8216;class&#8217; attribute of the &#8216;body&#8217; tag in your html</strong>. Its a css thang.</p>
<p>For example, if you want to use the &#8216;tundra&#8217; theme, add the class attribute like this:</p>
<p>&lt;head&gt;<br />
&#8230;where you add dojo scripts/css<br />
&lt;/head&gt;<br />
&#8230;..<br />
&lt;html&gt;<br />
&lt;body class=&quot;tundra&quot;&gt;<br />
&#8230;.<br />
&lt;h1&gt;My Nice page&lt;/h1&gt;<br />
&#8230;<br />
rest of html content<br />
&#8230;</p>
<p>&#8212;&#8212;&#8212;&#8212;</p>
<p>Its happens cos<br />
 * your head is concentrating on learning Zend Form - which is a feat in itself<br />
 * plus you are getting your head around Zend MVC - which is a feat in itself<br />
 * plus you are getting your head around Dojo  - which is a feat in itself<br />
 * plus your mind is thinking &#8216;backend&#8217; of server<br />
 * then you head for the CSS scripts and hack away<br />
 * then you come here ;o)</p>
<p>BUT - After all that - the solution is a common-or-garden body tag that disrupts the whole thing. I love it.</p>
<p><a href="http://www.urbandictionary.com/define.php?term=forgot%20to%20hook%20up%20the%20doll" rel="nofollow">http://www.urbandictionary.com/define.php?term=forgot%20to%20hook%20up%20the%20doll</a></p>
]]></content:encoded>
				</item>
</channel>
</rss>

