09/10/2011, 06:01 PM
|
#1 (permalink) |
|
Member
![]() Join Date: Aug 2011
Location: Portland, OR
Posts: 82
Likes Received: 9
Thanks: 12
Thanked 37 Times in 22 Posts
|
Hey, so i found out how to set a homepage for the browser.
You have to use internalz to edit a file though, as i don't know how to make a patch, but in the file /usr/palm/applications/com.palm.app.browser/source/BrowserApp.js, i changed the line: this.$.pane.selectViewByName("startpage"); to this.setUrl("http://www.precentral.net"); This is in the function labeled "rendered:" I attached a screen shot of it. after editing, save and luna restart, and it will load up right to precentral. Do this at your own risk, and only if your comfortable with editing files. Maybe someone can make a patch out of this... |
09/10/2011, 09:12 PM
|
#3 (permalink) |
|
Member
![]() Join Date: Aug 2011
Location: Portland, OR
Posts: 82
Likes Received: 9
Thanks: 12
Thanked 37 Times in 22 Posts
|
in the preferences of internalz, all the way at the bottom is "Master Mode", turn it on. Should be able to edit it now.
I changed mine around a little, and added it to the menu: In the kind "AppMenu", add the line: {name: "homeMenuItem", caption: $L("Home"), onclick: "goToHome"}, I put it as the first entry but you can put it where you want. then in the rendered function, instead of putting the URL there, i had it call a new function i created: this.goToHome(); this is the function: goToHome: function() { this.setUrl("http://yourhomepage.com"); }, See the screen shots for the code i added. Last edited by thricetwice; 09/10/2011 at 11:52 PM. |
09/10/2011, 09:46 PM
|
#5 (permalink) |
|
Member
![]() Join Date: Aug 2011
Posts: 229
Likes Received: 24
Thanks: 83
Thanked 21 Times in 17 Posts
|
It works, thanks! Is there any difference on using those gotohome lines than just the url one?
In the screen shot from the first post, you forget to remove the line this.$.pane.selectViewByName("startpage"); |
09/10/2011, 09:48 PM
|
#6 (permalink) | |
|
Member
![]() Join Date: Aug 2011
Location: Portland, OR
Posts: 82
Likes Received: 9
Thanks: 12
Thanked 37 Times in 22 Posts
|
Quote:
The difference in the second one, is it will add a menu option to click and it will load the homepage. |
|
09/10/2011, 10:29 PM
|
#7 (permalink) |
|
Member
![]() Join Date: Aug 2011
Posts: 229
Likes Received: 24
Thanks: 83
Thanked 21 Times in 17 Posts
|
Second instruction works for me too. Just the "AppMenu" line has one symbol typo, should be } in the end instead of ).
Any chance to create a text search function? :-P |
09/11/2011, 01:49 PM
|
#8 (permalink) | |
|
Member
![]() Join Date: Sep 2011
Posts: 1
Likes Received: 0
Thanks: 0
Thanked 1 Time in 1 Post
|
Quote:
Code:
{caption: $L("Find on Page"), onclick: "showFindOnPage"}
However, the find bar appears at the bottom of the screen and is covered by the keyboard, which isn't terribly helpful for seeing what you're typing! What needs to happen is to move it to the top of browser window, however having only just started looking at WebOS, I have no idea how to make that happen... |
|
09/11/2011, 03:57 PM
|
#9 (permalink) | |
|
Member
![]() Join Date: Aug 2011
Location: United Kingdom
Posts: 16
Likes Received: 1
Thanks: 0
Thanked 1 Time in 1 Post
|
Quote:
|
|
09/12/2011, 02:31 PM
|
#14 (permalink) | |||
|
Member
![]() Join Date: Aug 2011
Location: United Kingdom
Posts: 16
Likes Received: 1
Thanks: 0
Thanked 1 Time in 1 Post
|
Quote:
Quote:
Quote:
|
|||
09/12/2011, 03:32 PM
|
#15 (permalink) | |
|
Member
![]() Join Date: Aug 2011
Location: United Kingdom
Posts: 16
Likes Received: 1
Thanks: 0
Thanked 1 Time in 1 Post
|
Quote:
I actually started looking into making this into a patch that would allow you to set a URL in the preferences page but it got a bit over my head and then i found that the UniviedDiffCreator only works with 1 file edited (from what I can see anyway) |
|
09/12/2011, 04:34 PM
|
#16 (permalink) | |||
|
Member
![]() Join Date: Aug 2011
Location: Portland, OR
Posts: 82
Likes Received: 9
Thanks: 12
Thanked 37 Times in 22 Posts
|
Quote:
Quote:
Quote:
I was able to move the find bar to the top, but when you use it, it will only find the first instance of the search word. The find next/previous functions were never written. (the functions exist, they are just empty). |
|||
09/12/2011, 04:45 PM
|
#17 (permalink) | |
|
Member
![]() Join Date: Jun 2010
Location: Alaska
Posts: 1,617
Likes Received: 105
Thanks: 67
Thanked 304 Times in 227 Posts
|
Quote:
__________________
Sign up for SugerSync Get and Give 500MB of extra space Sign up for DropBox Get and Give 250MB of extra space Sign up for Memopal Get and Give 500MB of extra space GoAruna is a cloud service with a webOS app maintained by the company and referral bonuses
|
|
09/12/2011, 06:33 PM
|
#18 (permalink) | |||
|
Member
![]() Join Date: Aug 2011
Location: United Kingdom
Posts: 16
Likes Received: 1
Thanks: 0
Thanked 1 Time in 1 Post
|
Quote:
Quote:
Quote:
The Advanced webos basically just has this stuff back in and tabs. |
|||
![]() |
|
| Tags |
| browser, homepage, touchpad |
| Thread Tools | |
| Display Modes | |
|
|



