Programming and more

Entries for the ‘Javascript’ Category

How to make google analytics work with jquery mobile site

Google analytics doesn’t work with jquery mobile websites. Luckily, I found the way to make this work. Basically you have to break the code into 2 parts:     <script> var _gaq = _gaq || []; _gaq.push([’_setAccount’, ‘UA-xxxxxx-xx’]);   (function() { var ga = document.createElement(’script’); ga.type = ‘text/javascript’; ga.async = true; ga.src = (’https:’ == […]

Programmatically Build forms with PHP

I needed a way to programmatically build forms with php so that I can easily print them in any template, so that when I change template I don’t have to copy paste and fix forms all over again. So to solve this I needed some php code to automatically build forms. For me there are […]

Create Easy charts with php/javascript/flash

I was looking yesterday for a way to create a simple chart (Dates and values). I wanted some library to include into the MVC-CMS I created so that I can use everytime I want something. Open Flash Chart I knew Open Flash Chart from before. http://teethgrinder.co.uk/open-flash-chart-2/ You can see it in action here: http://www.radiotower.gr/station_details.php?id=12028. Looks pretty […]

jquery jQueryUI autocomplete – how to submit form on selection

jQueryUI Autocomplete http://jqueryui.com/autocomplete/ is a excelent tool to create ajax/javascript google suggest style automplete forms. You can see an example in the site radiotower.gr List changes when the user types something. It’s really cool and easy to implement. I was faced with one problem though. I wanted to automatically submit the form when the user […]