Welcome, Guest
Username: Password: Remember me

TOPIC: Input fields showing wrong values after refresh

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

  • Tomaselli
  • Tomaselli's Avatar
  • Offline
  • Elite Member
  • Posts: 293
  • Thank you received: 87
  • Karma: 46
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.
The administrator has disabled public write access.

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

  • Tomaselli
  • Tomaselli's Avatar
  • Offline
  • Elite Member
  • Posts: 293
  • Thank you received: 87
  • Karma: 46
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.
Last Edit: 06 Jun 2012 08:42 by Tomaselli. Reason: added comment
The administrator has disabled public write access.
The following user(s) said Thank You: admin

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

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

It is solved in the next V2.0 with JForms
Coding is now a piece of cake
The administrator has disabled public write access.

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

  • edwardcox
  • edwardcox's Avatar
  • Offline
  • Premium Member
  • Here to help.
  • Posts: 131
  • Thank you received: 26
  • Karma: 12
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.
The administrator has disabled public write access.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Let's say next month.
Coding is now a piece of cake
The administrator has disabled public write access.
Time to create page: 0.077 seconds

Get Started