We can use the PHP cURL library to generate simple HTTP POST request. The following example shows you how to create a simple SOAP request using cURL. Continue reading PHP – Send a SOAP Request by cURL
Tag Archives: Postaday2011
Drupal – Add iframe in TinyMCE Editor
If you have installed the WYSIWYG module with TinyMCE Editor, you will find that it does not support the iframe element. Say if you embed a Google Map in the HTML body, it will disappear once you edit the node.
Ya, it’s Google again, i found a post written by Sam Michel who resolve the problem just by simply create a custom module with the hook_wysiwyg_plugin. Continue reading Drupal – Add iframe in TinyMCE Editor
CSS – Missing HTML Element in Internet Explorer 7
It’s about the greatest browser, Internet Explorer, again!
In IE7, sometimes i found that some HTML elements are gone. But if i uncheck and recheck any CSS style in Developer Tool, they will return back on the screen. Continue reading CSS – Missing HTML Element in Internet Explorer 7
名言三十三
Knowledge is not power. The SHARING of knowledge is power.
Douglas Merrill
Drupal – Add Teaser Break in Node Body
Sometimes we only want to show part of the node body as an abstract. In this case, we can achieve this by adding a Teaser Break in the node body. A Teaser break is simply a HTML code as follow Continue reading Drupal – Add Teaser Break in Node Body
Drupal – Translate View Title
In Drupal Views module, you could not configure the view title translation in the view settings page. The post shows you how to translate view title with the i18n module. For more information about the i18n module, please refer to
PHP – dompdf render() timeout problem
I found a very good post which demonstrate how to integrate dompdf in CodeIgniter.
CodeIgniter Wiki – PDF generation using dompdf Continue reading PHP – dompdf render() timeout problem
Rails – File Upload with Paperclip
Paperclip helps you implementing file attachment with ActiveRecord with Rails. Follow the example below and see how it works. Continue reading Rails – File Upload with Paperclip
Rails – Create Some Simples Search Methods in ActiveRecord
Previously i have created a countries table which contains a country name and country code field. Get more information in the following link.
Rails – Preset Data in Database by Seed Fu Continue reading Rails – Create Some Simples Search Methods in ActiveRecord
jQuery – Sort Element
I found a very good example which demonstrate how to sort elements in HTML using jQuery. It is too perfect to make any changes of it. Try it by yourself. But please note that the sort() function only works in jQuery 1.3.2 or above. Continue reading jQuery – Sort Element