Adding functions/buttons to input field

Tips submitted by ASPMaker users

Adding functions/buttons to input field

Postby 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

Re: Adding functions/buttons to input field

Postby monloup » Wed Oct 06, 2010 3:19 pm

nicely done
thx for sharing

Re: Adding functions/buttons to input field

Postby vrpunk » Thu Nov 12, 2015 8:54 pm

Been using this in v8.
But stopped workring since v11-v2016
CKFinder window pops-up but is blank
Posts: 1
Joined: Wed Nov 04, 2015 9:23 pm

Return to User Submitted Tips (ASPMaker)