TObject(Sender) is unsafe since:
TButton(Edit1).Caption := 'junk code';
will not raise an exception, while:
(Edit1 as TButton).Caption := 'junk code';
will raise an exception. Taken from here.
Question is, how to get count records in union query? For example, we have this query: select count(*) from jos_content union all select count(*) from jos_users As a result, we will have two records: count(*) 904Â ...
If you want instead of adding event to button in custom form to add ajax to some link (javascript function) here is how you can do it:Â function show(options) }); ajaxRequest.request(options); ...
If you want to add your javascript to Joomla! header from your component, you can do it like this: JHTML::_('behavior.mootools'); $doc =& JFactory::getDocument(); $js = " function show(options) }); ajaxRequest.request(options); } ...
You can follow my links at http://delicious.com/stanko75/windows7 (or via RSS). This tip I took from Tim Anderson tweet: did you know that pressing Shift-F10 at Win 7 install screen gets you a command prompt for minwin?
CRUD (Create Read Update Delete) is the name given to the four common data manipulation tasks. The first thing we need to do in our class is to define the public properties. The public properties relate directly to the fields and must have exactly...
Whenever is possible use parameterized queries in MS driver for PHP for MS SQL, to reduce risko of SQL injection attack.Taken from here. Using of parametrized queries is simple, you can use example from here, for varchar types everything is same...
If you are receiving error "The specified module could not be found." then try to instead of "C:Program FilesPHPphp5isapi.dll" write C:Progra~1PHPphp5isapi.dll (without quotes) in Web Sites node, and in Default Web Site node, or any other. Right...
Here are my expirience in working with NuSoap (SOAP) in PHP. Creating simple SOAP function is simple, so there is no need to explain. Problems are coming when you need a complex types, like array, and UTF-8 encoding. Here is an example of adding...