Category Archives: JavaScript

PHP CURL and AJAX

From http://stackoverflow.com/questions/19212293/mimicking-an-ajax-call-with-curl-php I’m scraping a site using curl (via PHP) and some information I want is a list of products which is by default only showing the first few ones. The rest is passed to the user when they click a … Continue reading

Share
Posted in JavaScript, PHP, Tips | Tagged , , | Leave a comment

Multiple submit buttons in one form

To solve an issue in a web application, I searched for “multiple submit button in one form”. End up I found multiple ways. They both have advantages and disadvantages. First approach, use the script to identify which submit button is … Continue reading

Share
Posted in JavaScript, Tips, VBA/ASP | Tagged , | Leave a comment

JavaScript handling UTF8 characters

When I developed a PHP web application with AJAX. I encountered a problem that JavaScript cannot process utf-8 character correctly. Whenever user enter a UTF-8 string, it was converted to ASCII in JavaScript and delivered to PHP script. The site … Continue reading

Share
Posted in JavaScript | Tagged , , , , , | Leave a comment