Click here to Skip to main content
15,886,919 members
Home / Discussions / Web Development
   

Web Development

 
QuestionDefaultValue in DataObject used in Webservice [modified] Pin
Roland Bär5-Feb-09 2:03
Roland Bär5-Feb-09 2:03 
QuestionCreating a discussion board / forum Pin
NetQuestions4-Feb-09 20:44
NetQuestions4-Feb-09 20:44 
AnswerLook at DotNetNuke Pin
David Mujica5-Feb-09 3:01
David Mujica5-Feb-09 3:01 
GeneralRe: Look at DotNetNuke Pin
NetQuestions5-Feb-09 18:47
NetQuestions5-Feb-09 18:47 
GeneralRe: Look at DotNetNuke Pin
NetQuestions5-Feb-09 19:52
NetQuestions5-Feb-09 19:52 
AnswerRe: Creating a discussion board / forum Pin
NetQuestions9-Feb-09 18:51
NetQuestions9-Feb-09 18:51 
Questiondouble click on Grid Pin
omlac4-Feb-09 20:19
omlac4-Feb-09 20:19 
QuestionNamespace..JavaScript [modified] Pin
Amr M. K.4-Feb-09 2:32
Amr M. K.4-Feb-09 2:32 
Dear,
I am using control ntb combo
<a href="http://www.nitobi.com/products/completeui/demos/explorer/">http://www.nitobi.com/products/completeui/demos/explorer/</a>[<a href="http://www.nitobi.com/products/completeui/demos/explorer/" target="_blank" title="New Window">^</a>]
the control to use

-Namespace &amp;lt;html xmlns:ntb&amp;gt;
-javaScript files

Control Render in browser Like this

<pre><ntb:Combo TABINDEX=0 id="H_Unit_22_0_" InitialSearch="zzz__is__1000002" Mode="classic" >
<ntb:ComboTextBox width=245px OnEditKeyUpEvent="ifEmptyRepopulate(this)" DataFieldIndex=1></ntb:ComboTextBox>
<ntb:ComboList OnHideEvent="TextboxSetSelection('H_Unit_22_0_');" OnAfterSearchEvent="TextboxSetInitialValue('H_Unit_22_0_');" height=200 width=748px
DatasourceUrl="b6fm/getData.asp?tr=47&viewid=0&req=0" PageSize="50" >
<ntb:ComboColumnDefinition width=120px HeaderLabel="Caption" DataFieldIndex=1>
</ntb:ComboColumnDefinition>
<ntb:ComboColumnDefinition width=120px HeaderLabel="Id" DataFieldIndex=0>
</ntb:ComboColumnDefinition></ntb:ComboList></ntb:Combo>

I want to create this control Dyanmicly
I am create <td> and added it in table I dont problem in this I
Tired
txt = '<ntb:Combo TABINDEX=4 id="' + comboName + '" Mode="classic" theme="outlook" >';
txt = txt + '<ntb:ComboTextBox width=245px OnEditKeyUpEvent="ifEmptyRepopulate(this)" DataFieldIndex=1></ntb:ComboTextBox>'
txt = txt + '<ntb:ComboList OnHideEvent="TextboxSetSelection(' + sq + comboName + sq + ');" height=200 width=766px DatasourceUrl="b6fm/getData.asp?tr=51" PageSize="50">';
txt = txt + '<ntb:ComboColumnDefinition width=240px HeaderLabel="Display Name" DataFieldIndex=1>';
txt = txt + '</ntb:ComboColumnDefinition><ntb:ComboColumnDefinition width=180px HeaderLabel="First Name" DataFieldIndex=2>';
txt = txt + '</ntb:ComboColumnDefinition><ntb:ComboColumnDefinition width=180px HeaderLabel="Last Name" DataFieldIndex=3>';
txt= txt + '</ntb:ComboColumnDefinition><ntb:ComboColumnDefinition width=132px HeaderLabel="User Id" DataFieldIndex=0>';
txt = txt + '</ntb:ComboColumnDefinition></ntb:ComboList></ntb:Combo>';</pre>
tdNode.innerHTML=txt; /// I dont have problem in tdNode

also tired
working in attribute will not make Differance
var comboNode = document.createElement('ntb:Combo');
var comboText= document.createElement('ntb:ComboTextBox');
var comboList=document.createElement('ntb:ComboList');
var comboColumn=document.createElement('ntb:ComboColumnDefinition');
var comboColumn2=document.createElement('ntb:ComboColumnDefinition');


comboNode.id="'" + comboName + "'";
comboNode.Mode="'classic'";

comboText.OnEditKeyUpEvent="ifEmptyRepopulate(this)";
comboText.DataFieldIndex="1";
comboText.width="245px";
comboList.OnHideEvent="TextboxSetSelection('" + sq + comboName + sq + '); ' ;
comboList.height=200;
comboList.width='766px';
comboList.DatasourceUrl="b6fm/getData.asp?tr=99";
comboList.PageSize="50";
comboColumn.width="240px";
comboColumn.DataFieldIndex=1;
comboColumn.HeaderLabel="Display Name";
comboColumn2.width="240px";
comboColumn2.DataFieldIndex=0;
comboColumn2.HeaderLabel="User Id";
comboList.appendChild(comboColumn);
comboList.appendChild(comboColumn2);
comboNode.appendChild(comboText);
comboNode.appendChild(comboList);

tdNode.appendChild(comboNode);

also tired
var comboNode = document.createElementNS("ntb",'ntb:Combo');

var comboText= document.createElementNS("ntb",'ntb:ComboTextBox');
var comboList=document.createElementNS("ntb",'ntb:ComboList');
var comboColumn=document.createElementNS("ntb",'ntb:ComboColumnDefinition');
var comboColumn2=document.createElementNS("ntb",'ntb:ComboColumnDefinition');

same....

When I tring
to get the value innerhtml of td :: document.getElementById ("td"+combArr[i]).innerHTML // combArr[i] name...no prblem here
give me correctly the tags ::--
this alert
---------------------------
Windows Internet Explorer
---------------------------
<pre>|td| <?xml:namespace prefix = ntb /><ntb:Combo id="'vComboTest'" Mode="'classic'"><ntb:ComboTextBox width="245px" DataFieldIndex="1" OnEditKeyUpEvent="ifEmptyRepopulate(this)"></ntb:ComboTextBox><ntb:ComboList PageSize="50" DatasourceUrl="b6fm/getData.asp?tr=99" height="200" OnHideEvent="TextboxSetSelection(''vComboTest'); "><ntb:ComboColumnDefinition DataFieldIndex="1" HeaderLabel="Display Name"></ntb:ComboColumnDefinition><ntb:ComboColumnDefinition DataFieldIndex="0" HeaderLabel="User Id"></ntb:ComboColumnDefinition></ntb:ComboList></ntb:Combo></pre>---------------------------
OK
---------------------------



<b>but if i get last ntb Combo will display</b>
<pre> alert ("|combo|" +document.getElementsByTagName("Combo")[ document.getElementsByTagName("Combo").length -1 ].innerHTML);
the first tag
<ntb:Combo TABINDEX=4 id="' + comboName + '" Mode="classic" theme="outlook" >';
is missed up

<b>the alert like this</b></pre>
---------------------------
Windows Internet Explorer
---------------------------
<pre>|combo|<?xml:namespace prefix = ntb /><ntb:ComboTextBox width="245px" DataFieldIndex="1" OnEditKeyUpEvent="ifEmptyRepopulate(this)"></ntb:ComboTextBox><ntb:ComboList PageSize="50" DatasourceUrl="b6fm/getData.asp?tr=99" height="200" OnHideEvent="TextboxSetSelection(''vComboTest'); "><ntb:ComboColumnDefinition DataFieldIndex="1" HeaderLabel="Display Name"></ntb:ComboColumnDefinition><ntb:ComboColumnDefinition DataFieldIndex="0" HeaderLabel="User Id"></ntb:ComboColumnDefinition></ntb:ComboList></pre>---------------------------
OK
---------------------------

<b>I am confused how can be solved that</b>Confused | :confused: Confused | :confused: Confused | :confused:

regards

Yes. CreatiVity withOuT limiTs
modified on Wednesday, February 4, 2009 12:31 PM
AnswerRe: Namespace..JavaScript Pin
Jon Rista4-Feb-09 6:27
Jon Rista4-Feb-09 6:27 
QuestionDual Handle slider for web application [modified] Pin
mohit ag3-Feb-09 20:26
mohit ag3-Feb-09 20:26 
AnswerRe: Dual Handle slider for web application Pin
J4amieC4-Feb-09 3:00
J4amieC4-Feb-09 3:00 
JokeRe: Dual Handle slider for web application Pin
Jon Rista4-Feb-09 6:29
Jon Rista4-Feb-09 6:29 
GeneralRe: Dual Handle slider for web application Pin
mohit ag4-Feb-09 20:27
mohit ag4-Feb-09 20:27 
QuestionLocate an application Pin
Jason Lepack (LeppyR64)3-Feb-09 10:41
Jason Lepack (LeppyR64)3-Feb-09 10:41 
AnswerRe: Locate an application Pin
SeMartens3-Feb-09 21:35
SeMartens3-Feb-09 21:35 
QuestionOpening new window using clientscript.registerstartupscript() on clickin linkbutton Pin
nainakarri3-Feb-09 5:43
nainakarri3-Feb-09 5:43 
AnswerRe: Opening new window using clientscript.registerstartupscript() on clickin linkbutton Pin
vaghelabhavesh3-Feb-09 10:58
vaghelabhavesh3-Feb-09 10:58 
GeneralRe: Opening new window using clientscript.registerstartupscript() on clickin linkbutton Pin
nainakarri5-Feb-09 5:19
nainakarri5-Feb-09 5:19 
GeneralRe: Opening new window using clientscript.registerstartupscript() on clickin linkbutton Pin
vaghelabhavesh5-Feb-09 7:47
vaghelabhavesh5-Feb-09 7:47 
AnswerRe: Opening new window using clientscript.registerstartupscript() on clickin linkbutton Pin
omlac9-Feb-09 22:47
omlac9-Feb-09 22:47 
QuestionDatagrid Paging?? Pin
ketan bader3-Feb-09 2:48
ketan bader3-Feb-09 2:48 
AnswerRe: Datagrid Paging?? Pin
Jon Rista4-Feb-09 6:31
Jon Rista4-Feb-09 6:31 
QuestionEnter key press in Multiline textbox Pin
kc_krishnan3-Feb-09 1:59
kc_krishnan3-Feb-09 1:59 
AnswerRe: Enter key press in Multiline textbox Pin
SeMartens4-Feb-09 1:42
SeMartens4-Feb-09 1:42 
QuestionMultiLine Text Box focus Pin
kc_krishnan3-Feb-09 1:56
kc_krishnan3-Feb-09 1:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.