Re: [xmljs-users] Javascript error from xmlIO.js
Brought to you by:
djoham,
witchhunter
From: Vini B. <got...@ya...> - 2004-08-09 11:22:16
|
Hi David, Yes, you were right. It had smething to do with more than one times. I set a delay for one of them using setTimeOut(), and it worked out okay. Thanks for the quick response. Vini David Joham <dj...@ya...> wrote: Hi Vini! I assume you're doing this with IE? What happens if you try it with Mozilla and use its javascript console or debugger? My guess is that you're getting into some kind of race condition. If what you're seeing is common usage in your environment, you might want to do some form of window.setTimeout to give the page a second or so to settle down before firing off the xmlIO IFrame. Give that a shot and see what happens... Best regards, David --- Vini Bansal wrote: > Hi Everybody, > > I'm using xmlIO.js and xmlEscape.js files to retrieve data from the server in a jsp page. > which can be seen at www.sca.ae/scamw > > If you check your internet option for "Display a notification about every javascript error" and > browse this page, and try to refresh it frequently. Sometimes it display the following > javascript error (please note only sometimes): > > Line-1 > Char-1 > Code-0 > Error-"Object doesn't support this property or method" > "URL-"http://sca.ae/scamw/datasource?guid=24354354456&callbackFunction=renderFastBar&method=getUpperPanelData§or=0 > > I have added this function in xmlIO.js, which is the one I'm calling in form load. > > function fastBarProxyLoad(proxyURL, callbackFunction, method, sector ) { > var dataSource = document.createElement("iframe"); > var guid = "guid" + new Date().getTime(); > dataSource.id = guid; > dataSource.src = __trim(proxyURL, true, true) + "?guid=" + guid + "&callbackFunction=" + > callbackFunction + "&method=" + method + > "§or=" + sector; > dataSource.style.position = "absolute"; > dataSource.style.left = "-2000px"; > document.body.appendChild(dataSource); > return guid; > > } > > > Can anybody tell me what is going wrong here. How can i trace this error in xmlIO.js file. > > Thanks, > Vini > > > > > > > > --------------------------------- > Do you Yahoo!? > New and Improved Yahoo! Mail - Send 10MB messages! > > > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail - 50x more storage than other providers! __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |