Login | |
|
 |
RE: Refreshing screen while client-side script in process - 12/20/2007 9:11:40 AM
|
|
 |
|
| |
Fredledingue
Posts: 383
Score: 0
Joined: 5/9/2005
From:
Status: offline
|
quote:
ORIGINAL: haz33 Good idea, but it won't work in my situation. The user is able to edit each individual text box as well. So the text for any particular text box is not necessarily blank.....in fact, it could be anything. On top of that, the user also has the choice of editing an explicit range of rows in the table. Thanks for the idea though! The value contained in value="" doesn't depends of what the user typed in the boxes. It depends only on the hardcoded html code. The text box will appear blank when the user open the hta interface. Don't they? What users are writing in them doesn't affect hardcoded html code. The method .innerHtml won't read user input. For applying changes to some range of rows, set span code tags: <span id="Range1">...</span> Then modify the html enclosed into the span tag only document.form.Range1.innerHtml = etc ....
_____________________________
Fred
|
|
| |
|
|
|
 |
RE: Refreshing screen while client-side script in process - 12/20/2007 7:36:42 PM
|
|
 |
|
| |
TNO
Posts: 1247
Score: 10
Joined: 12/18/2004
From: thenewobjective.com
Status: offline
|
If your program is running through a browser, the client has to add your page to the trusted domain (this usually works). The alternative is using a client side hta with an embedded iframe that redirects to your asp page (<iframe src="myPage.aspx" application="yes" style="width:100%;height:100;">). If these are not options, and if you cant rely on the client having you trusted the alternative is using a pretend popup window (a floating div). between the DIV and your page you could have a transparent picture perhaps that spans the size of the page preventing interaction. It would take a bit of recoding though to do from the scripts current form for this option. Another idea is using JS to overload the window.alert() function to create a modal box of sorts: http://slayeroffice.com/code/custom_alert/ I like this method since its cross-browser too.
_____________________________
To iterate is human, to recurse divine. -- L. Peter Deutsch
|
|
| |
|
|
|
 |
RE: Refreshing screen while client-side script in process - 12/21/2007 8:38:17 AM
|
|
 |
|
| |
TNO
Posts: 1247
Score: 10
Joined: 12/18/2004
From: thenewobjective.com
Status: offline
|
quote:
the progress bar won't show up until the procedure has completely finished Common problem with vbscript with a variety of situations. Using setTimeOut() would allow time for the update to show (slows down overall progress though). I'll play with it a little to see if I can make a self-contained library for use. (Its a bit overdue for an update anyway).
_____________________________
To iterate is human, to recurse divine. -- L. Peter Deutsch
|
|
| |
|
|
|
 |
RE: Refreshing screen while client-side script in process - 12/21/2007 10:59:39 AM
|
|
 |
|
| |
TNO
Posts: 1247
Score: 10
Joined: 12/18/2004
From: thenewobjective.com
Status: offline
|
Ok heres a rewritten version as a proof of concept with vbscript:(Open this with Internet Explorer in a new window just in case it freezes, its 4,000 elements) http://thenewobjective.com/temp/progress.html The progress bar is in an external library as an object for easier use. Simple API: progress.init() <--do this before using the progress bar so it loads the bar to the page <body.onload="progress.init()"> or similar. progress.show() <--Show the progress bar progress.hide() <--hide the progress bar progress.progress(part/whole) <--update progress
_____________________________
To iterate is human, to recurse divine. -- L. Peter Deutsch
|
|
| |
|
|
|
|
|