refresh data on Status bar

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

Reply to
Leanne
Loading thread data ...

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

Reply to
Glenn Adams [MVP - Retail Mgmt]

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

GOOD LUCK

"Leanne" wrote:

Reply to
Robert McAllister

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.

Reply to
DC

BeanSmart website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.