NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
DB form wizard: some bugs and something to do it better


Joined: 03 Aug 2007
Posts: 3
Location: Berlin, Germany
Reply with quote
Hello!

I've used the db form wizard and found out, that this is not perfect for me, may be it is buggy...

The open issues:
1. table_actions.phpt line 203
the output of the table-header should depends to the visable-flag of the column
Code:
 if ($fld[FLD_DISPLAY] && $fld[FLD_VISIBLE]) {


2. the javascript-functions to test the form inputs seems wrong to me: see CheckRequiredFields(theForm) - standard.phpt line 248
I think it should be
Code:
var el = theForm.elements[arguments[i]-1];

see the decremented index of the elements, because the DOM-items startet with 0 to count.

My add-on:
Insert in standard.phpt line 309 the title-tag with the FLD_DISPLAY-value

Code:
echo "<td><input name=\"$fkey\" title=\"$fld[FLD_DISPLAY]\" type=\"$fld[FLD_INPUT_TYPE]\" size=\"$fld[FLD_INPUT_SZ]\" maxlength=\"$fld[FLD_INPUT_MAXLEN]\" value=\"$val\" /></td></tr>";


so you can give a better error-message in line 252

Code:
alert("This field may not be empty " + el.title);


May be it seems necessary to improve the other javascript-functions.

And then even a point for the wishlist:
The dialog of the wizard should have a column for the display-flag for the overview-list.

Greeting from Berlin, Germany,

Thorsten
View user's profileFind all posts by thorBoSend private messageICQ Number
DB form wizard: some bugs and something to do it better
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic