| Cheet's profile忘了烦恼 可爱多好™PhotosBlogLists | Help |
|
August 18 Submit a HTML form with disabled fieldsOriginal URL: http://www.pokesoft.org/blog/?p=328 I have been trying to disable all the fields before submit, so no extra validation will be needed for the edit page. It is not possible to submit a DISABLED field… A possible solution is use READONLY attribute, but this is for textfield and textarea ONLY, but I want all the fields to be un-changeable. After some research, I summerised the following techniques (hacks):
And guess what, I’ve chosen the ugly approach, #1:
function lockValues()
{
var x = elem(”Edit”).elements;
for(var i=0; i
…because it is the simplest working solution~ dhtml tree menusOriginal URL: http://www.pokesoft.org/blog/?p=327 Tree menus look very good on pages, but hard to implement (well, not easy to implement) by hand, so here are some written code for building tree menus:
August 06 JavaScript Time PickerOriginal URL: http://www.pokesoft.org/blog/?p=326
Not very easy to use, I have to say ;( Im not going to use that, but it’s good enough for JS. http://pttimeselect.sourceforge.net/example/index.html <- this is cool but does not have seconds & requires jQuery. http://www.jnathanson.com/index.cfm?page=jquery/clockpick/ClockPick <- another cool one, jQuery http://www.pit-r.de/timepicker/demo/pickerDemo.htm <- this is very cute http://home.jongsma.org/software/js/datepicker <- nice, got standalone TimePicker, but not for secs After all, I decided to do my own time picker (with sec and TZ ) using HTML…. |
|
|