Hi --
I'm fairly new to .NET. I've got a webform application that records
the amount of time an employee spends on a job. The jobs/time for a
given period are then displayed in a datagrid. I'd like it all to run
client side, so the screen doesn't load again.
When I add a record, the information is added to the database (we're
using remote scripting for that). And the information in the record
is available if I do xmlDoc.transformNode(xslDoc) -- I can see that
the info is retrieved when I view it using the command window in
debugger mode.
But.....the datagrid does not get updated with the new record. Has
anyone added rows/records to a datagrid without a page refresh? Any
help/suggestions and especially sample code are greatly appreciated!!
Here's the Javascript function I'm using to load/reload the datagrid
table (sorry about the way the text wrapped):
function LoadTable()
{
var Employee = document.getElementById
("_ctl1__ctl0_ddlEmployee").value;
var StartDate = document.getElementById
("_ctl1__ctl0_TextStartDate").value;
var EndDate = document.getElementById
("_ctl1__ctl0_TextEndDate").value;
// Update the xml island with the employee history
information
var oResult = Methods.EmployeeActivity(Employee,
StartDate, EndDate);
var xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.async=false;
xmlDoc.load("activityhistory.xml");
var loaded = xmlDoc.loadXML(oResult.value);
if (loaded) {
var xslDoc=new ActiveXObject
("Microsoft.XMLDOM");
xslDoc.async=false;
xslDoc.load("ActivityHistoryStyle.xsl");
document.getElementById
("Table1").insertAdjacentHTML = xmlDoc.transformNode(xslDoc);
}
}
------------------------ Yahoo! Groups Sponsor --------------------~-->
<font face=arial size=-1><a
href="http://us.ard.yahoo.com/SIG=12hhd262s/M=362131.6882499.7825260.1510227/D=groups/S=1705006764:TM/Y=YAHOO/EXP=1123613795/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
">Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life
- brought to you by One Economy</a>.</font>
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/