<html><body><span style="font-family:Verdana; color:#000000; font-size:10pt;"><div><br></div><div>Has there been any progress, is anyone working on it even, to add various HTML types to Knop? I am trying to at least get "range" added as a type. Can anyone help with this? Where else I might need to add code to handle a new type? The modifications I attempted fail when my new "range" type is used</div><div><br></div><div>Error Message: <br> at: addfield with params: -name='item_val1', -id='item_val1', -type='range', -min='0', -max='10', -value='5', -label='Sufficient</div><div><br></div><div>I have modified the version of <a href="http://knop.lasso">knop.lasso</a> from Knop demo package 2008-09-24.zip.</div><div><br></div><div>line 2381</div><div> define_tag: 'addfield', -description='Inserts a form element in the form.<br>...</div><div> -optional='min',<br> -optional='max',<br>...</div><div><br></div><div>line 2504</div><div> local_defined('min') ? #field -> insert('min' = #min);<br> local_defined('max') ? #field -> insert('max' = #max);</div><div><br></div><div>line 3460 (this was a copy of what was there for case "text")<br></div><div> case: 'range';<br> #renderfield += '<input type="range"' <br> + #renderfield_base<br> + ' value="' + (encode_html: #fieldvalue) + '"'<br> + (#onefield >> 'size' ? ' size="' + (#onefield -> (find: 'size')) + '"' )<br> + (#onefield >> 'min' ? ' min="' + (#onefield -> (find: 'min')) + '"' )<br> + (#onefield >> 'max' ? ' max="' + (#onefield -> (find: 'max')) + '"' );<br> if: !(self -> 'noscript') && (#onefield -> (find: 'hint')) != '';<br> #renderfield += ' onfocus="clearHint(this)" onblur="setHint(this, \'' (#onefield -> (find: 'hint')) '\')"';<br> #usehint -> (insert: (#onefield -> find: 'name') = #id);<br> /if;<br> if: !(self -> 'noscript') && !#nowarning;<br> #renderfield += ' onkeydown="dirtyvalue(this)" onkeyup="makedirty(this)"';<br> /if;<br> #renderfield += #endslash + '>';<br><br></div><div><br></div></span></body></html> <P><PRE>-- =0D #############################################################=0D This message is sent to you because you are subscribed to=0D the mailing list <knop@lists.montania.se>.=0D To unsubscribe, E-mail to: <knop-off@lists.montania.se>=0D Send administrative queries to <knop-request@lists.montania.se>=0D List archive http://lasso.2283332.n4.nabble.com/Knop-Framework-Discussion-f3157831.html=0D Project homepage http://montania.se/projects/knop/=0D Google Code has the latest downloads at http://code.google.com/p/knop/
Apr 06
Johan Solve Re: knop adjustments for HTML 5
Apr 06, 2011; 09:06
Johan Solve
Re: knop adjustments for HTML 5
Apr 06
Steve Piercy - Web Site Builder Re: knop adjustments for HTML 5
Apr 06, 2011; 01:02
Steve Piercy - Web Site Builder
Re: knop adjustments for HTML 5
Apr 06
Johan Solve Re: knop adjustments for HTML 5
Apr 06, 2011; 14:55
Johan Solve
Re: knop adjustments for HTML 5
Search
Lasso Programming
This site manages and broadcasts several email lists pertaining to Lasso Programming and technologies related and used by Lasso developers. Sign up today!