similar to: Page expires when using back button

Displaying 20 results from an estimated 100000 matches similar to: "Page expires when using back button"

2007 Jun 19
4
back button for AJAX in rails
Greetings all, I am wondering are there any thing like link_to_remote(:update, :url) in rails which preserves the navigation feature (back & forward button as well as bookmarks) of the browser? Thanks very much! Cheers, Difei -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google
2008 May 08
0
On 'Back' button of browser, drop down doesn't get refreshed
Hey guys, i have a drop down in my UI, which value gets filled by session[:sale]. <%= select_tag :sale_id, options_for_select([["Select Sale", "0"]] + @sales.collect { |s| [s.name, s.name] }, selected = session[:saleid]), { :id => "sale_id", :onchange => "search_verify();" } %> I have a post on, ''onchange'' event of it. if i
2007 Jul 20
3
Mozzila Logout back button issue
Hello, I have recently created an application in Rails which makes use of a login and logout system. I have a user controller and model as well as a login controller. My login controller performs my logout and login functions. The user is a scaffold of my database table and is auto generated from rails. def process_login #Creates the user with the form variables i have not included the
2009 Jun 19
1
Session Reset when clicking back button of the browser
hi friends... here is my query.... kindly give ur views pls... after logging into the application,i redirect to company list page.now when user clicks the browser back button it should show the login page.that is i want to destroy the session.so in my login controller i have written code below. def log_in if request.get? reset_session end end in my routes.rb map.root :controller =>
2009 Mar 19
3
Settings for CDN, GZip, Header Expires for BEtter Yslow
Hi On my website i m getting B Grade with 87 points. Now i want to make it A and there is a scope to do that. I have added Google Analytics code which is y my gzip component and header expire grade goes to B from A. I need to use Google Analytics so cant i set header expires and gzip that? Another thing is that CDN is not something for a small website. So isnt there a way out where we can set
2008 May 16
3
radio button observe field only triggers once
Hi, If i add field observers to radio button fields they trigger once but then nothing after that. I have multiple fields in a form that i need to know if one of them changes and which spedific field. Below is an example of two foelds i tested and they trigger once with the alert but then nothing after that. I also tried individual observers for each field test_yes and test_no but with the same
2009 Mar 14
2
Rails, lighttpd and the Expires header
I have a controller that serves up images from a different location from /public/images/ by using send_file or send_data on /media/thumbs/ 38 for example In lighttpd I have: expire.url = ( "/media/" => "access 10 years", "/stylesheets/" => "access 10 years" , "/javascripts/" => "access 10 years",
2006 Jul 12
3
Ajax, the Back button, and Sweepers
I''m working on an app that''s basically forms and that makes fairly heavy use of Ajax. As a result of the Ajax usage, if the visitor uses the back button they get the page as it was originally loaded, not as they left it. I''ve looked at the Sweeper documentation and can not tell for sure that it''ll do what I want, which is to force an unconditional reload from
2008 Apr 30
5
Quick Submit Button Question...
Hello, Can I pass a variable from a submit button only? I have a form that the user fills out and I need two different submit buttons - one for ''sync'' and one for ''full push''. I was thinking I could add some sort of param to the button, but it''s not working... is there a way to do this? I have this: <%= submit_tag ''push to
2008 Jul 18
2
disabled save button when pdf generated
Hi I m new in Ireport, I want to dasabled the save button for generated PDF file and also not allowed to copy past. can any body help me. Thanks and Regards Kundan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2008 Mar 19
6
Back button behavior has changed again in Safari 3.1, after doing a dom update via ajax/RJS
GAH! Here is the firefox behavior, which is perfect: 1) View page 1 2) Update some text by using link_to_remote or remote_form_for, along with an RJS replace or replace_html 3) Navigate to page 2 4) Hit back 5) Page was cached with dom updates, note that the page is show in the same state as it was left Safari 3.0 behavior 1..4) repeat 5) Page reloads, ending up in the state where it was left
2007 May 16
1
Finding the Button inside the CELL
Hi all Here i am stuck to a problem . i want to execute the click event of a button which is being located in the table cell which dont have any id. So please give me any solution for that. Example: <table id="MainTable"> <tr> <td> <table id="ShipTableMenu" > <tr> <td><input type="button"
2007 Mar 24
2
Why not giving every link, button etc. tag a unique id attr?
Hi all I''m playing around with Selenium IDE for creating automated acceptance tests for my RoR projects (very cool tool by the way). Often it''s the easiest way to pass a HTML-tag ID to Selenium to perform actions such as clicking on a link or submitting a form. Sadly Rails does not automatically create ID attrs for many tags like links or buttons. Has this a special reason? Or
2009 Feb 17
1
How to show div with radio button onclick
I am trying to get a div to show when a radio button is clicked but the problem is that the div is dynamically named. I am using the normal html for a radio button: <input type="radio" name="edit_option" checked="checked" value="this_appt"> Because observe field does not work well with radio buttons. I have tried adding an onclick with the div id:
2009 Apr 12
3
Multi-button form
It cannot be this difficult, especially in rails. Here is my form code in a partial for the index action of a controller: <% form_tag({:controller => controller_name, :action => ''index''}, {:method => :get, :class => ''form''}) do %> <div class="columns"> <div class="column left"> <p>
2008 Apr 01
2
Rails Mail ISSUE
Hi, I have the following configuration in the development.rb defined for sending mail thorugh rails. The same works on a local machine but it does not work on the server. I get a timeout error : execution expired. Can anyone tell me whats wrong. config.action_mailer.delivery_method = :smtp #these options are only needed if you choose smtp delivery config.action_mailer.smtp_settings = {
2008 Dec 07
0
boolean button helper
I don''t have a blog, but wanted to share this little bit of code with other semi-beginners like myself who are still learning to take advantage of rails features. Selecting an attribute with a boolean switch is a common pattern in forms. You can do it with a check box, but radio buttons are more expressive in some situations and better convey to the user that they are making a mandatory
2006 Feb 22
1
Back returns "Warning: Page has Expired" ?!?!
Hey, I''ve found that certain browsers (IE and Ffx in particular) display a warning page whenever the user clicks on the ''back'' button after having just come from a page generated by a post. This makes perfect sense, it warns users about duplicate rows being entered etc. However! Is there anyway to gracefully redirect the user to a ''safe'' page say
2007 Sep 26
3
Ajax without submti button?
I have a drop down list, how can I set it up to send request when selecting an option rather than pressing submit button after selection? And how can I save values of checkboxex/radio buttons without submit? Thanks -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby
2008 May 07
1
Change Focus of Radio Button
Hey ya''ll... Love learning Prototype so far... ran into a small problem today, from my google search it doesn''t seem like there is an easy way to do this... i hope i have assumed wrong! I need to change the focus of a radio button... I currently use this code to call focus to the first form element... i tried to reuse it to do radio buttons with no success