Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


RE: Refreshing screen while client-side script in process

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,54566
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> RE: Refreshing screen while client-side script in process
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: <<   < prev  1 [2]
Login
Message << Older Topic   Newer Topic >>
 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

(in reply to haz33)
 
 
Post #: 21
 
 RE: Refreshing screen while client-side script in process - 12/20/2007 9:23:33 AM   
  haz33

 

Posts: 13
Score: 0
Joined: 12/19/2007
Status: offline
You're right about the VALUE="" part. I didn't even think of that.

However, the ranges in the table are not set.....they're variable based on the user's input. At the top of my page, I have a FROM textbox and a TO textbox, and it's here where the user arbitrarily enters his range.

(in reply to Fredledingue)
 
 
Post #: 22
 
 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

(in reply to haz33)
 
 
Post #: 23
 
 RE: Refreshing screen while client-side script in process - 12/21/2007 4:09:20 AM   
  haz33

 

Posts: 13
Score: 0
Joined: 12/19/2007
Status: offline
I tried adding the page to the trusted domain (Tools->Internet Options->Security->Trusted sites->Sites...) and still no luck with the UNADORNED parameter.

I'm not very knowledgeable about HTA files. It seems like if you open one up in a browser, the browser asks if you want to run the file each time. So without having more knowledge about HTA files, I'd prefer to keep using .ASPX and .HTML files.

The floating DIV doesn't seem to work (unless I'm doing it wrong). Inside the DIV, I have an IFRAME that contains the progress.html file. But if I attempt to display and update the progress bar inside of my client-side VBScript, the progress bar won't show up until the procedure has completely finished.....thereby defeating the purpose of a progress bar. 

(in reply to TNO)
 
 
Post #: 24
 
 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

(in reply to haz33)
 
 
Post #: 25
 
 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

(in reply to TNO)
 
 
Post #: 26
 
 
Page:  <<   < prev  1 [2]
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> RE: Refreshing screen while client-side script in process Page: <<   < prev  1 [2]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts