Tag > javascript

06 Jan

javascript logo icon grafxflow

Scanstyles does nothing in Webkit/Firefox/Opera – Fix

I had a client contact me with an email containing the following screenshot of a popup which has suddenly appeared when viewing their website with certain browsers – a website which has been up and live for over 12 months with no issues.

Scanstyles does nothing in Webkit/Firefox/Opera

Continue reading…

24 Nov

php icon grafxflow

PHP convert stdClass() object into JSON data

I was recently working on a website were the PHP function was doing a var_dump of the array and making it into a stdClass. The problem that I had was that there was also some jQuery code that needed to validate the data had been retrieved successfully. So the stdClass object needed to be converted to JSON data.

Here is how…

Continue reading…

03 Sep

jquery icon grafxflow

Prevent Empty Searches in WordPress Revised

I had an issue in WordPress where blank searches were still being passed and bringing back results. So I had to find a way of stopping it from being submitted. Searching the web I found this nice little solution/snippet of code from (PAGE/URL NO LONGER EXISTS): http://callmenick.com/2013/04/24/prevent-empty-searches-in-wordpress/

Continue reading…

Posted in: <WordPress>

07 Nov

php icon grafxflow

Passing data between jQuery and PHP

Here is a basic example of passing form data to a PHP file via jQuery and then passing data back to jQuery from the PHP file.

Continue reading…

11 Sep

joomla icon grafxflow

Changing a Joomla email link cloaking CSS color

Joomla has by default a plugin called Email Cloaking which replaces any email on the content with javascript to stop spam. I have noticed this brings one problem with regards to changing the hyperlinks colour.

At first the easy way is to add the following to the css:

This works fine across the whole website but what if you wanted to give the hyperlinks different colours. Maybe giving the hyperlinks their own CSS class like…

Continue reading…

Posted in: <Joomla>

smart search