473,498 Members | 1,942 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Eliminate postback flicker WITHOUT smartnav

Can it be done? I'd go to almost any length to implement a solution.
I've tried <meta http-equiv="Page-Enter"
content="blendTrans(Duration=0.01)"> to no avail.

Thanks!

Jeff C.

Nov 19 '05 #1
8 1971
I don't know of any other solution other then smart navigation.

The only other way is to eliminate postbacks altogether. Meaning, that
clicking a button needs to result in client side javascript code, that uses
XMLHTTP or the equivalent to post to some page behind the scenes passing it
information. This will result in no flickering, but of course is a
significant rewrite and doesn't really follow the ASP.NET server side object
model.

"ujjc001" <uj*****@gmail.com> wrote in message
news:11**********************@c13g2000cwb.googlegr oups.com...
Can it be done? I'd go to almost any length to implement a solution.
I've tried <meta http-equiv="Page-Enter"
content="blendTrans(Duration=0.01)"> to no avail.

Thanks!

Jeff C.

Nov 19 '05 #2
Jeff,
I concur with the previous response, but wanted to add that there is a
non-smart navigation solution for scroll positioning, perhaps there's
more to there approach:

http://aspnet.4guysfromrolla.com/articles/111704-1.aspx

Also, I use SmartNavigation, and have managed to work around some of
the quirks that are frequently mentioned. The main issue I had was
combining autopostback and smartnav caused some interesting tab
position results. I was able to fix them. Maybe you could post what you
are trying to accomplish, and maybe there's a smart-nav way of doing
it.

Just my two cents.
Jason

Nov 19 '05 #3
I dont have any solution/advice I'm afraid, as I'm new to .Net, just
interested to hear why the flicker is such an issue? (Perhaps to avoid
something I might encounter in the future!)

"ujjc001" <uj*****@gmail.com> wrote in message
news:11**********************@c13g2000cwb.googlegr oups.com...
Can it be done? I'd go to almost any length to implement a solution.
I've tried <meta http-equiv="Page-Enter"
content="blendTrans(Duration=0.01)"> to no avail.

Thanks!

Jeff C.

Nov 19 '05 #4
It takes away from the quality of the user's experience.

"Simon Harris" <to***********@makes-you-fat.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
I dont have any solution/advice I'm afraid, as I'm new to .Net, just
interested to hear why the flicker is such an issue? (Perhaps to avoid
something I might encounter in the future!)

"ujjc001" <uj*****@gmail.com> wrote in message
news:11**********************@c13g2000cwb.googlegr oups.com...
Can it be done? I'd go to almost any length to implement a solution.
I've tried <meta http-equiv="Page-Enter"
content="blendTrans(Duration=0.01)"> to no avail.

Thanks!

Jeff C.


Nov 19 '05 #5
The system I am working on developing will be a main application used
in a call center environment. Having to look at this flicker so much
would drive our employees nuts! :o)
I use code for setting my scroll position and for focusing. My main
problems with smartnav were the inability to setfocus, however, now
that you mention it, one problem I was able to overcome was setting the
scroll position w/out smartnav, in the process of that I changed my
setfocus code to have a slight delay. I bet that would work w/smart
nav. That would be nice.
Here's my setfocus code
'---------------------Begin SetFocus-----------------
Public Shared Sub SetFocus(ByVal strControl As String, ByVal frm As
Page)
frm.RegisterStartupScript("focus", "<script
language=""JavaScript"">" & vbCrLf & vbTab &
"window.setTimeout(""document.getElementById(' " & strControl &
"').focus()"",10);" & vbCrLf & "<" & "/script>") '
document.getElementById('" & strControl & "')
End Sub
'--------------------End SetFocus-------------------

I'm going to have to try that now. Boy, I'd have to kick myself if it
works.
I'll post again when I find out. Thanks for the help.
Jeff

Nov 19 '05 #6
I love how fast google posts replies now, even though I don't like the
format as much. Anyhow, my code for focus still does not work. I need
to have the user be focused on one textbox after info is added into the
first. I just end up staying in the first. Can I see your setfocus
code by change? Perhaps it will help.
Thanks.

Nov 19 '05 #7
Woo Hoo! I just changed my timeout from 10 milseconds to 50. It
works! (still interested in your examples thought, thanks)
Jeff

Nov 19 '05 #8
Jeff,
Here's what I've got:

The code looks more convoluted now then when I worte it, but I seem to
remember spending some time on this. So all of this must be for good
reason. If you are able to trim it up, write back. :)

Jason

Private Sub fixFocus(ByVal controlToFocus As WebControl, ByVal
firstControl As WebControl)
'due to autopostback and smartnavigation being turned on,
we must run through this
' to fix the focus when we return.
Dim focusScript As String = "if (var1 == 1){var1 = 0;
document.getElementById('" + controlToFocus.ClientID + "').focus()};"
firstControl.Attributes.Add("onfocus", focusScript)
RegisterStartupScript("focusstartup", "<script
language=Javascript>var1=1;</script>")

End Sub

Nov 19 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
3846
by: Marek Mänd | last post by:
This seems an IE issue only: 4253 bytes testcase: http://www.hot.ee/idaliiga/testcases/ieselect/bnlinkingselectinmsie.htm Can one have 1) a mouseover/mouseout element on TBODY 2) change in...
0
1889
by: mp3boss | last post by:
I am updating a string in the format MM:SS every second using the On_Timer event in Access97 by changing the caption of a label. Even though I'm using 8point text, the box sometimes flickers...
2
1640
by: Jeff Voigt | last post by:
Is there any way to dynamically get the name of the control that caused the postback? Since SmartNav is not working for me I'm trying to implement a way to scroll to the control that caused the...
1
2396
by: Oleg Ogurok | last post by:
Hi all, I have a small image ("Loading..." icon) that I hide using Javascript once the page finishes loading. To do so, I attach to the client side onload event. However, as soon as I turn on...
7
3347
by: Tony Girgenti | last post by:
Hello. I'm trying to undetrstand ASP.NET 2.0 and javascript. When i have a button and i click on it and i see the web broswer progress bar at the bottom do something, does that mean that there...
2
9122
by: wildman | last post by:
RE: Gridview textbox has data check without postback.. javascript? I have a gridview with a textbox. I can set the textbox to autopostback and check for a value in a prerender event to decide if...
3
4872
by: pechar | last post by:
Hi all, First of all I've searched the net but with no luck. My problem is I have a master/detail webform. i.e. the user clicks a record from the list and I show a modalpopup with the data. Here...
0
1905
by: pechar | last post by:
I've posted this in the AJAX section but was told I'll have more luck here so : Hi all, First of all I've searched the net but with no luck. My problem is I have a master/detail webform. i.e....
3
1716
by: Cirene | last post by:
I have a simple page - 2 dropdowns, 2 textboxes. 1 set of dropdown/textbox is in the updatepanel. 1 set of dropdown/textbox is not. When I select a dropdown the textbox is updated with teh...
0
7002
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7165
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7203
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5462
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4588
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3093
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3081
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
656
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
290
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.