Monday, August 18, 2008

Ubiquity for Mozilla web browser

Mozilla labs Ubiquity -- based on the Javascript programming language -- will allow users to type commands in an input box to launch a specific action, such as sending an e-mail.

Ubiquitous Interfaces, Ubiquitous Functionality

Labels: ,

Tuesday, July 22, 2008

Rip page to new window in firefox

On the bookmark toolbar, right-click and select "New Bookmark..."

Under name, give your bookmark a fitting title, like, "Rip page."
Under location, enter the following code:
javascript:var x=window.open(document.URL, '_blank','width=800,height=600')


Or... just drag the following link to your bookmark toolbar.
Rip page.


Update on August 5, 2008:

I found the following works well for ripping a Google Docs page to a new window (former window closes as well.)
javascript:var%20x=window.open(document.URL,%20'_blank','width=800,height=600
,status=1,toolbar=1,location=1');window.close();

Rip page.

Labels:

Tuesday, April 17, 2007

Writing an onLoad function that includes a delay.

This code was written out of desperation when I could not use an embedded APPLET's isActive() function to check if the APPLET was loaded. Instead, I waited for 500 milliseconds. Hopefully, there are better uses for this code.



<SCRIPT>

function
OnLoadFunction(milliseconds_time)
{
setTimeout("delayedOnLoadFunction()", milliseconds_time);
}

function delayedOnLoadFunction()
{
/* Function body */
}
</SCRIPT>

<body
onLoad="OnLoadFunction(500)">


Labels: