Hi,
(Using Designs & Layout)
I've got a file named header.html which is included into my index.html.
In this file I've got a search box where I try to use the translate function to change the default value of the input field. But it seems that the parser fucks it up bigtime :-D:
<input onblur="if (this.value == '') { this.value = this.title;}" onfocus="if (this.value == this.title) { this.value = ''; }" type="text" class="SearchBoxField pngFix" title="<!--@Translate(SearchFor,"Søg efter", global)-->..." value="<!--@Translate(SearchFor,"Søg efter", global)-->..." name="q" />
Becomes this when parsed frontend:
<input onblur="if (this.value == '') { this.value = this.title;}" onfocus="if (this.value == this.title) { this.value = ''; }" type="text" class="SearchBoxField pngFix" title="<!--@Translate(SearchFor," search="" for",="" global)--="" />..." value="Søg efter..." name="q" />
It seems like it does okay on the second instance, but the first one is quite messed up :-D
Any ideas on this?
(you can scroll the code to the right my click-dragging on top of the code lines...)
BTW - the code function in this forum editor rewrites the code inserted... NOT THAT SMART!!
Developer forum
Translate tags inside input field attribute parsed very wrong
Replies
You must be logged in to post in the forum