Click here to Skip to main content
15,886,806 members
Home / Discussions / Web Development
   

Web Development

 
QuestionSSL Delay Pin
BeerFizz31-Jul-09 7:02
BeerFizz31-Jul-09 7:02 
QuestionDynamically set iframe height and width Pin
syaiful_8630-Jul-09 14:32
syaiful_8630-Jul-09 14:32 
AnswerRe: Dynamically set iframe height and width Pin
Aman Bhullar30-Jul-09 22:40
Aman Bhullar30-Jul-09 22:40 
GeneralRe: Dynamically set iframe height and width Pin
syaiful_8631-Jul-09 1:38
syaiful_8631-Jul-09 1:38 
GeneralRe: Dynamically set iframe height and width Pin
ranuth30-Sep-09 16:45
ranuth30-Sep-09 16:45 
QuestionCustom ASP.NET security Pin
OsoreWatashi30-Jul-09 4:14
OsoreWatashi30-Jul-09 4:14 
AnswerRe: Custom ASP.NET security Pin
Christian Graus31-Jul-09 10:25
protectorChristian Graus31-Jul-09 10:25 
QuestionHaving trouble figuring out how to wait for XML Data Island binding to finish Pin
renfrochris30-Jul-09 4:08
renfrochris30-Jul-09 4:08 
I've done an exhaustive search for my problem on the net and either I'm not searching for the right keywords or I'm the only one having this problem.   My site has several pages that utilize XML Data Islands and binding to HTML tables.   The binding works flawlessly.   What I need to do is loop through the rows of the table following the binding and do some conditional formatting, housekeeping, etc.   An example would be to highlight every other row for easy readability.

My problem is that when I call my formatting code the data binding has not yet completed.   Therefore, when I get a count of the rows its whatever it was at that moment in time.   It's not complete and what I end up with is only a top portion of the table is formatted.

In an effort to wait for the data binding to fully complete I've tried various events on the Data Island, table, XMLHTTP object, etc. but to no avail.   The only way I can get this to work is to call the formatting function using the setTimeout method but even then the correct number of milliseconds to wait is hit or miss.

Below is a simplified version of my code that simulates my problem.   The row count returned by the getTableRowCount function is always lower than the actual number of rows that are created when the data binding finishes.


<html>
<script>
   function retrieveStatusHistory() {
      var xmlHttp = new ActiveXObject("MSXML2.XmlHttp");
      xmlHttp.Open("GET", myURL, false);
      xmlHttp.Send(null);
      document.all.xloadstatus.loadXML(xmlHttp.responsetext);
   }
   function getTableRowCount() {
      var myRows = document.getElementsByTagName("tr");
      alert(myRows.length);
   }
</script>
<body onload="retrieveStatusHistory();getTableRowCount();">
   <xml id="xloadstatus"></xml>
   <table datasrc="#xloadstatus">
      <!-- My row and cell definitions   -->
   </table>
</body>
</html>
Questionchange caption at runtime Pin
vinayh29-Jul-09 21:48
vinayh29-Jul-09 21:48 
AnswerRe: change caption at runtime Pin
Aman Bhullar30-Jul-09 0:50
Aman Bhullar30-Jul-09 0:50 
QuestionDRUPAL-uploading image Pin
myinstincts29-Jul-09 21:20
myinstincts29-Jul-09 21:20 
QuestionHow to change tabs inside an AJAX Tab container Using Javascript?? Pin
kKamel29-Jul-09 1:26
kKamel29-Jul-09 1:26 
AnswerRe: How to change tabs inside an AJAX Tab container Using Javascript?? Pin
kKamel29-Jul-09 1:41
kKamel29-Jul-09 1:41 
GeneralRe: How to change tabs inside an AJAX Tab container Using Javascript?? Pin
aldass7-Oct-09 10:55
aldass7-Oct-09 10:55 
Question$find JavaScript Question Pin
kKamel29-Jul-09 1:24
kKamel29-Jul-09 1:24 
AnswerRe: $find JavaScript Question Pin
Mike Ellison29-Jul-09 3:07
Mike Ellison29-Jul-09 3:07 
GeneralRe: $find JavaScript Question Pin
kKamel29-Jul-09 8:33
kKamel29-Jul-09 8:33 
GeneralRe: $find JavaScript Question Pin
Mike Ellison29-Jul-09 8:47
Mike Ellison29-Jul-09 8:47 
GeneralRe: $find JavaScript Question Pin
kKamel29-Jul-09 9:17
kKamel29-Jul-09 9:17 
QuestionRDLC report -- data binding at runtime [modified] Pin
Hemant Thaker28-Jul-09 23:02
Hemant Thaker28-Jul-09 23:02 
QuestionDisplay Image from Path Pin
nudma28-Jul-09 19:52
nudma28-Jul-09 19:52 
AnswerRe: Display Image from Path Pin
SeMartens28-Jul-09 20:47
SeMartens28-Jul-09 20:47 
GeneralRe: Display Image from Path Pin
nudma28-Jul-09 21:19
nudma28-Jul-09 21:19 
GeneralRe: Display Image from Path Pin
nudma29-Jul-09 4:13
nudma29-Jul-09 4:13 
GeneralRe: Display Image from Path Pin
SeMartens29-Jul-09 4:20
SeMartens29-Jul-09 4:20 

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.