Archive for the ‘Coding and Web Development’


jquery ajax form submit plug-in

Ever needed a quick way to submit a form through ajax? 
Jquery plus a nice little plug-in can help. 

Download jquery and the plugin

Options

  1. $(document).ready(function() {
  2.     var options = {
  3.         target:        ‘#outPutDiv’,   // target element(s) to be updated with server response
  4.         beforeSubmit:  showRequest,  // pre-submit callback
  5.         success:       showResponse  // post-submit callback
  6.     };

Event

  1.    $(‘#formId’).submit(function() {
  2.  
  3.         $(this).ajaxSubmit(options);
  4.  
  5.         return false;
  6.     });

And then simply replace the formId and outPutDiv and your form will be submitted via ajax.
So easy. No unnecessary page reloading needed. 

http://www.malsup.com/jquery/form/#code-samples

Some other available options

  1.        url:       url         // override for form’s ‘action’ attribute
  2.         type:      type        // ‘get’ or ‘post’, override for form’s ‘method’ attribute
  3.         dataType:  null        // ‘xml’, ’script’, or ‘json’ (expected server response type)
  4.         clearForm: true        // clear all form fields after successful submit
  5.         resetForm: true        // reset the form after successful submit
  6.         // jquery $.ajax options can be used here too, for example:
  7.         timeout:   3000

Share/Save/Bookmark

Sexy Javascript calendars - date pickers

This simple date picker is super easy to install on any website. Purely running on javascript, xhtml and css.
The calendar is fully customizable through css and date formats can be set in the options of the js file.

Below are the to links you will need to get this date picker.

http://www.electricprism.com/aeron/calendar/

Mootools is the javascript framework that the calendar runs on

http://mootools.net/

Share/Save/Bookmark

Your personal Mac (tardis) - Time Capsule

If you have just bought a new mac or you have upgraded to leopard and are needing a back up solution look no further than Apple for the answer. 

You may have noticed when you installed leopard or started your new machine there was/still is an application called “Time Machine” placed in your dock.

Ever wondered what this was ?

Well it’s the client interface for Apple’s personal back up system. Here is a little explanation about how it works.

First you will need to purchase an external back up device. For example the Apple solution is the “Time Capsule” (pictured above). Then all you need to do is go into your system preferences. click “Time Machine” and select the back up drive. 

From then on Time Machine will do an incremental back up every hour.
It will also store daily backups for a month and Weekly backups until the disk is full.

From then on if you misplace or delete a file just click the time machine icon in your dock and the following screen will open.

time machine gui 

Simply use the arrows to view the history of your files. When you have found the time you wish to restore. Just click the restore button and the file and folders will be revert to that point in time.

Note: Time Machine backups can also be used to restore your machine from a fresh install of leopard.

 

 

 

 

Share/Save/Bookmark

Open source facebook… really…

The news about the traps is that facebook is turning into an open source application.

What does this mean for developers…?

Well it means now anyone who has made a facebook application will now be able to take it to other social networking sites when they become compatible… as long the other sites are willing to support the facebook API’s…

What about the rest of the facebook users?

Share/Save/Bookmark

Cascade Style Sheets v3(CSS3) Good or Evil?

New Parent and child support

a < img { border: none; }

So if <img> has a parent <a>, the border isn’t there.

opacity and alpha transparency is also gaining greater support which is great for web 2.0 development.

You can use alpha transparency in backgrounds. ie….

<div style="background: rgba(255, 0, 0, 0.2);”></div>

You can also do stuff like table[border='0'] {display:none} to hide all tables without borders. Which will really help removing some of the bulky javascript.

but … its going to be so long untill every one is using a css3 supporting browser

Check out this link for some more examples

Have fun kids… Check back here for some more useful news and ideas from the WEB CHEF

Share/Save/Bookmark

Welcome to Strong Arm Tactics: the occasional blog about the internet, selling, marketing and development.

Welcome to Strong Arm Tactics - the occasional weblog about what’s happening on the internet and everything to do with online marketing, web applications and other interesting little tid-bits.

To start with I want to introduce the three of us who will be contributing to this blog:

Ben, our Web Marketing Guru (yes, that’s his actual job description) will be writing posts to do with Search Engine Marketing and Optimization. Ben knows everything about the world of Google and their AdWords. Ben looks after our network of online stores and manages our cool (and we think unique) shopping cart system. But more of that later…

Nige is our chief Web Chef. In other words he does lots of cool stuff designing our sites, implementing the latest and greatest techniques and wonders and generally keeps our sites operating at optimum efficiency and improving them as required. Nige will write about coding and development trends that he spots, and anything else that he thinks is worthy of mention.

And I’m James. I’ll be writing about marketing, trends, entrepreneurialism, selling, customer service, online gossip and all the rest. The next few years is going to be quite exciting in terms of developments in the web world and we’ll ride that massive pipeline wave into the great unknown, pointing out some interesting things along the way.

Thanks for reading - I look forward to hearing from you.

Share/Save/Bookmark

(Javascript) Mario Kart …. WOW!

Check this out…… 

Its mario cart run on javascript for the web … 

mariokart - javascript

For Developer
Here is a link to the javascript file free to use on any site….. 
Note you may have to download the images first.

Or Just to have a go at the game here 

 

Share/Save/Bookmark