I’m using this form in an edit page to update a person. For some weird reason, when I view this form in the browser… The text field’s value is set to the person’s firstname, but it does not display in the browser.
The form works perfectly on Windows (the values are visible in the browser), but not on Ubuntu Linux. I’m using the same environment setup; same Ruby, Rails, and gems versions…
If you are getting different display in different browsers then it is
quite likely you have invalid html. Copy the complete text of the
page (View, Page source or simiilar in browser) and paste into the w3c
html validator (google will find it). Alternatively install the great
html validator plugin for firefox which will check it for you as you
develop.
I’ve removed all the :size elements from the form and validated the page XHTML strict using W3C’s validator.
Yet, the values are not displayed. The values are in the HTML, just not being displayed in the text boxes and text area for some reason. On a related note, I have a drop down and it’s value IS set to the object’s attribute.
I've removed all the :size elements from the form and validated the page
XHTML strict using W3C's validator.
Yet, the values are not displayed. The values are in the HTML, just not
being displayed in the text boxes and text area for some reason. On a
related note, I have a drop down and it's value IS set to the object's
attribute.
Could you put the (complete) html somewhere so we can have a look?
Strip out everything you can first.
I feel quite stupid now… Apparently, I had some JQuery for a search textbox whose job involved incorrectly blanking out all input:text in the page… Didn’t realize it until I simplified the page as much as possible.