ok a further update
I got it working in all browsers except IE 11 where it intermitently goes blank if you keep hitting refresh eventually the 2 divs reapear)
any ideas ? find attached a sample student.txt
<html>
<head>
<style type="text/css">
* {margin: 0; padding: 3px;}
#container {height: 800%; width:900%; font-size: 1;}
.columns,.spacer {display: inline-block; *display: inline; zoom: 0; vertical-align: top; font-size: 12px;}
.columns {background-color: white; width: 300px; height: 700px;}
</style>
<script src="./jquery.js"></script>
<script src="./jquery.corner.js"></script>
<script>
$.get("./student.txt", function(data) {
var divIs = "none";
var lines = data.split("n");
$.each
(
lines, function(n, elem)
{
var info = elem.split(",");
if ( (divIs != info[1]) && (info[1] != undefined) )
{
$('#container').append('<div id=' + info[1] + ' class=columns><font color=#BDBDBD size=5>' + info[1] + '</font></div> <div id=' + info[1] + 'spacer1 class=spacer style="background-color: #D6D6D4; width: 3px; height: 700px;"></div>');
divIs = info[1];
$('.columns').corner(); //jQuery.corners to round the columns
$('.columns').css({'background-image':'url(./green.png)'}); //insert the green.pg for the header
$('.columns').css({'background-repeat': 'no-repeat'});//only want ther bgimage to show up once
}
$('#' + info[1]).append('<div>' + info[1] + '</div>');
if (info[1] == undefined)
{
return false;
}
}
);
});
</script>
</head>
<body bgcolor=#D6D6D4>
<div id="container">
</div>
</body>
student.txt looks like this
1,Admissions,uQuery Admissons,
1,Admissions,Admissions,
1,Admissions, by Geographic origin,
1,Admissions, by High School,
1,Admissions,by College
1,Admissions, by Geographic origin,
1,Admissions, by High School,
1,Admissions, by UG Direct entry College
1,Admissions,Aboriginal
1,Admissions,Student Profile
1,Admissions, by College
1,Admissions, ESL Students
2,Headcount,uQuery Headcount,
2,Headcount,Dashboard
2,Headcount,Current Registration Trend
2,Headcount, 30 Dat Trend
2,Headcount, Aboriginal
2,Headcount,TEST
2,Headcount, test1
2,Headcount, test2
2,Headcount, test3
2,Headcount, test4
2,Headcount, test5
2,Headcount, test6
2,Headcount, test7
2,Headcount, test8
2,Headcount, test9
2,Headcount, test10
2,Headcount, test11
2,Headcount, test12