Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Input fields showing wrong values after refresh 06 Jun 2012 07:52 #2488

Hi Admin,
when I fill a form and I refresh the page, I see the values of the input field are still there even if the real values of the input fields could be different.
This is due to the browser. The browser shows what it is the last value set in the input field, and it doesn't consider what the HTML contains.

solutions:
1) use the attribute autocomplete="off" in the input fields
2) set cookies for the input fields
3) use some javascript to check the real value of the input fields and what it is shown to the user.

Please Log in or Create an account to join the conversation.

Re: Input fields showing wrong values after refresh 06 Jun 2012 08:41 #2489

I simply solved it adding the:

autocomplete="off"

to the attribute of the form

It's not the best solution, but it's easy and clean and it's better than have wrong values showing in the form.
The following user(s) said Thank You: admin

Please Log in or Create an account to join the conversation.

Last edit: by Tomaselli. Reason: added comment

Re: Input fields showing wrong values after refresh 06 Jun 2012 09:29 #2490

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Yes, this is a browser issue.

It is solved in the next V2.0 with JForms
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

Re: Input fields showing wrong values after refresh 06 Jun 2012 09:59 #2491

Hi Jocelyn,

I had to ask (because I know everyone is dying to ask)... Do you have an approximate ETA for 2.0? :)

Thank you,

Edward.
Passionate Joomla! Developer and J-Cook pro evangelist.
www.jcombuilder.com - we build great Joomla!® Components so you don't have to.

Please Log in or Create an account to join the conversation.

Re: Input fields showing wrong values after refresh 07 Jun 2012 09:24 #2500

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Let's say next month.
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.062 seconds

  I want to save the world...... let's cook a solution about it.
VeCrea (Forum)

Get Started