473,396 Members | 2,011 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Rendering dynamic html table problem from a drop down list in IE-7

We have a classic asp site. The last index value from the dropdown list get populated first. selecting each dropdown value creates dynamic html table. It works fine when it loads for the first time but it kick me out from the site if I select the last indext agin in the dropdown list. It even works fine for other indexes. And this problem is only on IE-7.

Sample code:

strHTML += "<tr class='Display' nowrap id='row_scope" + i + "' bordercolor=black " +
"onClick=\"selectRowItem(this," +i+ ");showProfile(" + i + ")\" ><td nowrap align=center id='scope_id" +
i + "' onClick=\"MenuHighlight("+i+")\">" +
"<input class='Display' style=\"cursor:hand;Width:51px;Height:20px;text-align:center\" type=\"text\" size=5 maxlength=6 " +
"onBlur=\"setChanges(this.parentNode,'i'," +i+ ",this.parentNode.firstChild.value,null)\" value=\"" +
top.arrBD[i].line_item_code + "\"></td><td nowrap id='scope_name" + i +
"' onClick=\"MenuHighlight("+i+")\">" +
"<input class='Display' style=\"cursor:hand;Width:239px;Height:20px;text-align:left\" type=\"text\" size=30 maxlength=60 " +
"onBlur=\"setChanges(this.parentNode,'d'," +i+ ",this.parentNode.firstChild.value,null)\" value=\"" +
top.arrBD[i].line_item_desc + "\"></td><td align=right id='scope_qty" + i +
"' onClick=\"MenuHighlight("+i+")\">" +
"<input class='Display' style=\"Width:36px;Height:20px;text-align:right\" onfocus=\"this.blur()\" type=\"text\" size=3 maxlength=3 value=\"" +
top.arrBD[i].revised_quantity + "\"></td><td align=right id='scope_amt" + i +
"' onClick=\"MenuHighlight("+i+")\">" +
"<input class='Display' style=\"Width:104px;Height:20px;text-align:right\" onfocus=\"this.blur()\" type=\"text\" size=15 maxlength=15 value=\"" +
showCurrency(top.arrBD[i].revised_fta_amount) + "\"></td><td align=right id='scope_cost" + i +
"' onClick=\"MenuHighlight("+i+")\">" +
"<input class='Display' style=\"Width:104px;Height:20px;text-align:right\" onfocus=\"this.blur()\" type=\"text\" size=15 maxlength=15 value=\"" +
showCurrency(top.arrBD[i].revised_gross_cost) + "\"></td></tr>";

Thanks for the help!!!
Dec 28 '10 #1
0 1391

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Adam Smith | last post by:
I am developing a Form to be used for data input into a database. To limit errors in fields I want to input some data using "<SELECT NAME=xxxxx> <OPTIONS VALUE=yyyyy> <OPTIONS VAL........> ..........
4
by: Therese A. Sorna | last post by:
Hello all... I am using Access 2002, and am trying to find a way for a user to be able to select multiple entries from a drop-down list. I am hoping that given a list as such: a b c d
3
by: Stephen Adam | last post by:
Hi there, I'm sure i'm missing something really simple here, all i want to do is get the value of the selected item in a list box. Even after much fiddling about last night I still could not get...
0
by: Baiju | last post by:
Hello We have a web application which has a page to select value from three drop down lists. The first list box is populated when the page is loaded. The second one is loaded based on the...
2
by: Ren | last post by:
Hi all, I am a bit new to PHP and SQL so this may seem like a dumb question. I have already created a drop down list as part of a form which is automatically populated with values taken from a...
6
by: nasirmajor | last post by:
Dear all, a simple quetion as usual I have a html select list. e.g <select class="text" name="bmonth" runat="server" id="bmonth"> <option selected="selected" value="0"></option> <option...
0
by: Mike | last post by:
Hello, Is there a way to configure a drop down list of bookmarks so that, when selected, the browser links to that bookmark without reloading the page? Thanks, Mike
3
by: maminx | last post by:
I have this script... var td = document.createElement('td'); var p = document.createElement('p'); var label = document.createElement('label'); var span =...
5
by: dmj07 | last post by:
Hi all, I would like to know a way to add a label to an update panel by using a drop down list selected item. For example: There is a list of items in a drop down list, the user selects one...
1
by: slickuser | last post by:
Hi, How can I get the selected value from the drop down menu list inside the GridView command when the user click updated button on that row? Thanks. <asp:BoundField DataField="NAME"...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.