The following code will iterate all your checkbox elements (within the form you specify), and disable them all. Tested in ie and mozilla only.


function disableAllChecks(fmobj) {
for (var i=0;i var e = fmobj.elements[i];
if ( e.type=='checkbox' ) {
e.disabled = true;
}
}
}

If you want to check the checkboxes, change the red line to


e.checked = true;

This tutorial will walk through the steps in adding a “Buy Now” link within your Google Calendar. Using this method, you can then embed your Google Calendar on your website, and display scheduled classes, or events that users can sign up for online.

Requirements:

1. Login to Google Checkout.

2. Goto “Tools” -> “Send an Invoice through Email”

3. Enter Invoice Information, Send

Enter the information below. (Pay special attention to the amount, and the ‘for’ fields. The “To”, “Dear”, and “Message” are required for Google Checkout, but won’t be used later on)

  • To:
  • Dear:
  • Message:
  • Amount:
  • for:

Click “Send Invoice” when finished.

4. Check your Email

Login and check your email for this new invoice.

5. Copy the hyperlink

Right click on the hyperlink that reads “Pay Now Through Google Checkout…” and click “Copy Shortcut” (if using Internet Explorer) or “Copy Link Location” (if using Firefox).

6. Create the Buy Now Link

You will now create the code for your Buy Now link. The final code will look something like the code below with “PASTELINKHERE” replaced with your copied link above.

<a href="PASTELINKHERE">Click to Buy Now</a>

So, your final code snippet would look like (you might have to scroll to view everything):

6. Login to Google Calendar

7. Create an event under the appropriate date & time

Click on the calendar day under which the class/event occurs. Then click “edit event details”.

8. Paste your final snippet under the “Description” field

Paste your final snippet (that we’ve compiled above; it should open with “<a href” and close with “<a>”) with the full class/event description within the description field.

9. Have a coke

Congrats! Your event will now show within your calendar and users will be able to buy it!

Further Questions?

Let us know

If you’re like us and you’ve always wanted to learn how to provide simple or clean urls, while still maintaining an easy .php or .asp setup in your main directory, you can do so easily with an .htaccess file. (For you apache guys/gals).

Special thanks to corz.org for their great .htaccess rewrite article.

So, you have:

http://somesite.com/services.php

and you’d like your visitors to type:

http://somesite.com/services

Solution

1. Paste the following in your .htaccess file:


Options +FollowSymlinks
RewriteEngine on
RewriteRule ^services services.php

Looking at the third line only:

  • Rewrite
  • ^services = what will appear after your domain name (e.g. http://somesite.com/services)
  • services.php = the actual page in your structure

And voila! Add as many lines as you like to this file. An example .htaccess file, for a small site might look like:

Options +FollowSymlinks
RewriteEngine on
RewriteRule ^services services.php
RewriteRule ^technology technology.php
RewriteRule ^contact contact.php
RewriteRule ^vendors vendor-registration.php
RewriteRule ^hospitals hospital-registration.php

More Information on .htaccess

YogaSyracuse.com Launches!

February 1st, 2008


Kathleen Frizzi has been practicing yoga since 1999. While living in NYC, she practiced many styles like Ashtanga, Iyengar, Jivamukti, and most treasureadly Anusara w/ Elena Brower.

Kathleen traveled to study yoga in India and Thailand in 2002 after helping The Robinhood Foundation raise millions of dollars for the World Trade Center Relief Fund. In 2003, Kathleen traveled back to Thailand for a year long stay and began officially teaching daily yoga classes in Koh Pan-gnan at Jungle Gym.

More on Yoga with Kathleen in Syracuse, NY

As a member of our community, please consider taking a small action of solidarity as the Buddhist monks and people of Burma’s attempts to reclaim their human rights from a military dictatorship. They are an incredible inspiration of how a personal and group contemplative practice can lead to social action for justice and reform, exactly what The Interdependence Project is striving toward!

Below are a few very concrete ways you can help the situation. The basic rule of interdependence is this: every action matters. Please take the small time and mental effort necessary to make a difference. Please forward this widely.

With Compassionate Wishes,
BDG Crew

1. There are upcoming protests planned for Sat. Oct. 6th.

For more information: http://www.uscampaignforburma.org/
(this website contains disturbing images and news of what’s actually going on.)

2. Take part in a letter writing campaign sponsered by Amnesty International.

(if you participate then visit their website- http://web.amnesty.org/pages/mmr-270907-action-eng and check the box that says- Yes, I have taken this action)
You can copy and paste this sample letter into an e-mail or a document to print out:

Dear Minister:
I am deeply concerned by the reports that hundreds of monks and other peaceful protesters, including well-known comedian Zargana and member of parliament Paik Ko have been detained.
I strongly urge the Myanmar authorities to release them immediately and unconditionally, unless they are to be charged with recognizably criminal offences. I call on the authorities to ensure that, while they remain in custody, all the detainees are held only in official places of detention, and are given immediate access to lawyers, their families and any medical treatment they may require. I also call on the authorities to ensure that the detainees are not subjected to torture or any other ill-treatment.
I call on the authorities to ensure that all people in Myanmar are able to peacefully exercise the rights to freedom of expression, association and assembly without fear of harassment, intimidation or arbitrary detention, in line with international human rights standards.

Yours Sincerely,

Please send appeals to:
Foreign Minister Nyan Win
Ministry of Foreign Affairs
Naypyitaw
Union of Myanmar
Fax: +95 1 222 950 OR +95 1 221 719
E-mail: mofa.aung@mptmail.net.mm

3. Please sign an online petition to Chinese Officials:

http://www.democracyinaction.org/dia/organizations/uscampaignforburma/petition.jsp?petition_KEY=730&t=HomePage.dwt

Chinese action is crucial to pressuring the military dictatorship!

4. Please Sign the petition that will appear in ads in the Financial Times and the South China Morning Post tomorrow.

There are 500,000 signatures already from around the world and they are aiming for a 1 million.

http://www.avaaz.org/en/stand_with_burma/u.php

avaaz.org is a new international grass-roots group.