Re: IE6 not repopulating form fields on back button in Ruby on Rai


Go Back   Computer Help Articles > Internet Explorer 6
User Name
Password
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-05-2006, 04:20 PM
Tyler Kovacs
 
Posts: n/a
Default Re: IE6 not repopulating form fields on back button in Ruby on Rai

Mike,

Great news! I finally got it to work and you were right - it was due to the
headers. I discovered that IE would not repopulate form values unless
certain headers were set correctly. The three headers I had to set to get
it working were:

ETag
Cache-Control
Last-Modified

By default, Ruby on Rails does not set these headers on responses. Now,
here's the gotcha. The form I was working with was embedded in an iframe
within the main page and it turns out that IE refused to repopulate this form
even when I had the headers set correctly for the HTTP connection serving the
iframe content. Try as I might, I just couldn't get it to work. I worked
around this problem by setting up hidden form values in the main page and
using javascript within the iframe to get the data from the main page form
fields. It's kinda ugly, but it works.

Now our users can happily hit the back button on IE and our AJAX calendars
will return to the view type and date that they were at when they left the
page. I'm very happy. Thanks for your help!

Tyler
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Back Button staying on same page Rickuml Internet Explorer 6 1 01-05-2006 04:31 PM
Strange operation of Back Button Vic Baron Internet Explorer 6 2 01-05-2006 04:30 PM
Re: Back button doesn't work; can't have more than one window open Frank Saunders, MS-MVP OE Internet Explorer 6 1 01-05-2006 04:20 PM
back button problem Ninip Windows XP New Users 2 01-05-2006 02:59 AM
back button not working prperly Ninip Windows XP Basics 1 01-05-2006 02:04 AM


All times are GMT. The time now is 01:15 PM.


Powered by vBulletin Version 3.5.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd. SEO by vBSEO 2.3.2 © 2005, Crawlability, Inc.

Re: IE6 not repopulating form fields on back button in Ruby on Rai