* FAQ    * Search  * Register * Login 
Active topics
Unanswered topics

All times are UTC-06:00



Post new topic  Reply to topic  [ 18 posts ] 
Author Message
 Post subject: Blinking form on page refresh in MSIE...
PostPosted: Tue Dec 05, 2006 5:27 pm 
Offline
DBB Fleet Admiral
DBB Fleet Admiral
User avatar

Joined: Thu Nov 05, 1998 12:01 pm
Posts: 2700
Website: http://home.swbell.net/wa5czn/index1.html
Location: Oklahoma City, Oklahoma, United States of America
Definition: MSIE = Microsoft Internet Explorer.

---

We have a web application that refreshes multiple instances of the same ASP file.

In each iteration of that ASP file, the page blinks every time that the ASP file does a page refresh. This ASP file finds the highest filename on the highest directory tree on the selected directory on a web site. (The \"files\" are uploaded using our FTP client from mobile vehicles.)

Basically I have all the logic needed to do everything except to get rid of the darn blinking issue in Microsoft Internet Explorer 6.x or greater.

Same ASP files have NO issues in Firefox 2.0!

In a nutshell, First ASP builds the framework of the page and the Second ASP is passed parameters from the First ASP file. The Second ASP file automatically refreshes itself every 5 seconds.

Any easy ideas on how to reduce or stop the blink in MSIE?

Thanks,
SirWinner


Top
   
 Post subject:
PostPosted: Wed Dec 06, 2006 7:23 am 
Offline
DBB Alumni
DBB Alumni
User avatar

Joined: Wed Mar 15, 2000 3:01 am
Posts: 8826
Location: Seattle
Why are you refreshing the page multiple times? You should be able to do what you want with a little bit of JavaScript (look into XMLHttpRequest). I believe ASP.NET even has stuff like that built-in.

It's how all the \"web 2.0\" sites are able to offer so much activity.

Now as to the actual problem, I think what's happening is that your page is being refreshed, and IE is rendering as-it-downloads. The problem is it receives a chunk of data that can't be rendered yet, and throws up a blank screen until it gets enough data that something can be rendered.


Top
   
 Post subject:
PostPosted: Wed Dec 06, 2006 5:48 pm 
Offline
DBB Fleet Admiral
DBB Fleet Admiral
User avatar

Joined: Thu Nov 05, 1998 12:01 pm
Posts: 2700
Website: http://home.swbell.net/wa5czn/index1.html
Location: Oklahoma City, Oklahoma, United States of America
Quote:
Why are you refreshing the page multiple times?


The simple answer is that we are allowing someone to monitor the activity of recently transmitted pictures from a remote \"unit\" to an FTP site showing only the latest picture being displayed for each \"unit\".
- The second ASP file to parses to find that latest file. This is done.

The latest picture for each unit is what get updated in a web table (3x3, 4x4, etc.) within its' own iFrame for presentation in a web browser.

The first ASP only gets used once to setup each iFrame in the table and passes the \"unit\" information to the second ASP which updates the image for that frame based on a predetermined interval.

These 2 ASP files work great in Firefox 2.0! No blinking, no problems.

Just want to get this to work for MSIE 6.x and later versions for those that insist on using MSIE!

In other words, I want our ASP files to work regardless of which internet browser someone uses to view these pages. Otherwise this job is not complete until this is done!

I'll look into XMLHttpRequest using JavaScript like you suggested.

Trying to use purely ASP (and Javascript if needed) to do this... Would rather not use: (1) an ASPx file via ASP.Net; or (2) add-on ActiveX controls for this page!

Thanks.

8)


Top
   
 Post subject:
PostPosted: Thu Dec 07, 2006 5:45 pm 
Offline
DBB Fleet Admiral
DBB Fleet Admiral
User avatar

Joined: Thu Nov 05, 1998 12:01 pm
Posts: 2700
Website: http://home.swbell.net/wa5czn/index1.html
Location: Oklahoma City, Oklahoma, United States of America
DCrazy,

Since Internet Explorer requires the images to be loaded or blink the form, I'll make sure that they are loaded before updating the frames using XmlHTTPRequest methodology... Will use \"cookies\" to prevent the same image from getting loaded every time the page refreshes.

The 2 ASP files will turn into 4 ASP files... but at least it will work a lot better overall!

Thanks for the feedback!

8)


Top
   
 Post subject:
PostPosted: Fri Dec 08, 2006 10:16 pm 
Offline
DBB Alumni
DBB Alumni
User avatar

Joined: Wed Mar 15, 2000 3:01 am
Posts: 8826
Location: Seattle
No problem. :)

You probably shouldn't do the cookie thing though, if it's for the purpose I think it is -- cache control. You don't know what the client's cache configuration is like, especially because IE deletes/refuses to cache things based on available HDD space. And IE will cache things downloaded through XMLHttpRequest just the same as anything else, so you're not really gaining anything by not requesting the image, 'cause if IE finds it in the local cache then it will use the local version until the cached version expires or the user uses Ctrl+Refresh.


Top
   
 Post subject:
PostPosted: Mon Apr 19, 2010 4:02 am 
very useful ideas are discussed thanks.....


Top
   
 Post subject:
PostPosted: Mon Apr 19, 2010 5:24 am 
Offline
DBB Admiral
DBB Admiral
User avatar

Joined: Sun Jun 06, 2004 2:44 am
Posts: 1497
ICQ: 17713745
Website: http://www.radnimax.com
WLM: xamindar@gmail.com
Yahoo Messenger: xamindar
AOL: xamindar
Location: California
Lol, I was gonna say \"Who in their right mind uses asp anymore in web development?\" until I saw the date. :lol:

_________________
Why doesn't it work?


Top
   
 Post subject:
PostPosted: Mon Apr 19, 2010 9:51 am 
Offline
DBB Master
DBB Master
User avatar

Joined: Fri May 28, 1999 2:01 am
Posts: 5426
ICQ: 28874658
Website: http://www.povterminal.net/
Location: Bellevue, WA
Necro-poster is suspicious. Why register and pull up a four-year-old thread to say that? Might not be a spam-bot, but I do wonder.

ASP.NET/.NET MVC appear to be used by quite a few people, also - although original ASP, not really now.


Top
   
 Post subject: Re:
PostPosted: Mon Apr 19, 2010 12:25 pm 
Offline
DBB Ghost Admin
DBB Ghost Admin
User avatar

Joined: Thu Nov 05, 1998 12:01 pm
Posts: 12133
Website: http://www.tomandcatherine.com
Location: I'm so glad to be home
Sirius wrote:
Necro-poster is suspicious.


http://www.google.com/#hl=en&source=hp&q=susan123

registered for several dozen forums over the last 2 weeks, with little to nothing in common with each other. Typically one post per forum, saying something similar -- how thankful HE is for such helpful information. Yeah, that's pretty suspicious.

Account deactivated. If this is a real person, which it's not, but if it is, please drop me an e-mail at tom [shift-2] tomandcatherine [decimal point] [the first three letters in the word to describe ads that interrupt TV viewing] and I'll reactivate it.


Top
   
 Post subject: Re:
PostPosted: Mon Apr 19, 2010 1:58 pm 
Offline
DBB Admiral
DBB Admiral
User avatar

Joined: Sun Jun 06, 2004 2:44 am
Posts: 1497
ICQ: 17713745
Website: http://www.radnimax.com
WLM: xamindar@gmail.com
Yahoo Messenger: xamindar
AOL: xamindar
Location: California
Lothar wrote:
Account deactivated. If this is a real person, which it's not, but if it is, please drop me an e-mail at tom [shift-2] tomandcatherine [decimal point] [the first three letters in the word to describe ads that interrupt TV viewing] and I'll reactivate it.

I don't get it......shift-2 on my keyboard gives me a ". :lol:

_________________
Why doesn't it work?


Top
   
 Post subject: Re:
PostPosted: Mon Apr 19, 2010 4:04 pm 
Offline
DBB Ghost Admin
DBB Ghost Admin
User avatar

Joined: Thu Nov 05, 1998 12:01 pm
Posts: 12133
Website: http://www.tomandcatherine.com
Location: I'm so glad to be home
Xamindar wrote:
Lothar wrote:
Account deactivated. If this is a real person, which it's not, but if it is, please drop me an e-mail at tom [shift-2] tomandcatherine [decimal point] [the first three letters in the word to describe ads that interrupt TV viewing] and I'll reactivate it.

I don't get it......shift-2 on my keyboard gives me a ". :lol:


*points and laughs*

you got stuck with Dvorak! You got stuck with Dvorak!


Top
   
 Post subject: Re:
PostPosted: Mon Apr 19, 2010 10:40 pm 
Offline
DBB Admiral
DBB Admiral
User avatar

Joined: Sun Jun 06, 2004 2:44 am
Posts: 1497
ICQ: 17713745
Website: http://www.radnimax.com
WLM: xamindar@gmail.com
Yahoo Messenger: xamindar
AOL: xamindar
Location: California
Lothar wrote:
*points and laughs*

you got stuck with Dvorak! You got stuck with Dvorak!

Haha, I always wanted to give a Dvorak keyboard a try. I'm actually on my wifes computer which has a Japanese keyboard. The @ gets its own non-shift key which is pretty nice. The layout of this keyboard seems a lot more sane except for the '.

(wife wants to play her game on my computer with the better video card so I'm often stuck on hers)


Top
   
 Post subject:
PostPosted: Tue Apr 20, 2010 3:42 pm 
Offline
DBB Ace
DBB Ace
User avatar

Joined: Sun Jul 05, 2009 11:36 am
Posts: 406
Location: Right Behind You
D00d i r lieked teh int3resting id3as too.

_________________
Amg! It's on every post and it WON'T GO AWAY!!


Top
   
 Post subject:
PostPosted: Sat May 08, 2010 9:23 pm 
Offline
DBB Fleet Admiral
DBB Fleet Admiral
User avatar

Joined: Thu Nov 05, 1998 12:01 pm
Posts: 2700
Website: http://home.swbell.net/wa5czn/index1.html
Location: Oklahoma City, Oklahoma, United States of America
Forgot how exactly how this was fixed.

IF I remember correctly it was a page load HTML Tag dealing with a delay but don't recall what it is called.

It was ONLY MSIE (Microsoft Internet Explorer) that had the darn blinking issue... the same web page worked great for Firefox and Opera in those initial tests.

:)


Top
   
 Post subject:
PostPosted: Mon May 10, 2010 3:09 pm 
Offline
DBB DemiGod
DBB DemiGod
User avatar

Joined: Sat Oct 24, 1998 2:01 am
Posts: 6415
Location: Calgary Alberta Canada
well, two questions... as old as this thread is:

SirWinner, where you setting the width and height tags on the img elements for the pictures, and where you using complete templates or writing to the outgoing stream?


Top
   
 Post subject:
PostPosted: Thu May 13, 2010 1:11 pm 
Offline
DBB Fleet Admiral
DBB Fleet Admiral
User avatar

Joined: Thu Nov 05, 1998 12:01 pm
Posts: 2700
Website: http://home.swbell.net/wa5czn/index1.html
Location: Oklahoma City, Oklahoma, United States of America
fliptw,

The blink was fixed by adding this in the Meta Tag section in the ASP Page:

content=\"BlendTrans(Duration=0.01)\"

---

If I remember correctly, only used 3 ASP Pages.

The master ASP page controlled base content of the page, the size of the iFrames, and how many sets of iframes were used based on a ? parameter on the Web Address:

1 x 1 (1 iFrame)
2 x 2 (4 iFrames)
3 x 3 (9 iFrames)
4 x 4 (16 iFrames)
5 x 5 (25 iFrames)
6 x 6 (36 iFrames)

Each iFrame was a fixed size based on the number of iFrames. Image Width and Image Height were set to fixed values based on how many iFrames were to be used.

If 1 x 1 then the largest Width and Height were used.

If 6 x 6 then the smallest Width and Height were used.

Took a lot of experimenting to get it where we wanted them WITHOUT scroll bars on the iFrames.

The Image Width and Image Height were passed to the Display ASP file that displayed the individual iFrames along with a \"unit number\". That ASP file parsed a directory tree for ONLY the \"unit number\" passed, found the highest file name, then displayed that picture at the chosen Image Width and Image Height. If no image found, then a dummy image was used as a placeholder.

The third ASP file was used to view the specific directory to see more images for the selected \"unit number\". Which brought up something like this page:

http://www.bganx.com/FotoMover/Demo/Fot ... 43&COLOR=1

Hope that helps some.

SirWinner


Top
   
 Post subject:
PostPosted: Sat May 15, 2010 12:05 pm 
Offline
DBB DemiGod
DBB DemiGod
User avatar

Joined: Sat Oct 24, 1998 2:01 am
Posts: 6415
Location: Calgary Alberta Canada
you could've done that in two pages(well, one if you wanted to really abuse AJAX) and with no iframes.


Top
   
 Post subject:
PostPosted: Sun May 16, 2010 1:32 am 
Offline
DBB Fleet Admiral
DBB Fleet Admiral
User avatar

Joined: Thu Nov 05, 1998 12:01 pm
Posts: 2700
Website: http://home.swbell.net/wa5czn/index1.html
Location: Oklahoma City, Oklahoma, United States of America
fliptw,

Hind sight is almost always 20 / 20.

Had to get it to work first.

You can always learn to tweak things once you understand how things work by having a working model.

---

Years ago I had a complex project with a lot of little pieces all in separate programs.

Using the knowledge of what we had already done... We rewrote the project using only 1 program. Dropped some unnecessary code and added in a lot more features in the long run.

---

One could always argue about the best way to do something like writing a simple \"Hello\" program without clearing the screen in a console application using the least executable size.

I have a sample Assembly Program for IBM PC Compatibles that will do it in a mere 15 bytes. (6 bytes of that are \"Hello$\" and 9 bytes of actual code.)

It could be done in perhaps 1 byte or so less.

---
; Use MS-DOS Print Message to Screen Function
MOV AH,09
MOV DX, Message
INT 21h

; Exit to MS-DOS
INT 20h

Message:
DB \"Hello$\"
---

Hello.com consists of these hexadecimal values:
B4 09 BA 09 01 CD 21 CD 20 68 65 6C 6C 6F 24

---

To do the same thing 20+ years ago in C++ would require at least 30K of executable code because of all the excess stuff that was linked into the executable.

SirWinner


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 18 posts ] 

All times are UTC-06:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Descent'rs have piloted these pages
 
The layout and contents contained within this site are © DescentBB.net 1997-2006.
Descent, Descent II are © Parallax Software Corporation.
Descent III is Outrage Entertainment.
Descent is a Trademark of Interplay Productions.

Miner Wars™ is trademark of Keen Software House s. r. o.
.


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group