Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by uvaraj24 on Aug 28, 2008 04:49
open dhtmlx forum
How can i add text box on dhtmlxtoolbar?

Hi,

please can anyone tell me how can i add text box on the toolbar?

i am using Dhtmlxtoolbar here.

I need to Add a text box to type the text on the tool bar.

please help me in solving this.

Advanced Thanks

uva
Answer posted by Support on Aug 28, 2008 05:51
Answer posted by uvaraj24 on Aug 28, 2008 06:12
Hi thanks for your information,

I got the text box and i tried to get the text box data using the following code

xml code which i am using:

<LabelButton id="0_search_text" width='150px' content="&lt;input type='text'&gt;" />
 <ImageButton src="/tooljs/images/iconSearch.gif" height="25" width="25" id="0_search" tooltip="Search" disableImage="/tooljs/images/iconSearch_dis.gif"/>       

Javascript code to get the text box data:

if(itemId=='0_search'){
                alert('search');
                alert(document.getElementById('0_search_text').value);
            }

But i didnt get the textbox data, please can you help me.

Thanks
uva
   


Answer posted by Support on Aug 28, 2008 06:22
In grid IDs are not real document IDs , you can change XML as 
     <LabelButton id="0_search_text" width='150px' content="&lt;input type='text' id='0_search_text' &gt;" />

In such case your js code will work correctly
Answer posted by uvaraj24 on Aug 28, 2008 06:37
Hi it's really amazing.

 Thanks a lot, it is is working fine

uva