douchong8393 2009-09-27 08:54
浏览 38
已采纳

我可以在表单上使用多少dojo filteringselect?

I have a quick question

How many dojo filteringselects can I have on a form?

I have a form with 2 filteringselects on it, both getting data from different json datastores to populate the values.

However only the first filteringselect is being populated, the other grabs no data.

I am using Zend Framework and Zend_Dojo_Form to create the form elements for this.

Many thanks.


Ok looks like my code is broken somewhere then. The element that is failing in my form is:

$location = new Zend_Dojo_Form_Element_FilteringSelect('location');
$location->setAutocomplete(true)
        ->setStoreId('countiesstore')
        ->setStoreType('dojo.data.ItemFileReadStore')
        ->setStoreParams(array('url' => $baseUrl.'/dojo/counties'))
        ->setAttrib('searchAttr', 'title')
        ->setRequired(true)
        ->removeDecorator('DtDdWrapper')
        ->removeDecorator('label')
        ->removeDecorator('HtmlTag')
        ->removeDecorator('Error');

When I go to http://localhost/dojo/counties I get the json file to read, but the element isn't populated with any data.

Any ideas?

  • 写回答

2条回答 默认 最新

  • dongpang4470 2009-09-27 09:33
    关注

    As many as you want. There's something wrong with them if they don't work

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 用verilog实现tanh函数和softplus函数
  • ¥15 求京东批量付款能替代天诚
  • ¥15 slaris 系统断电后,重新开机后一直自动重启
  • ¥15 51寻迹小车定点寻迹
  • ¥15 谁能帮我看看这拒稿理由啥意思啊阿啊
  • ¥15 关于vue2中methods使用call修改this指向的问题
  • ¥15 idea自动补全键位冲突
  • ¥15 请教一下写代码,代码好难
  • ¥15 iis10中如何阻止别人网站重定向到我的网站
  • ¥15 滑块验证码移动速度不一致问题