Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Basics
| Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 15th, 2005, 11:24 AM
Registered User
 
Join Date: Feb 2005
Location: Pune, Maharastra, India.
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to nlpatel78
Default Problem with IE version 6.0.2900.2180 while using

Dear Friends i am using insertCell() javascript to generate Dynamically table and it is creating problem while i am using IE version 6.0.2900.2180. so please provide me detail help related to this topic.rest for all browser that is working fine. and my code is as follows.
Dear Friends i am using insertCell() javascript to generate Dynamically table and it is creating problem while i am using IE version 6.0.2900.2180. so please provide me detail help related to this topic.rest for all browser that is working fine. and my code is as follows.

<script type="text/javascript" src="ValidateFunctions.js"></script>
<link href="sys.css" rel="STYLESHEET" type="text/css">
<script language="javascript">
var id=1;
var rowNum = 1; // added rowNum var
var strExchangeCurr="";
function insRow(RptExDate,RptExParticular,RptExHead,RptExCu rr,RptExRate,RptExAmount,RptExCDesc,RptExCC,RptExR ate)
{
    var trow=document.getElementById('ExpenseTable').inser tRow(rowNum); // added rowNum arg

    var tdata1=trow.insertCell(0)
    var tdata2=trow.insertCell(1)
    var tdata3=trow.insertCell(2)
    var tdata4=trow.insertCell(3)
    var tdata5=trow.insertCell(4)
    var tdata6=trow.insertCell(5)
    var tdata7=trow.insertCell(6)
    var tdata8=trow.insertCell(7)
    var tdata9=trow.insertCell(8)

    // used concatentation to assign id nums
    tdata1.innerHTML="&nbsp;<input type='text' id='txtExDt" + id + "' style='width:75px;' maxlength='11' class='INPUTALIGNRIGHT' value='"+RptExDate+"' onBlur='checkdate(this);'>"
    tdata2.innerHTML="<input type='text' id='txtExPer" + id + "' style='width:150px;' maxlength='40' class='INPUTALIGNLEFT' value='"+RptExParticular+"'>"
    tdata3.innerHTML="<select id='cmbExHead" + id + "' style='width:150px;'>"+RptExHead+"</select>"
    tdata4.innerHTML="<input type='checkbox' id='chkExCC" + id + "' onClick='Calculate_BRAmount("+id+");'>"
    tdata5.innerHTML="<input type='checkbox' id='chkExRct"+ id + "'>"
    tdata6.innerHTML="<input type='text' id='txtExCurr" + id + "' style='width:38px;' maxlength='3' class='INPUTALIGNLEFT' value='"+RptExCurr+"' onBlur=\"FillExchangeRate(this,'txtExRate"+id+"'); Calculate_BRAmount("+id+");\">" //onblur='FillExchangeRate(this,'txtExRate"+id+"');C alculate_BRAmount("+id+");'
    tdata7.innerHTML="<input type='text' id='txtExRate" + id + "' style='width:62px;' maxlength='10' class='INPUTALIGNRIGHT' value='"+RptExRate+"' onblur='Calculate_BRAmount("+id+");'>" //onblur='Calculate_BRAmount("+id+");'
    tdata8.innerHTML="<input type='text' id='txtExFCAmt" + id + "' style='width:100px;' maxlength='10' class='INPUTALIGNRIGHT' value='"+RptExAmount+"' onfocus='select();' onblur='Calculate_BRAmount("+id+"); this.value=cVal(this.value);'>"
    tdata9.innerHTML="<input type='text' id='txtExLCAmt" + id + "' style='width:100px;' maxlength='10' class='INPUTALIGNRIGHT' value='"+RptExCDesc+"' onBlur='this.value=cVal(this.value);' >"

    tname="txtExDt";
    tname1="txtExPer";
    tname2="cmbExHead";
    tname3="chkExCC"+id;
    tname4="chkExRct"+id;
    tname5="txtExCurr";
    tname6="txtExRate";
    tname7="txtExFCAmt";
    tname8="txtExLCAmt";

    tid="txtExDt"+id;
    tid1="txtExPer"+id;
    tid2="cmbExHead"+id;
    tid3="chkExCC"+id;
    tid4="chkExRct"+id;
    tid5="txtExCurr"+id;
    tid6="txtExRate"+id;
    tid7="txtExFCAmt"+id;
    tid8="txtExLCAmt"+id;

    var txtid = document.getElementById(tid);
    txtid.setAttribute("name",tname);
    var txtid1 = document.getElementById(tid1);
    txtid1.setAttribute("name",tname1);
    var txtid2 = document.getElementById(tid2);
    txtid2.setAttribute("name",tname2);
    var txtid3 = document.getElementById(tid3);
    txtid3.setAttribute("name",tname3);
    var txtid4 = document.getElementById(tid4);
    txtid4.setAttribute("name",tname4);
    var txtid5 = document.getElementById(tid5);
    txtid5.setAttribute("name",tname5);
    var txtid6 = document.getElementById(tid6);
    txtid6.setAttribute("name",tname6);
    var txtid7 = document.getElementById(tid7);
    txtid7.setAttribute("name",tname7);
    var txtid8 = document.getElementById(tid8);
    txtid8.setAttribute("name",tname8);

    id=id+1;
    rowNum++; //new
}
</script>
</head>
<body>
<FORM Name="thisform" Method="Post">

Neel
 
Old March 15th, 2005, 06:18 PM
Friend of Wrox
Points: 6,664, Level: 34
Points: 6,664, Level: 34 Points: 6,664, Level: 34 Points: 6,664, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

JS related problems will probably get a better response in the JS area of this forum

Wind is your friend
Matt
 
Old March 16th, 2005, 02:03 AM
Registered User
 
Join Date: Feb 2005
Location: Pune, Maharastra, India.
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to nlpatel78
Default

Thanks Dear,
     i am new to this group and i was thinking that this is the problem of browser related and i am working with asp.
thanks again.

Neel

neel




Similar Threads
Thread Thread Starter Forum Replies Last Post
version problem when using ASP.NET ashu .NET Framework 1.x 1 March 27th, 2007 04:35 AM
Passwords from version 1 to version 2 Maxxim BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 3 February 6th, 2007 06:49 PM
Problem in Migrating to higher version rajasarkar ASP.NET 1.0 and 1.1 Professional 1 July 5th, 2006 11:13 PM
Problem with IE 6.0.2900.2180 with innerCell() nlpatel78 Javascript 4 March 18th, 2005 06:12 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.