You are on page 1of 2

hkvstore.

com forums View topic - Adding functions/buttons to input field

http://download.hkvstore.com/forums/viewtopic.php?f=19&t=20691

hkvstore.com forums
Skip to content

Advanced search Board index ASPMaker User Submitted Tips (ASPMaker) Change font size Print view Login

Adding functions/buttons to input field


Post a reply

2 posts Page 1 of 1 Report this post Reply with quote

Adding functions/buttons to input field


by mastercafe Wed Sep 29, 2010 5:32 am Tested on AspMaker 8.xx We was searching to insert de CK-Finder into a Image field, finally appear a simple an nice solution to use: - Insert ckfinder in your hosting (download, uncompress, configure and upload) - With your route insert in AspMaker on Server Events/Client Script >> Client Script >> Global >> Pages with header/footer >> Client Script >> put this code: ew_ClientScriptInclude("/ckfinder/ckfinder.js"); replace /ckfinder/ by your path. - In the image/file field add this code on Input Tag Attributes / Custom Attributes "/> <input type=""button"" value=""Browse Server"" onclick=""BrowseServer( 'Images:/', 'x_notfoto' );"" /" Replace de value "Browser server" by your text for button, Images:/ by your default path to see and x_notfoto by your field name with x_ at begin Is very important to use doble quoted on type, value and onclick, use apostrophe intro BrowseServer script function. Why do this code: the first /> close the generic input field, the other code generate the input button and "don't close" with > because aspmaker template will close it. Simple and great usability

1 of 2

12/8/2010 8:37 PM

hkvstore.com forums View topic - Adding functions/buttons to input field

http://download.hkvstore.com/forums/viewtopic.php?f=19&t=20691

mastercafe Top Report this post Reply with quote

Re: Adding functions/buttons to input field


by monloup Wed Oct 06, 2010 3:19 pm nicely done thx for sharing monloup Top Display posts from previous: Post a reply 2 posts Page 1 of 1 Return to User Submitted Tips (ASPMaker) Sort by

Board index Delete all board cookies All times are UTC + 8 hours Powered by phpBB 2000, 2002, 2005, 2007 phpBB Group

2 of 2

12/8/2010 8:37 PM

You might also like