•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 402,060 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,446 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 1465 | Replies: 3 | Solved
![]() |
•
•
Join Date: Jan 2005
Location: defiance, oh
Posts: 19
Reputation:
Rep Power: 4
Solved Threads: 1
Here is html
[code]
<asp:datagrid id="mrpDataGrid" style="Z-INDEX: 289; LEFT: 576px; POSITION: absolute; TOP: 512px" runat="server" Width="160px" Height="90px" autogeneratecolumns="False">
<AlternatingItemStyle BackColor="LightGray"></AlternatingItemStyle>
<Columns>
<asp:BoundColumn DataField="SCHEDULE_DT" HeaderText="Scheduled Date" DataFormatString="{0:d}"></asp:BoundColumn>
<asp:BoundColumn DataField="SCHEDULE_QTs" HeaderText="Summed Quantity"></asp:BoundColumn>
</Columns>
</asp:datagrid>
I need to get values of both bound columns to use in calculations.
TIA
javascript newbie
[code]
<asp:datagrid id="mrpDataGrid" style="Z-INDEX: 289; LEFT: 576px; POSITION: absolute; TOP: 512px" runat="server" Width="160px" Height="90px" autogeneratecolumns="False">
<AlternatingItemStyle BackColor="LightGray"></AlternatingItemStyle>
<Columns>
<asp:BoundColumn DataField="SCHEDULE_DT" HeaderText="Scheduled Date" DataFormatString="{0:d}"></asp:BoundColumn>
<asp:BoundColumn DataField="SCHEDULE_QTs" HeaderText="Summed Quantity"></asp:BoundColumn>
</Columns>
</asp:datagrid>
I need to get values of both bound columns to use in calculations.
TIA
javascript newbie
•
•
Join Date: Jan 2005
Location: defiance, oh
Posts: 19
Reputation:
Rep Power: 4
Solved Threads: 1
<asp:table id="dmdTbl" style="Z-INDEX: 617; LEFT: 280px; POSITION: absolute; TOP: 552px" runat="server" Width="184px" Height="60px" >
<asp:TableRow ID="drows" >
<asp:TableCell ID="DmdDate" Enabled=False ></asp:TableCell>
<asp:TableCell ID="Dqty" Enabled=False ></asp:TableCell>
</asp:TableRow>
</asp:table>
code is this:
var ord = 0; // set up int
var dd = new Date(); //set up date field
//ord = document.getElementById('dmdTbl').rows.length; // fid # of rows
//alert("value "+ord); //display number of rows
var rowposi = document.getElementById('dmdTbl').rows; // set position of row
for (var i=0;i<document.getElementById('dmdTbl').rows.length;i++) {
dd = rowposi[i].childNodes[0].innerText;
ord = rowposi[i].childNodes[1].innerText;
// ..... do something with dd and ord
//alert("value "+dd+"ord "+ord+"cnt "+i); // show values
} // end for loopI hope this help someone else.
![]() |
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
access advice ajax asp classification code combo daniweb data data protection database developer development drive dropdownlist forensic forensics fun hard hardware help hitachi home information internet ip javascript tab menu with rounded corners generator microshaft microsoft module ms msdn net news office payment services privacy protection reuse security site software sql storage terabyte tutorials and more vista web wikipedia you tried to assign the null value to a variable that is not a variant data type
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Java script doesn't working on different browser
- Next Thread: your basic calender



Linear Mode