Forum Index
/
General
/
overlib
[
This topic is solved ]
kreatik
04 May 10 / 13:25
hello
Many people use a js lib like Prototype.js, Jquery ... It would be nice to disable overlib in config.inc.php to not include the following files:
<script type="text/javascript" src="/inc/FH3/FHTML/overlib/overlib.js"></script>
<script type="text/javascript" src="/inc/FH3/FHTML/overlib/overlib_hideform.js"></script>
Johan Wiegel
(Admin)
04 May 10 / 14:55
And how would the setHelpText work without these files?
I think it's best to add a parameter to the setHelpText whether to include the scripts or not?
kreatik
04 May 10 / 15:40
Changed at 04 May 10 / 15:42
my example :
fh_conf('FH_USE_OVERLIB', false);
fh_conf('FH_HELP_MASK',
'<span class="help"><img title="%helptitle% : %helptext%" src="%helpicon%" alt="(?) " /></span>'
);
And use JS (jquery, prototype, dojo... what's you want :) ) to retrieve elements span.help and generate my tips.
kreatik
04 May 10 / 15:48
And add possibility to retrieve all help strings in js variables:
$myform->getJsHelpStrings();
return :
<script>
FormHandler.helpText.ID_ELEMENT.title = 'my title help';
FormHandler.helpText.ID_ELEMENT.text = 'my help string,......';
</script>
?
Johan Wiegel
(Admin)
04 May 10 / 15:58
Changed at 04 May 10 / 16:02
I Don't understand your last question, what is the use of that?
I did add a config setting whether to include overlib or not in the current download
Top
powered by
PHP-GLOBE
© 2004 - 2010 FormHandler. All rights reserved. -
Open source license