06-10-2011, 04:48 PM
(06-09-2011, 03:55 AM)VPeter Wrote: In the advanced research page, I'd like to a textarea field the "Search for" input data field instead.
The keywords input in this textarea field, I'd like to put from Keywords textarea of keywords kontener (i.e. Edit document, used "predefined keywords" link, in the "out.KeywordChooser.php").
I organised this, but the keywords don't transfer between the two textarea.
What do I write the program "out.SearchForm.php" on space: XXXXXXXX ?
<td><?php printMLText("search_query");?>:</td>
<td class="inputDescription"><textarea name="query" rows="2" cols="30"> XXXXXXX </textarea><br>
<a href="javascript:chooseKeywords();"><?php printMLText("use_default_keywords");?></a>
<script language="JavaScript">
var openDlg;
function chooseKeywords() {
openDlg = open("out.KeywordChooser.php", "openDlg", "width=500,height=400,scrollbars=yes,resizable=yes");
}
</script>
</td>
THANKS (sorry for my poor english): VPeter
I like your idea. So i implemented this feature for my use too. The problem in getting information from Keywords form is that it send information to "keywords" variable in out.KeywordChooser.php.
Quote:var targetObj = opener.document.form1.keywords;
So i add a new variable to out.KeywordChooser.php
Quote:var targetObj2 = opener.document.form1.query;And change acceptKeywords function in out.KeywordChooser.php
Quote:function acceptKeywords() {
if (typeof targetObj != "undefined") {
targetObj.value = myTA.value;
}
if (typeof targetObj2 != "undefined") {
targetObj2.value = myTA.value;
}
window.close();
return true;
}
Now search form looks like this
[ATTACHMENT NOT FOUND]
"Whatever you do, work at it with all your heart, as working for the Lord, not for human masters". Kol.3:23