How to insert a reference to a blog in my entry?
Refresh question Firefox vs IE
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What is interesting here?
• Duels
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Register!

QAIX > ASP web-programming > Refresh question Firefox vs IE 30 December 2008 14:51:05

  Top users: 
  Recent blog posts: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Модератор:

Refresh question Firefox vs IE

MikeR 26 December 2008 13:53:45
 I'm creating a table in a form, dynamically, as below. If I edit one of the text
boxes and then click the reload button in Firefox, the text box I edited keeps the
change, rather than reloading the value from the database. How can I make it reload?
If I click the Reset button of the form, it does revert.

IE acts as I would expect.

Thanks, Mike

<table border="1" cellpadding="0" cellspacing="1" style="border-colla­pse: collapse"
bordercolor="#0000F­F" width="40%">
<%Do while not CRS.EOF%>
<%ConnTemp.GetLog SanCall, CRS("Cid"), LogRS
If not LogRS.EOF and not LogRS.BOF then
LArray = LogRS.GetRows
for ACtr = 0 to Ubound(LArray,2)
response.write "<tr><td width='" & "60%" & "'>"
response.write CRS("CID") & " - " & CRS("LName") & " - " & CRS("CQ_Zone")
response.write "</td><td width='" & "20%" & "'>"
response.write "<input type='text' name='T1' size='20' value='" &
LArray(1,ACtr) & "'>"
response.write "</td>"
Next
response.write "</tr>"
Else
response.write "<tr><td width='" & "60%" & "'>"
response.write CRS("CID") & " - " & CRS("LName") & " - " & CRS("CQ_Zone")
response.write "</td><td>"
response.write "<input type='text' name='T1' size='20'>"
response.write "</td></tr>"
End If
%>
<%LogRS.Close
CRS.MoveNext
Loop%>
</table>
Add comment
Anthony Jones 26 December 2008 14:49:13 permanent link ]
 "MikeR" <nf4lNoSpam@pobox.c­om> wrote in message
news:e3nB7g0ZJHA.55­20@TK2MSFTNGP02.phx.­gbl...
I'm creating a table in a form, dynamically, as below. If I edit one of
the text boxes and then click the reload button in Firefox, the text box I
edited keeps the change, rather than reloading the value from the
database. How can I make it reload? If I click the Reset button of the
form, it does revert.
IE acts as I would expect.
Thanks, Mike
<table border="1" cellpadding="0" cellspacing="1" style="border-colla­pse:
collapse" bordercolor="#0000F­F" width="40%">
<%Do while not CRS.EOF%>
<%ConnTemp.GetLog SanCall, CRS("Cid"), LogRS
If not LogRS.EOF and not LogRS.BOF then
LArray = LogRS.GetRows
for ACtr = 0 to Ubound(LArray,2)
response.write "<tr><td width='" & "60%" & "'>"
response.write CRS("CID") & " - " & CRS("LName") & " - " &
CRS("CQ_Zone")
response.write "</td><td width='" & "20%" & "'>"
response.write "<input type='text' name='T1' size='20' value='"
& LArray(1,ACtr) & "'>"
response.write "</td>"
Next
response.write "</tr>"
Else
response.write "<tr><td width='" & "60%" & "'>"
response.write CRS("CID") & " - " & CRS("LName") & " - " &
CRS("CQ_Zone")
response.write "</td><td>"
response.write "<input type='text' name='T1' size='20'>"
response.write "</td></tr>"
End If
%>
<%LogRS.Close
CRS.MoveNext
Loop%>
</table>

I find this little bit of 'Helpfullness' from FF bizarre. I can't imagine
why anyone would want to Refresh a form whilst it has unsubmitted data and
want or expect the content to remain.

However there is nothing you can do about it. If you are delivering a UI for
public consumption you should design your app with this potential behaviour
in mind.


--
Anthony Jones - MVP ASP/ASP.NET

Add comment
MikeR 26 December 2008 15:57:19 permanent link ]
 Anthony Jones wrote:
"MikeR" <nf4lNoSpam@pobox.c­om> wrote in message
news:e3nB7g0ZJHA.55­20@TK2MSFTNGP02.phx.­gbl...
I'm creating a table in a form, dynamically, as below. If I edit one
of the text boxes and then click the reload button in Firefox, the
text box I edited keeps the change, rather than reloading the value
from the database. How can I make it reload? If I click the Reset
button of the form, it does revert.
IE acts as I would expect.
Thanks, Mike
<table border="1" cellpadding="0" cellspacing="1"
style="border-colla­pse: collapse" bordercolor="#0000F­F" width="40%">
<%Do while not CRS.EOF%>
<%ConnTemp.GetLog SanCall, CRS("Cid"), LogRS
If not LogRS.EOF and not LogRS.BOF then
LArray = LogRS.GetRows
for ACtr = 0 to Ubound(LArray,2)
response.write "<tr><td width='" & "60%" & "'>"
response.write CRS("CID") & " - " & CRS("LName") & " - " &
CRS("CQ_Zone")
response.write "</td><td width='" & "20%" & "'>"
response.write "<input type='text' name='T1' size='20'
value='" & LArray(1,ACtr) & "'>"
response.write "</td>"
Next
response.write "</tr>"
Else
response.write "<tr><td width='" & "60%" & "'>"
response.write CRS("CID") & " - " & CRS("LName") & " - " &
CRS("CQ_Zone")
response.write "</td><td>"
response.write "<input type='text' name='T1' size='20'>"
response.write "</td></tr>"
End If
%>
<%LogRS.Close
CRS.MoveNext
Loop%>
</table>
I find this little bit of 'Helpfullness' from FF bizarre. I can't
imagine why anyone would want to Refresh a form whilst it has
unsubmitted data and want or expect the content to remain.
However there is nothing you can do about it. If you are delivering a UI
for public consumption you should design your app with this potential
behaviour in mind.
Thanks, Anthony -
I was hoping for a magic <meta Cache-action="ActLi­keIE"> :-}
Add comment
Martin Honnen 26 December 2008 18:07:20 permanent link ]
 MikeR wrote:
I'm creating a table in a form, dynamically, as below. If I edit one of
the text boxes and then click the reload button in Firefox, the text box
I edited keeps the change, rather than reloading the value from the
database. How can I make it reload?

Use Shift-Reload.

--

Martin Honnen --- MVP XML
http://JavaScript.F­AQTs.com/
Add comment
MikeR 27 December 2008 01:11:59 permanent link ]
 Martin Honnen wrote:
MikeR wrote:
I'm creating a table in a form, dynamically, as below. If I edit one
of the text boxes and then click the reload button in Firefox, the
text box I edited keeps the change, rather than reloading the value
from the database. How can I make it reload?
Use Shift-Reload.
AHA! Thanks.
Add comment
Dave Anderson 30 December 2008 03:06:33 permanent link ]
 "MikeR" wrote:
Use Shift-Reload.
AHA! Thanks.

CTRL+F5 is the keyboard equivalent to Shift+[Refresh Button] in Firefox. The
regular refresh (F5) sends this header:

Cache-Control: max-age=0

When you use CTRL+F5 (or Shift+Refresh), Firefox sends these headers:

Pragma: no-cache
Cache-Control: no-cache

This can be especially useful when you are trying to bypass a caching proxy,
FWIW.



--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.

Add comment
MikeR 30 December 2008 14:25:27 permanent link ]
 Dave Anderson wrote:
"MikeR" wrote:
Use Shift-Reload.
AHA! Thanks.
CTRL+F5 is the keyboard equivalent to Shift+[Refresh Button] in Firefox.
The regular refresh (F5) sends this header:
Cache-Control: max-age=0
When you use CTRL+F5 (or Shift+Refresh), Firefox sends these headers:
Pragma: no-cache
Cache-Control: no-cache
This can be especially useful when you are trying to bypass a caching
proxy, FWIW.

Thanks, Dave. If there was just some way to do that in code......
HNY
Add comment
Martin Honnen 30 December 2008 14:51:05 permanent link ]
 MikeR wrote:

If there was just some way to do that in code......

location.reload(tru­e)



--

Martin Honnen --- MVP XML
http://JavaScript.F­AQTs.com/
Add comment
 

Add new comment

As:
Login:  Password:  
 
 
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или законы РФ. Ваш ip-адрес записывается.


QAIX > ASP web-programming > Refresh question Firefox vs IE 30 December 2008 14:51:05

see also:
problems reading directory entries…
... of Mating and Security
Oracle/PHP unable to read VARCHAR2 from…
pass tests:
see also:
Nu kak vam moi diz?
:-D Hey, I've got a pretty lot of...
13 Must Have Firefox Extensions for Web…

  Copyright © 2001—2010 QAIX
Идея: Монашёв Михаил.
Авторами текстов, изображений и видео, размещённых на этой странице, являются пользователи сайта.
See Help and FAQ in the community support.qaix.com.
Write in the community about the bugs you have noticedbugs.qaix.com.
Write your offers and comments in the communities suggest.qaix.com.
Information for parents.
Пишите нам на .
If you would like to report an abuse of our service, such as a spam message, please .
Если Вы хотите пожаловаться на содержимое этой страницы, пожалуйста .