smiley_js()

smiley_js([$alias = ''[, $field_id = ''[, $inline = TRUE]]])

Parameters:
  • $alias (string) – Field alias
  • $field_id (string) – Field ID
  • $inline (bool) – Whether we’re inserting an inline smiley
Returns:

Smiley-enabling JavaScript code

Return type:

string

Generates the JavaScript that allows the images to be clicked and inserted into a form field. If you supplied an alias instead of an id when generating your smiley links, you need to pass the alias and corresponding form id into the function. This function is designed to be placed into the <head> area of your web page.

Example:

<?php echo smiley_js(); ?>
doc_CodeIgniter
2016-10-15 16:32:40
Comments
Leave a Comment

Please login to continue.