<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Komentarze do wpisu: Symfony and jQuery: sfWidgetFormJQueryMultiSelect ver 0.1</title>
	<atom:link href="http://blog.adryjanek.eu/2010/02/17/symfony-and-jquery-sfwidgetformjquerymultiselect-ver-01/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.adryjanek.eu/2010/02/17/symfony-and-jquery-sfwidgetformjquerymultiselect-ver-01/</link>
	<description>Kamil Adryjanek - projektowanie aplikacji internetowych</description>
	<pubDate>Tue, 07 Sep 2010 17:31:49 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>Przez: Leda Marinaro</title>
		<link>http://blog.adryjanek.eu/2010/02/17/symfony-and-jquery-sfwidgetformjquerymultiselect-ver-01/#comment-19083</link>
		<dc:creator>Leda Marinaro</dc:creator>
		<pubDate>Tue, 29 Jun 2010 01:24:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adryjanek.eu/?p=70#comment-19083</guid>
		<description>Gday, extremely high quality online site. Cheers for taking the time to come up with so many useful blogposts :-)</description>
		<content:encoded><![CDATA[<p>Gday, extremely high quality online site. Cheers for taking the time to come up with so many useful blogposts <img src='http://blog.adryjanek.eu/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>Przez: Stefano</title>
		<link>http://blog.adryjanek.eu/2010/02/17/symfony-and-jquery-sfwidgetformjquerymultiselect-ver-01/#comment-15600</link>
		<dc:creator>Stefano</dc:creator>
		<pubDate>Wed, 14 Apr 2010 10:19:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adryjanek.eu/?p=70#comment-15600</guid>
		<description>Hi Kamil, i've resolve. 
I've some error in javascript bu it work.

I've changed the jquery library with your suggest and i copy a part of css ui in my lyout. Where i found url in css i replace it with php function url_for to replace a correct image for css.

I'v commented in your widget this line
&lt;b&gt;
$this-&#62;setOption(’multiple’, true);
//$this-&#62;setOption(’expanded’, true);
&lt;/b&gt;

and in jquery.multiselect.js i've changed in line 236 this
&lt;b&gt;
...
					width: width+'px'
				}).show();
&lt;/b&gt;				
with:

&lt;b&gt;
...
					width: width+'px',
					display : 'block'
				}).html().show();
&lt;/b&gt;
and here i've a error in firebug
&lt;b&gt;
$options.css({position: "absolute", top: top + "px", left: offset.left + "px", width: width + "px", display: "block"}).html().show is not a function
&lt;/b&gt;

For me is not a problem, because it work!! :)

thanks for your help!! really!</description>
		<content:encoded><![CDATA[<p>Hi Kamil, i&#8217;ve resolve.<br />
I&#8217;ve some error in javascript bu it work.</p>
<p>I&#8217;ve changed the jquery library with your suggest and i copy a part of css ui in my lyout. Where i found url in css i replace it with php function url_for to replace a correct image for css.</p>
<p>I&#8217;v commented in your widget this line<br />
<b><br />
$this-&gt;setOption(’multiple’, true);<br />
//$this-&gt;setOption(’expanded’, true);<br />
</b></p>
<p>and in jquery.multiselect.js i&#8217;ve changed in line 236 this<br />
<b><br />
&#8230;<br />
					width: width+&#8217;px&#8217;<br />
				}).show();<br />
</b><br />
with:</p>
<p><b><br />
&#8230;<br />
					width: width+&#8217;px&#8217;,<br />
					display : &#8216;block&#8217;<br />
				}).html().show();<br />
</b><br />
and here i&#8217;ve a error in firebug<br />
<b><br />
$options.css({position: &#8220;absolute&#8221;, top: top + &#8220;px&#8221;, left: offset.left + &#8220;px&#8221;, width: width + &#8220;px&#8221;, display: &#8220;block&#8221;}).html().show is not a function<br />
</b></p>
<p>For me is not a problem, because it work!! <img src='http://blog.adryjanek.eu/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
thanks for your help!! really!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Przez: Kamil Adryjanek</title>
		<link>http://blog.adryjanek.eu/2010/02/17/symfony-and-jquery-sfwidgetformjquerymultiselect-ver-01/#comment-15590</link>
		<dc:creator>Kamil Adryjanek</dc:creator>
		<pubDate>Wed, 14 Apr 2010 05:35:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adryjanek.eu/?p=70#comment-15590</guid>
		<description>"H is undefined"
Your jQuery version is out of date. As i wrote:
"Include into your application neccessary JavaScripts (&lt;b&gt;jQuery 1.4+ and jQuery UI 1.8+ required&lt;/b&gt;) "
Also youu cannot use my widget class as a renderer. 
In your case you need stg like sfWidgetFormDoctrineJQueryMultiSelect.
But in this case you should:
‘author_list’ =&gt; new sfWidgetFormJQueryMultiSelect(array(’choices' =&gt; $mesAuthorChoices))</description>
		<content:encoded><![CDATA[<p>&#8220;H is undefined&#8221;<br />
Your jQuery version is out of date. As i wrote:<br />
&#8220;Include into your application neccessary JavaScripts (<b>jQuery 1.4+ and jQuery UI 1.8+ required</b>) &#8221;<br />
Also youu cannot use my widget class as a renderer.<br />
In your case you need stg like sfWidgetFormDoctrineJQueryMultiSelect.<br />
But in this case you should:<br />
‘author_list’ => new sfWidgetFormJQueryMultiSelect(array(’choices&#8217; => $mesAuthorChoices))</p>
]]></content:encoded>
	</item>
	<item>
		<title>Przez: Stefano</title>
		<link>http://blog.adryjanek.eu/2010/02/17/symfony-and-jquery-sfwidgetformjquerymultiselect-ver-01/#comment-15577</link>
		<dc:creator>Stefano</dc:creator>
		<pubDate>Tue, 13 Apr 2010 21:32:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adryjanek.eu/?p=70#comment-15577</guid>
		<description>and this is my js and css

  stylesheets:    [main.css, jquery-ui-1.7.2.custom.css, jquery.fancybox-1.3.1.css, jquery.jgrowl.css, jquery.multiselect.css]

javascripts:    [prototype.js, jquery-1.3.2.min.js, jquery-ui-1.7.2.custom.min.js, jquery.fancybox-1.3.1.js, jquery.form.js, jquery.validate.js, jquery.multiselect.min.js, DropDownMenuX]</description>
		<content:encoded><![CDATA[<p>and this is my js and css</p>
<p>  stylesheets:    [main.css, jquery-ui-1.7.2.custom.css, jquery.fancybox-1.3.1.css, jquery.jgrowl.css, jquery.multiselect.css]</p>
<p>javascripts:    [prototype.js, jquery-1.3.2.min.js, jquery-ui-1.7.2.custom.min.js, jquery.fancybox-1.3.1.js, jquery.form.js, jquery.validate.js, jquery.multiselect.min.js, DropDownMenuX]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Przez: Stefano</title>
		<link>http://blog.adryjanek.eu/2010/02/17/symfony-and-jquery-sfwidgetformjquerymultiselect-ver-01/#comment-15576</link>
		<dc:creator>Stefano</dc:creator>
		<pubDate>Tue, 13 Apr 2010 21:27:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adryjanek.eu/?p=70#comment-15576</guid>
		<description>thanks...realy!! I'm archaelogyst and not web programmer :)

class MesBookForm extends BaseMesBookForm
{
  public function configure()
  {
	parent::setup();
	
    $this - &#62; widgetSchema['MesUsersId'] = new sfWidgetFormInputHidden(); 
    
  	unset(
      $this['created_at'], $this['updated_at'],
      $this['is_public'], $this['is_actived'], 
      $this['mes_books_list']
    );
   
  	$this-&#62;widgetSchema-&#62;setLabels(array(
	  'name'    =&#62; 'Title',
	  'note' =&#62; 'Remark',
      'year' =&#62; 'Year',
      'letter' =&#62; 'Letter',
      'pages' =&#62; 'Pages',
      'place_of_edition' =&#62; 'Place of Edition',
      'publisher' =&#62; 'Publisher',
      'editors' =&#62; 'Editors',
      'MesUsersId' =&#62; 'Mes User',
      'author_list' =&#62; 'Authors'
	));
	
	$this-&#62;widgetSchema['author_list']-&#62;setOption('renderer_class', 'sfWidgetFormJQueryMultiSelect');
  }
}


  public function setup()
  {
    $this-&#62;setWidgets(array(
      'id'               =&#62; new sfWidgetFormInputHidden(),
      'name'             =&#62; new sfWidgetFormInputText(),

...

      'is_public'        =&#62; new sfWidgetFormInputCheckbox(),

      'is_actived'       =&#62; new sfWidgetFormInputCheckbox(),

      'MesUsersId'       =&#62; new sfWidgetFormDoctrineChoice(array('model' =&#62; $this-&#62;getRelatedModelName('sfGuardUser'), 'add_empty' =&#62; false)),

      'created_at'       =&#62; new sfWidgetFormDateTime(),

      'updated_at'       =&#62; new sfWidgetFormDateTime(),

      'author_list'      =&#62; new sfWidgetFormDoctrineChoice(array('multiple' =&#62; true, 'model' =&#62; 'MesAuthor')),

      'mes_books_list'   =&#62; new sfWidgetFormDoctrineChoice(array('multiple' =&#62; true, 'model' =&#62; 'MesCities')),
    ));

    $this-&#62;setValidators(array(
      'id'               =&#62; new sfValidatorDoctrineChoice(array('model' =&#62; $this-&#62;getModelName(), 'column' =&#62; 'id', 'required' =&#62; false)),

...

      'is_public'        =&#62; new sfValidatorBoolean(array('required' =&#62; false)),
      'is_actived'       =&#62; new sfValidatorBoolean(array('required' =&#62; false)),
      'MesUsersId'       =&#62; new sfValidatorDoctrineChoice(array('model' =&#62; $this-&#62;getRelatedModelName('sfGuardUser'))),
      'created_at'       =&#62; new sfValidatorDateTime(),
      'updated_at'       =&#62; new sfValidatorDateTime(),
      'author_list'      =&#62; new sfValidatorDoctrineChoice(array('multiple' =&#62; true, 'model' =&#62; 'MesAuthor', 'required' =&#62; false)),
      'mes_books_list'   =&#62; new sfValidatorDoctrineChoice(array('multiple' =&#62; true, 'model' =&#62; 'MesCities', 'required' =&#62; false)),
    ));

...

and i have comment this line in your widget to obtain a select box with multiple, about exempla in erichynds's page

$this-&#62;setOption('multiple', true);
//$this-&#62;setOption('expanded', true);

but now i received from firebug this error:
H is undefined

I suppose is from my bad configuration in jquery.. any idea?

thank to much! and so sorry for my english..</description>
		<content:encoded><![CDATA[<p>thanks&#8230;realy!! I&#8217;m archaelogyst and not web programmer <img src='http://blog.adryjanek.eu/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
class MesBookForm extends BaseMesBookForm<br />
{<br />
  public function configure()<br />
  {<br />
	parent::setup();</p>
<p>    $this - &gt; widgetSchema['MesUsersId'] = new sfWidgetFormInputHidden(); </p>
<p>  	unset(<br />
      $this['created_at'], $this['updated_at'],<br />
      $this['is_public'], $this['is_actived'],<br />
      $this['mes_books_list']<br />
    );</p>
<p>  	$this-&gt;widgetSchema-&gt;setLabels(array(<br />
	  &#8216;name&#8217;    =&gt; &#8216;Title&#8217;,<br />
	  &#8216;note&#8217; =&gt; &#8216;Remark&#8217;,<br />
      &#8216;year&#8217; =&gt; &#8216;Year&#8217;,<br />
      &#8216;letter&#8217; =&gt; &#8216;Letter&#8217;,<br />
      &#8216;pages&#8217; =&gt; &#8216;Pages&#8217;,<br />
      &#8216;place_of_edition&#8217; =&gt; &#8216;Place of Edition&#8217;,<br />
      &#8216;publisher&#8217; =&gt; &#8216;Publisher&#8217;,<br />
      &#8216;editors&#8217; =&gt; &#8216;Editors&#8217;,<br />
      &#8216;MesUsersId&#8217; =&gt; &#8216;Mes User&#8217;,<br />
      &#8216;author_list&#8217; =&gt; &#8216;Authors&#8217;<br />
	));</p>
<p>	$this-&gt;widgetSchema['author_list']-&gt;setOption(&#8217;renderer_class&#8217;, &#8217;sfWidgetFormJQueryMultiSelect&#8217;);<br />
  }<br />
}</p>
<p>  public function setup()<br />
  {<br />
    $this-&gt;setWidgets(array(<br />
      &#8216;id&#8217;               =&gt; new sfWidgetFormInputHidden(),<br />
      &#8216;name&#8217;             =&gt; new sfWidgetFormInputText(),</p>
<p>&#8230;</p>
<p>      &#8216;is_public&#8217;        =&gt; new sfWidgetFormInputCheckbox(),</p>
<p>      &#8216;is_actived&#8217;       =&gt; new sfWidgetFormInputCheckbox(),</p>
<p>      &#8216;MesUsersId&#8217;       =&gt; new sfWidgetFormDoctrineChoice(array(&#8217;model&#8217; =&gt; $this-&gt;getRelatedModelName(&#8217;sfGuardUser&#8217;), &#8216;add_empty&#8217; =&gt; false)),</p>
<p>      &#8216;created_at&#8217;       =&gt; new sfWidgetFormDateTime(),</p>
<p>      &#8216;updated_at&#8217;       =&gt; new sfWidgetFormDateTime(),</p>
<p>      &#8216;author_list&#8217;      =&gt; new sfWidgetFormDoctrineChoice(array(&#8217;multiple&#8217; =&gt; true, &#8216;model&#8217; =&gt; &#8216;MesAuthor&#8217;)),</p>
<p>      &#8216;mes_books_list&#8217;   =&gt; new sfWidgetFormDoctrineChoice(array(&#8217;multiple&#8217; =&gt; true, &#8216;model&#8217; =&gt; &#8216;MesCities&#8217;)),<br />
    ));</p>
<p>    $this-&gt;setValidators(array(<br />
      &#8216;id&#8217;               =&gt; new sfValidatorDoctrineChoice(array(&#8217;model&#8217; =&gt; $this-&gt;getModelName(), &#8216;column&#8217; =&gt; &#8216;id&#8217;, &#8216;required&#8217; =&gt; false)),</p>
<p>&#8230;</p>
<p>      &#8216;is_public&#8217;        =&gt; new sfValidatorBoolean(array(&#8217;required&#8217; =&gt; false)),<br />
      &#8216;is_actived&#8217;       =&gt; new sfValidatorBoolean(array(&#8217;required&#8217; =&gt; false)),<br />
      &#8216;MesUsersId&#8217;       =&gt; new sfValidatorDoctrineChoice(array(&#8217;model&#8217; =&gt; $this-&gt;getRelatedModelName(&#8217;sfGuardUser&#8217;))),<br />
      &#8216;created_at&#8217;       =&gt; new sfValidatorDateTime(),<br />
      &#8216;updated_at&#8217;       =&gt; new sfValidatorDateTime(),<br />
      &#8216;author_list&#8217;      =&gt; new sfValidatorDoctrineChoice(array(&#8217;multiple&#8217; =&gt; true, &#8216;model&#8217; =&gt; &#8216;MesAuthor&#8217;, &#8216;required&#8217; =&gt; false)),<br />
      &#8216;mes_books_list&#8217;   =&gt; new sfValidatorDoctrineChoice(array(&#8217;multiple&#8217; =&gt; true, &#8216;model&#8217; =&gt; &#8216;MesCities&#8217;, &#8216;required&#8217; =&gt; false)),<br />
    ));</p>
<p>&#8230;</p>
<p>and i have comment this line in your widget to obtain a select box with multiple, about exempla in erichynds&#8217;s page</p>
<p>$this-&gt;setOption(&#8217;multiple&#8217;, true);<br />
//$this-&gt;setOption(&#8217;expanded&#8217;, true);</p>
<p>but now i received from firebug this error:<br />
H is undefined</p>
<p>I suppose is from my bad configuration in jquery.. any idea?</p>
<p>thank to much! and so sorry for my english..</p>
]]></content:encoded>
	</item>
	<item>
		<title>Przez: Kamil Adryjanek</title>
		<link>http://blog.adryjanek.eu/2010/02/17/symfony-and-jquery-sfwidgetformjquerymultiselect-ver-01/#comment-15572</link>
		<dc:creator>Kamil Adryjanek</dc:creator>
		<pubDate>Tue, 13 Apr 2010 19:22:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adryjanek.eu/?p=70#comment-15572</guid>
		<description>Send me your code :) i will do my best to fix it.</description>
		<content:encoded><![CDATA[<p>Send me your code <img src='http://blog.adryjanek.eu/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> i will do my best to fix it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Przez: Stefano</title>
		<link>http://blog.adryjanek.eu/2010/02/17/symfony-and-jquery-sfwidgetformjquerymultiselect-ver-01/#comment-15559</link>
		<dc:creator>Stefano</dc:creator>
		<pubDate>Tue, 13 Apr 2010 14:19:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adryjanek.eu/?p=70#comment-15559</guid>
		<description>my form render th UL tag list and not SELECT tag, why?

i have added all header content..but doesn't work!!

thanks for all!!</description>
		<content:encoded><![CDATA[<p>my form render th UL tag list and not SELECT tag, why?</p>
<p>i have added all header content..but doesn&#8217;t work!!</p>
<p>thanks for all!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Przez: Kamil Adryjanek</title>
		<link>http://blog.adryjanek.eu/2010/02/17/symfony-and-jquery-sfwidgetformjquerymultiselect-ver-01/#comment-15558</link>
		<dc:creator>Kamil Adryjanek</dc:creator>
		<pubDate>Tue, 13 Apr 2010 12:36:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adryjanek.eu/?p=70#comment-15558</guid>
		<description>Did you download and include stylesheets and JavaScripts  (jquery.js, jquery-ui.js, jquery.multiselect.js, ui-lightness/jquery-ui-1.7.2.custom.css, jquery.multiselect.css)?</description>
		<content:encoded><![CDATA[<p>Did you download and include stylesheets and JavaScripts  (jquery.js, jquery-ui.js, jquery.multiselect.js, ui-lightness/jquery-ui-1.7.2.custom.css, jquery.multiselect.css)?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Przez: Stefano</title>
		<link>http://blog.adryjanek.eu/2010/02/17/symfony-and-jquery-sfwidgetformjquerymultiselect-ver-01/#comment-15556</link>
		<dc:creator>Stefano</dc:creator>
		<pubDate>Tue, 13 Apr 2010 12:26:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adryjanek.eu/?p=70#comment-15556</guid>
		<description>i've try so with your example but the problem is the same!!</description>
		<content:encoded><![CDATA[<p>i&#8217;ve try so with your example but the problem is the same!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Przez: Stefano</title>
		<link>http://blog.adryjanek.eu/2010/02/17/symfony-and-jquery-sfwidgetformjquerymultiselect-ver-01/#comment-15555</link>
		<dc:creator>Stefano</dc:creator>
		<pubDate>Tue, 13 Apr 2010 12:25:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adryjanek.eu/?p=70#comment-15555</guid>
		<description>Sorry but your widget not work form me. I use symfony 1.4 but i have a problem because the widget nt rendered my select input box.

I have try avery combination:

$userChoices = array('John', 'Michael', 'Tom', 'Peter');
	sfWidgetFormJQueryMultiSelect(array('choices'   =&#62; $userChoices));

or 
	$this-&#62;widgetSchema['author_list']-&#62;setOption('renderer_class', 'sfWidgetFormJQueryMultiSelect');

I have returned every time the same list of standard input of symfony

Sorry for my english. i'm newbie in symfony. and i like your application!

thanks in advance!</description>
		<content:encoded><![CDATA[<p>Sorry but your widget not work form me. I use symfony 1.4 but i have a problem because the widget nt rendered my select input box.</p>
<p>I have try avery combination:</p>
<p>$userChoices = array(&#8217;John&#8217;, &#8216;Michael&#8217;, &#8216;Tom&#8217;, &#8216;Peter&#8217;);<br />
	sfWidgetFormJQueryMultiSelect(array(&#8217;choices&#8217;   =&gt; $userChoices));</p>
<p>or<br />
	$this-&gt;widgetSchema['author_list']-&gt;setOption(&#8217;renderer_class&#8217;, &#8217;sfWidgetFormJQueryMultiSelect&#8217;);</p>
<p>I have returned every time the same list of standard input of symfony</p>
<p>Sorry for my english. i&#8217;m newbie in symfony. and i like your application!</p>
<p>thanks in advance!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
