Thursday, August 09, 2012

Interacting with Iframes using Javascript

// reference to iframe with id 'ifrm'

var ifrm = document.getElementById('ifrm');

// reference to window in the iframe
var win = ifrm.contentWindow;

// reference to document in iframe
var doc = ifrm.contentDocument? ifrm.contentDocument: ifrm.contentWindow.document;

// reference to a form named 'ifrmTest' in iframe
var form = doc.getElementById('ifrmTest');


http://www.dyn-web.com/tutorials/iframes/refs.php

Sunday, June 17, 2012

Best practices for estimating projects & satisfied customers


* Components of a project (notes from 1/28/2012)
  • Customers
  • Requirements
  • Estimated time
  • Estimate a project and communicate any changes to the plan.
  • Elapsed hours
  • Actual time
    • You must track your actual time and compare it to estimated time 
    • You are still on track if you spend more time, but explained to customers what's happening.
    • this is how you schedule estimated hours
* Completely satisfied customers
Ask customers if they are completely satisfied, not just if they are satisfied. If they are not completely satisfied, ask what can we do to make you completely satisfied.

Tuesday, May 29, 2012

Online Regex Builder makes Regex fun again

Check out tihs link: http://gskinner.com/RegExr/

It lets you

  • write regex
  • see what it matches
  • hover over sections of the regex to get a nice explanation of what it does
  • save a library of your own regex
  • browse through other people's shared libraries
Here's a screenshot :

Monday, May 28, 2012

Getting started with Backbone.js

I think this link is a good place to start on Backbone.js.

Thursday, May 03, 2012

PhoneGap and Playing MP3 File in Windows Phone 7 Project

It took me a while to find this link, so I am posting it here for future reference and hopefuly it will make your .

The solution is here.

and the text reads as follows:

Add the following to Properties/WMAppManifest.xml
<Capability Name="ID_CAP_MEDIALIB"/>And then the path for the mp3 needed the following:
app/www/test.mp3 or you could try /app/www/test.mp3

For more on PhoneGap's Media API, see this doc page.