Jon I followed you to this point,
>>You do this:
>>newRow.id = newRow.uniqueID
>>Then pass the _ID_ here, not the object!
>>runBlink(" + newRow.id + "," + 0 + ")", delay * i - ( delay / 2 )
then I'm confused here,
>>So runBlink() evaluated would look like this:
>>runBlink('ms_id127', 700) {
>> // Testing an integer? < 0 ??
>> if(700){ms_id127.bgColor = ""}else{ms_id127.bgColor = "orange"}
>>}
I'm not sure where your getting 700 from,
anyway, if I'm correct in what you where thinking, when evaluated newRow.id,
it is 'ms_id127'
so I tried
function runBlink(idNewRow,blinker){
if(blinker){parent.idNewRow.bgColor =
""}else{parent.idNewRow.bgColor = "orange"}
}
but unfortunately still getting the same error,
data is still being wrote to the table though,
j
-----Original Message-----
From: Jon Hall [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 15, 2002 5:12 PM
To: CF-Talk
Subject: Re: any javascripters
I think I've got it.
You do this:
newRow.id = newRow.uniqueID
Then pass the _ID_ here, not the object!
runBlink(" + newRow.id + "," + 0 + ")", delay * i - ( delay / 2 )
So runBlink() evaluated would look like this:
runBlink('ms_id127', 700) {
// Testing an integer? < 0 ??
if(700){ms_id127.bgColor = ""}else{ms_id127.bgColor = "orange"}
}
IE may be smart, but it's not that smart :)
idNewRow.bgColor should be parent.idNewRow.bgColor
/me crosses his fingers...
--
jon
mailto:[EMAIL PROTECTED]
Thursday, August 15, 2002, 10:50:24 AM, you wrote:
>>>What is the actual error though?
JM> Line: 1
JM> Char: 1
JM> Error: 'ms_id127' is undefined
JM> Code: 0
>>>Do an alert(theTable), you should get [object].
JM> Yep, I do,
JM> ms_id127 is the uniqueid given for the row,
JM> it can successfully insert cells to the row and output within theTable,
JM> I removed, " + newRow.id + "," + 0 + " and " + newRow.id + "," + 1 + "
JM> from within,
JM> setTimeout("runBlink(" + newRow.id + "," + 0 + ")", delay * i - ( delay
/ 2
JM> ) );
JM> setTimeout("runBlink(" + newRow.id + "," + 1 + ")", (delay * i) );
JM> then,
JM> function runBlink(){
JM> //if(blinker){idNewRow.bgColor = ""}else{idNewRow.bgColor =
JM> "orange"}
JM> alert('test')
JM> }
JM> the object reference newRow.id seems to get lost at this point,
JM> if just before my for loop I do newRow.bgColor = "red"; it runs fine,
JM> I tried,
>>>var theTable = parent.document.all.f_userView.myTable
JM> but it killed the script,
JM> I tried alerting each new instance of alert(newRow.id) to check if
truely
JM> unique,
JM> maybe that might have been causing the problem but they are unique,
JM> truly confused here,
JM> -----Original Message-----
JM> From: Jon Hall [mailto:[EMAIL PROTECTED]]
JM> Sent: Thursday, August 15, 2002 3:12 PM
JM> To: CF-Talk
JM> Subject: Re: any javascripters
JM> What is the actual error though? Double click on the question mark.
JM> That would be very helpful.
JM> Thursday, August 15, 2002, 9:41:15 AM, you wrote:
JM>> ----code-----
JM>> function writeNewData(){
JM>> // assign long reference to shorter var name
JM>> var delay = 1400, blinks = 3;
JM>> var theTable = parent.f_userView.myTable
JM> So this function is running in the frame, right?
JM> Does the theTable object return the object correctly?
JM> Do an alert(theTable), you should get [object].
JM> <snip/>
JM>> It works fine within a single document window,
JM> This makes me suspect that one of your object references isn't working
JM> correctly from the frame. Generally I've had better luck passing the
JM> data in the frame back to a function in the parent document that gets
JM> the object references. No need to worry about the different document
JM> objects.
JM> Just on a hunch try this instead of the above line. Might work...This
JM> is IE only right?
JM> var theTable = parent.document.all.f_userView.myTable;
______________________________________________________________________
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