Archive for the ‘ Clues ’ Category

Enter to Tab

This code from Scripterlative uses JavaScript to change the behaviour of the enter button. Really handy if you’re building forms where your users may hit ‘enter’ to go to the next field, and accidentally submit the form before they’ve finished filling everything in.

Grab it here:
http://scripterlative.com/files/entertotab.htm

[N.B.: This code is provided by the author as 'GratuityWare' - that is, if you want to use it permanently you need to donate an amount of your choice to the author.]

Virtuemart – eway payment method

Joomla’s Virtuemart shopping cart component has a built in payment module for eway – one of the big gun online credit card payment processors.
The ‘normal’ way for a website to set up Virtuemart is to have transactions tied in to user accounts, but if you want to set it up differently so that people can buy stuff from your site without logging in you can do that too.
The way the eway processor works is by sending XML to eway’s server with all the details of the transaction – name, email, credit card number etc.
The problem is that it grabs this information from the Joomla user database, which isn’t much help if you’ve set up Virtuemart to enable transactions without logins.
That’s where this code comes in.
[This code was provided by fredzebu and Gygash at the Virtuemart forum (see post at http://forum.virtuemart.net/index.php?topic=57773.msg200107).

Downloading Chrome behind a firewall

Google Chrome LogoGoogle Chrome’s installer doesn’t work behind corporate firewalls.

This link fixes that (provided you’ve got access to downloading exe files):

http://filehippo.com/download_google_chrome/

[N.B. – this seems to be a silent installer – nothing comes up on the screen when you update an existing version. Once you re-open Chrome all the work is done.