Project

General

Profile

Actions

Bug #21278

closed

Pre-fill Value for the search input field problem?

Added by Darko Jr. Gonzalez about 15 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2009-10-15
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.2
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

TYPO3 4.2
Indexed Search 2.11.1
This is the usual config line:
<input name="tx_indexedsearch[sword]" type="text" value="|" />

I changed it to:
<input name="tx_indexedsearch[sword]" type="text" value="Search" onfocus="Clear(this);" onblur="Clear(this);" />

I search for "TYPO3" string. Now if I hit the search button, then I get to the search results page. This is ok. Works well. The problem is that the value "TYPO3" which I searched for is pushed out of this tag and now it looks something like this:
<input name="tx_indexedsearch[sword]" type="text" value="Search" onfocus="Clear(this);" onblur="Clear(this);" />TYPO3

This messes my layout and I have no control over this text. I can make the text the same color as the background, which will make it "disappear" but still, it will be there and it will mess the layout

HELP? :)

Thanks

(issue imported from #M12243)

Actions

Also available in: Atom PDF