refresh data on Status bar

Oct 18, 2006 3 Replies

I would like to refresh some data in Status Bar. I use window.SetInterval() to refresh, but it doesn't work for me in this case. My code are as following:



var TimerID



function DisplayServiceName() { try { var qsRules = qsBridge.RequestQSRules(); sql="select *...";


rs = qsRules.OpenRecordSet(sql, true);



txtServiceName.value =rs("ServiceName").value;



} catch (err) { txtServiceName.value ="empty";



} }



function doStartup() { TimerID=window.setInterval("DisplayServiceName()", 500);



}

...


...



When program started, txtServiceName always = "empty". Seems never refresh



Any one have some ideas?



Thanks Leanne



When you catch the error, set the text to err.Description ( I think that works in JavaScript) instead of the static string "empty"... You're probably getting an empty recordset. It's also possible that your QSBridge reference is invalid, or that there's some javascript incompatibility. I haven't looked at this for a while, but if you look at drilldown.htm, you'll find that some things are done in VBScript and others are JavaScript. There's a reason for that, but I forgot what it is...

Glenn Adams Tiber Creek C> I would like to refresh some data in Status Bar. I use

Try this after setting the script language: ==========

GOOD LUCK

"Leanne" wrote:

Had one pc that did a status refresh and one that did not. Found out that loading java engine for windows solved the refresh problem on the one pc that was not changing status display.

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required