maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   Speeddial: Easy Access to Bookmarks via HTML (https://talk.maemo.org/showthread.php?t=16756)

ustunozgur 2008-02-17 13:17

Speeddial: Easy Access to Bookmarks via HTML
 
1 Attachment(s)
I have created a simple speeddial HTML page for access to frequently used bookmarks, as in Opera.

I think someone has already done it before, but I wanted to share the html just in case. Note that you can change your homepage to this page in the web browser (Tools-Settings-Connection): Home page address should be stg. like:

file://localhost/home/user/MyDocs/.documents/speeddial.html
and "Use default home page" should be clear (not selected).

Here is the html, the values you should change are "value" and "location" tags' values.

Save the following as an html file with the name speeddial.html
Code:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html> <head>
<title>Speeddial</title>
</head>

<body>
<h1></h1>

<table align="center">
  <tr>
    <td><input type="button" value="Go to Google"
onClick="window.location='http://www.google.com/'" style="width:
180; height: 100"></td>
<td><input type="button" value="Eksisozluk"
onClick="window.location='http:/sozluk.sourtimes.org/'" style="width:
180; height: 100"></td>
<td><input type="button" value="BBC"
onClick="window.location='http://news.bbc.co.uk/'" style="width:
180; height: 100"></td>
    </tr>
 <tr>
    <td><input type="button" value="Facebook"
onClick="window.location='http://www.facebook.com/'" style="width:
180; height: 100"></td>
<td><input type="button" value="GMail"
onClick="window.location='http://www.gmail.com/'" style="width:
180; height: 100"></td>
<td><input type="button" value="NTV"
onClick="window.location='http://www.ntvmsnbc.com/'" style="width:
180; height: 100"></td>
    </tr>
    <tr>
    <td><input type="button" value="Go to Google"
onClick="window.location='http://www.google.com/'" style="width:
180; height: 100"></td>
<td><input type="button" value="Go to Google"
onClick="window.location='http://www.google.com/'" style="width:
180; height: 100"></td>
<td><input type="button" value="Go to Google"
onClick="window.location='http://www.google.com/'" style="width:
180; height: 100"></td>
    </tr>
    </table>
   
</body> </html>

A sample screenshot is attached (though I took the screenshot in my Mac.)

dan 2008-02-17 15:55

Re: Speeddial: Easy Access to Bookmarks via HTML
 
1 Attachment(s)
ustunozgur,

Looks cool. I used this on Opera all the time on my old powerbook Mac.
I 'm really a novice on this so bear with me.
I followed your instructions and all I get when I open a new window is the text
inside the html file named speeddial.html. :)
Kind of funny.
I'm using n800 on os2008.
Any help would be appreciated. Thanks, Dan

ustunozgur 2008-02-17 15:56

Re: Speeddial: Easy Access to Bookmarks via HTML
 
Here is another version with Google search box at the top:
Code:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html> <head>
<title>Speeddial</title>
</head>

<body>
<h1></h1>



<table align="center">
<tr>
  <td colspan="3" align="center">

<form method="get" action="http://www.google.com/search">
  <input type="text"  name="q" size="31"
 maxlength="255" value="" />
<input type="submit" value="Google Search" />
 </form>
    </td>
  </tr>
  <tr>
    <td><input type="button" value="Go to Google"
onClick="window.location='http://www.google.com/'" style="width:
180; height: 100"></td>
<td><input type="button" value="Eksisozluk"
onClick="window.location='http:/sozluk.sourtimes.org/'" style="width:
180; height: 100"></td>
<td><input type="button" value="BBC"
onClick="window.location='http://news.bbc.co.uk/'" style="width:
180; height: 100"></td>
    </tr>
 <tr>
    <td><input type="button" value="Facebook"
onClick="window.location='http://www.facebook.com/'" style="width:
180; height: 100"></td>
<td><input type="button" value="GMail"
onClick="window.location='http://www.gmail.com/'" style="width:
180; height: 100"></td>
<td><input type="button" value="NTV"
onClick="window.location='http://www.ntvmsnbc.com/'" style="width:
180; height: 100"></td>
    </tr>
    <tr>
    <td><input type="button" value="Go to Google"
onClick="window.location='http://www.google.com/'" style="width:
180; height: 100"></td>
<td><input type="button" value="Go to Google"
onClick="window.location='http://www.google.com/'" style="width:
180; height: 100"></td>
<td><input type="button" value="Go to Google"
onClick="window.location='http://www.google.com/'" style="width:
180; height: 100"></td>
    </tr>
    </table>
   
</body> </html>


ustunozgur 2008-02-17 16:12

Re: Speeddial: Easy Access to Bookmarks via HTML
 
@Dan: make sure that the extension is .html, not .txt. This might be an issue if you are editing inside notepad, you have to make sure "All files" is selected when saving the file.

ustunozgur 2008-02-17 16:14

Re: Speeddial: Easy Access to Bookmarks via HTML
 
Here is another with both Google and Wikipedia:

Code:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html> <head>
<title>Speeddial</title>
</head>

<body>
<h1></h1>



<table align="center">
<tr>
  <td colspan="1" align="left">
<form method="get" action="http://www.google.com/search">
    <input type="text"  name="q" size="20"
 maxlength="255" value="" />
<input type="submit" value="Google" />
 </form>
    </td>

  <td colspan="1" align="left">
    <form action="http://www.wikipedia.org/search-redirect.php" method="get">
<input type="hidden" name="language" value="en" />
    <input type="text" name="search" size="20 " />
<input type="submit" name="go" value=" Wikipedia" />
</form>
  </td>
  </tr>
  <tr>
    <td><input type="button" value="Go to Google"
onClick="window.location='http://www.google.com/'" style="width:
180; height: 100"></td>
<td><input type="button" value="Eksisozluk"
onClick="window.location='http:/sozluk.sourtimes.org/'" style="width:
180; height: 100"></td>
<td><input type="button" value="BBC"
onClick="window.location='http://news.bbc.co.uk/'" style="width:
180; height: 100"></td>
    </tr>
 <tr>
    <td><input type="button" value="Facebook"
onClick="window.location='http://www.facebook.com/'" style="width:
180; height: 100"></td>
<td><input type="button" value="GMail"
onClick="window.location='http://www.gmail.com/'" style="width:
180; height: 100"></td>
<td><input type="button" value="NTV"
onClick="window.location='http://www.ntvmsnbc.com/'" style="width:
180; height: 100"></td>
    </tr>
    <tr>
    <td><input type="button" value="Go to Google"
onClick="window.location='http://www.google.com/'" style="width:
180; height: 100"></td>
<td><input type="button" value="Go to Google"
onClick="window.location='http://www.google.com/'" style="width:
180; height: 100"></td>
<td><input type="button" value="Go to Google"
onClick="window.location='http://www.google.com/'" style="width:
180; height: 100"></td>
    </tr>
    </table>
   
</body> </html>


ustunozgur 2008-02-17 16:17

Re: Speeddial: Easy Access to Bookmarks via HTML
 
1 Attachment(s)
@dan : Here is a zip file containing the 3 different html's

dan 2008-02-17 16:32

Re: Speeddial: Easy Access to Bookmarks via HTML
 
ustunozgur,

I'm using Abiword on mac and it allows you to select .html and then a different menu pops up and I choose html 4.0. All I did was highlighted your code above and copied it then pasted into Abiword. Abiword is a free word processor for Mac.
My screen shot above shows it is saved as an .html file.
Any further help would be appreciated. Thanks, Dan

ustunozgur 2008-02-17 16:39

Re: Speeddial: Easy Access to Bookmarks via HTML
 
@dan: That's because abiword is a WYSIWYG editor. Try saving with Textedit on mac. oops it seems textedit still saves it like a WYSIWYG editor. You have to force it to render it as it is.

Better still do this: in abiword, save it as a txt file then change the extension in Finder.

ustunozgur 2008-02-17 16:44

Re: Speeddial: Easy Access to Bookmarks via HTML
 
in Textedit you can also use : Format-Make Plain Text

dan 2008-02-17 16:45

Re: Speeddial: Easy Access to Bookmarks via HTML
 
ustunozgur,

Downloaded your zip. It works!!!
Very cool Bro.!!!
Now how do I change the menus. Abiword doesn't seem able to open your files. Any free program for mac that I can open and edit the .html file?
Any additional help would greatly be appreciated.

Thanks,

Dan


All times are GMT. The time now is 12:32.

vBulletin® Version 3.8.8