I know its not CF and apologise in advance,

I,ve got a hidden frame,
there is a timeout set and it will make a http request to check for a new
instance of data,

If there is a new instance,
I want to write the new data to a table in the visible frame,

I can do this successfully,

----code-----
function writeNewData(){
// assign long reference to shorter var name
        var delay = 1400, blinks = 3;
        var theTable = parent.f_userView.myTable
// append new row to the end of the table
        var newRow = theTable.insertRow(theTable.rows[0])
// give the row its own ID
        newRow.id = newRow.uniqueID
// declare cell variable
        var newCell
// an inserted row has no cells, so insert the cells
        newCell = newRow.insertCell(0)
// give this cell its own id
        newCell.id = newCell.uniqueID
// display the row's id as the cell text
        newCell.innerText = "a date and time string"
// re-use cell var for second cell insertion
        newCell = newRow.insertCell(1)
        newCell.id = newCell.uniqueID
        newCell.innerText = "new reservoir data"
        
        for ( var i = 1; i < blinks; i++ ){
                setTimeout("runBlink(" + newRow.id + "," + 0 + ")", delay *
i  - ( delay / 2 ) );
                setTimeout("runBlink(" + newRow.id + "," + 1 + ")", (delay *
i) );
        }
}

function runBlink(idNewRow,blinker){
        if(blinker){idNewRow.bgColor = ""}else{idNewRow.bgColor = "orange"}
}

but when I then try to blink the new row I just get a error in bottom left
corner in the status bar (error on page),
It works fine within a single document window,

any help would be greatly appreciated,

j

        
______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to