Click here to Skip to main content
15,916,180 members
Home / Discussions / Web Development
   

Web Development

 
QuestionCross-Domain Scripting Pin
il_manti7-Feb-09 5:31
il_manti7-Feb-09 5:31 
AnswerRe: Cross-Domain Scripting Pin
Shog97-Feb-09 7:07
sitebuilderShog97-Feb-09 7:07 
QuestionImplement common JS to Textboxes Pin
ketan bader6-Feb-09 20:34
ketan bader6-Feb-09 20:34 
AnswerRe: Implement common JS to Textboxes Pin
Perspx6-Feb-09 20:52
Perspx6-Feb-09 20:52 
QuestionWhich website is good to purchase image libraries for creating a business website? Pin
T4AMD6-Feb-09 18:58
T4AMD6-Feb-09 18:58 
AnswerRe: Which website is good to purchase image libraries for creating a business website? Pin
ziwez07-Feb-09 7:12
ziwez07-Feb-09 7:12 
QuestionIIS7 Not passing Headers? Pin
MaxRelaxman6-Feb-09 4:19
MaxRelaxman6-Feb-09 4:19 
QuestionHow to maintain row position in Gridview inside the panel? Pin
hifiger20045-Feb-09 12:20
hifiger20045-Feb-09 12:20 
QuestionMaking controls visible using javascript Pin
nainakarri5-Feb-09 5:29
nainakarri5-Feb-09 5:29 
AnswerRe: Making controls visible using javascript Pin
vaghelabhavesh5-Feb-09 6:04
vaghelabhavesh5-Feb-09 6:04 
GeneralRe: Making controls visible using javascript Pin
megivimal22-Jul-09 4:42
megivimal22-Jul-09 4:42 
QuestionOpen a Large pdf fomr sql database using vbscript, asp clasic Pin
DotNetCoderJunior5-Feb-09 3:00
DotNetCoderJunior5-Feb-09 3:00 
AnswerRe: Open a Large pdf fomr sql database using vbscript, asp clasic Pin
SeMartens5-Feb-09 21:11
SeMartens5-Feb-09 21:11 
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 

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.