PDA

Просмотр полной версии : Всплывающее окно для форма Поиска


css_ufa
25.08.2010, 16:33
Всем привет. Есть форма поиска:
<form id="searchform" method="post" action="">
<fieldset>
<input type="hidden" value="0" name="tx_indexedsearch[_sections]" />
<input type="hidden" value="_" name="tx_indexedsearch[_freeIndexUid]" />
<input type="hidden" value="0" name="tx_indexedsearch[pointer]" />
<input type="hidden" value="" name="tx_indexedsearch[ext]" />
<input type="hidden" value="1" name="tx_indexedsearch[type]" />
<input type="hidden" value="0" name="tx_indexedsearch[defOp]" />
<input type="hidden" value="-1" name="tx_indexedsearch[media]" />
<input type="hidden" value="rank_flag" name="tx_indexedsearch[order]" />

<input type="hidden" value="flat" name="tx_indexedsearch[group]" />
<input type="hidden" value="-1" name="tx_indexedsearch[lang]" />
<input type="hidden" value="0" name="tx_indexedsearch[desc]" />
<input type="hidden" value="10" name="tx_indexedsearch[results]" />

<input id="searchinput" value="" name="tx_indexedsearch[sword]" onblur="if (value == '') {value='поиск по сайту'}" onfocus="if (value=='поиск по сайту') {value =''}" accesskey="s" />
<input id="searchsubmit" type="submit" value="Найти" name="tx_indexedsearch[submit_button]" type="submit" />
</fieldset>
</form>

Хочу сделать:
1. Вылезало всплывающее окно с подсказкой если ничего не введено: "Ошибка"
2. Когда выходить результат - еще показывается расширенный поиск, который на дивы ложится остальные.

Если кто-то реализовал - помогите - буду благодарен

вообще думаю что будет блокирующее свойство, к примеру: "if=0" то выходит всплывающее окно... Вот. Спасибо)

css_ufa
25.08.2010, 18:13
Со 2 пунктом разобрался. Находится ответ здесь:
Ваша папка/typo3/sysext/indexed_search/pi/indexed_search.tmpl