PDA

View Full Version : Bookmarks Or Favorites? How do I that folder


NTG
04-12-2006, 11:15 AM
Hello, this is my first post here, and my first day with you all. I will first say hello and now beg for your help ( hehe ). I' m in the middle of creating a browser for myself and family members, I have got to the point were I thought I had finished when my wife asked were the favorites go? Hmm, not sure I said, I have read through alot of posts and found a few subjects related to simalar problems but the explenations I have found dont seem to explaint it to me in lamens terms. If anyone knows how to do this easily or hard but has time to explain please let me know.
Many thanks.
NTG

Roboblue
04-12-2006, 01:47 PM
If you are using the AMS webobject, then if you save a page from there by right click save to favorites, the default location is the system user's Internet Explorer Favorites folder
C:\Documents and Settings\NTG\Favorites
I would create save and load favorite buttons and use the get.url to get the present page and save to a folder within the browser project. Then load the url from a table created from the projects favorite folders. I used the Popup Menu Plugin to populate a menu from that table (you can get a trial of the plugin Here (http://www.icynorth.com/popupmenuplugin/index.html)). Go to Here (http://www.indigorose.com/forums/showpost.php?p=80414&postcount=67) for an example of the popup bookmark apz. It gets the table from a database, so you need the full version of AMS to actually use it, but the code is there.
I believe there is a thread on how to receive and send actions with the webobject (do a search) so MAYBE you could still use the rightclick on the web object.
I would add an options page to give the user some other setup options. Like getting (importing) the favorites already on the user's system and putting them into the projects folder, etc.
If you need any help with these things, get back to us.

Roboblue
04-12-2006, 05:34 PM
Here is a simple custom browser for reference. It uses the sqlite plugin and the PopupMenu plugin to manage Favorites.
I am going to see what can be done about the right click menu on the web object, and come up with a way to import favorites from at least IE and Firefox.

azmanar
04-13-2006, 12:48 PM
Hello, this is my first post here, and my first day with you all. I will first say hello and now beg for your help ( hehe ). I' m in the middle of creating a browser for myself and family members, I have got to the point were I thought I had finished when my wife asked were the favorites go? Hmm, not sure I said, I have read through alot of posts and found a few subjects related to simalar problems but the explenations I have found dont seem to explaint it to me in lamens terms. If anyone knows how to do this easily or hard but has time to explain please let me know.
Many thanks.
NTG

NTG,

Please refer to this post (http://www.indigorose.com/forums/showpost.php?p=80634&postcount=77).

sara2006
04-14-2006, 01:27 AM
Here is a simple custom browser for reference. It uses the sqlite plugin and the PopupMenu plugin to manage Favorites.
I am going to see what can be done about the right click menu on the web object, and come up with a way to import favorites from at least IE and Firefox.
How can i use the "Application.ShowPopupMenu" instead of PopupMenu in your simple?
thanks

Roboblue
04-14-2006, 02:50 AM
How can i use the "Application.ShowPopupMenu" instead of PopupMenu in your simple?
thanks
I am going to post the same browser with the Application.ShowPopupmenu later today. I almost have that part finished.
"I'll be back"

Roboblue
04-14-2006, 04:59 AM
OK, here is the custom browser with Application.ShowPopupmenu instead of the PopupMenu plug in.
I also added a ClipBoard paste for the link address in the management section and put more dialog traps in the save to favorites action.
When I get some time, I am going to
research for a way to trap the on web object right click to save favorites.
Add folders for favorite catagories.
try to build an import favorites from the system IE and/or Firefox.
build a core project to run tabbed web objects (a 3-4 tab limit)
I posted a sample of a webobject that has right click pretty much disabled here. (http://www.indigorose.com/forums/showpost.php?p=80374&postcount=16)
Maybe in a couple of months, this evolve into a pretty good browser. My main plan for this is to put it on a USB Flash Drive to be transportable. Firefox has a free portable browser, but it's like 9MB. I would like to see a decent feature set in 3.5MB. And I am far from being finished as far as a "skin" for it as you would want it to be easily customizable. Like "Roll Tide!" :D

Mina
04-14-2006, 05:26 AM
OK, here is the custom browser with Application.ShowPopupmenu instead of the PopupMenu plug in.
I also added a ClipBoard paste for the link address in the management section and put more dialog traps in the save to favorites action.
When I get some time, I am going to
research for a way to trap the on web object right click to save favorites.
Add folders for favorite catagories.
try to build an import favorites from the system IE and/or Firefox.
build a core project to run tabbed web objects (a 3-4 tab limit)
I posted a sample of a webobject that has right click pretty much disabled here. (http://www.indigorose.com/forums/showpost.php?p=80374&postcount=16)
Maybe in a couple of months, this evolve into a pretty good browser. My main plan for this is to put it on a USB Flash Drive to be transportable. Firefox has a free portable browser, but it's like 9MB. I would like to see a decent feature set in 3.5MB. And I am far from being finished as far as a "skin" for it as you would want it to be easily customizable. Like "Roll Tide!" :D

Roboblue, great job!
This is the first good web-browser project ive seen in ams :yes

Roboblue
04-14-2006, 05:30 AM
Thank you Mina.
I am working on a four tab (webobjects) core, right now.
Hopefully post example today or tomorrow.

azmanar
04-14-2006, 05:32 AM
OK, here is the custom browser with Application.ShowPopupmenu instead of the PopupMenu plug in.
I also added a ClipBoard paste for the link address in the management section and put more dialog traps in the save to favorites action.
When I get some time, I am going to
research for a way to trap the on web object right click to save favorites.
Add folders for favorite catagories.
try to build an import favorites from the system IE and/or Firefox.
build a core project to run tabbed web objects (a 3-4 tab limit)
I posted a sample of a webobject that has right click pretty much disabled here. (http://www.indigorose.com/forums/showpost.php?p=80374&postcount=16)
Maybe in a couple of months, this evolve into a pretty good browser. My main plan for this is to put it on a USB Flash Drive to be transportable. Firefox has a free portable browser, but it's like 9MB. I would like to see a decent feature set in 3.5MB. And I am far from being finished as far as a "skin" for it as you would want it to be easily customizable. Like "Roll Tide!" :D


Wow !!!!

Thanks for the excellent example. The difference make it unique coz it uses SQLite.

Robo.... it's uploaded in my Examples site.

Mina
04-14-2006, 05:34 AM
Wow !!!!

Thanks for the excellent example.

Robo.... it's uploaded in my Examples site.

hehe..mine too :yes

Roboblue
04-14-2006, 05:49 AM
Mina and Azmanar
You have PM's

azmanar
04-14-2006, 06:48 AM
Mina,

Wow ....thats good.

I have very high regards towards anyone who shares useful knowledge. So the learning example Robo shared with us cannot be missed. Visitors either get it from your site or mine or from this forum.

Roboblue
04-14-2006, 03:00 PM
You guys are going to love this...a FOUR TAB custom browser.
Yeah baby!
I'm pretty proud of this update. May still be a few bugs, but i didn't see any.
Still to do
Make Folders for bookmark catagories so the popup menu isn't hitting the floor.
Create an import feature to grab Bookmarks from the system IE and/or Firefox.
Compact controls so there is more room for custom theme's and images.

I have to go back to my popup menu design for a couple of days, so there probably won't be an update until Monday. When I am personally satisfied with this, I will post it over in the examples section.
Enjoy!

Mina
04-14-2006, 03:12 PM
Roboblue, I'm impressed!
Yes you were right, i love this! here's another piece going right into my site :)

What if you make one with the option of 'Adding' and 'Removing' tabs? Now thats a challenge. I'll try to make one and post it later today, which can hold a maximum of 5/6 tabs. Ill enjoy the next few hours trying to make that! (it's 12.11am now),

Mina
04-14-2006, 03:16 PM
May still be a few bugs, but i didn't see any.


Input Object -> On Key
You should change the script to
if e_Key == 13 then
if webUp == 1 then
Web.LoadURL("Web1", Input.GetText("Input1"));
elseif webUp == 2 then
Web.LoadURL("Web2", Input.GetText("Input1"));
elseif webUp == 3 then
Web.LoadURL("Web3", Input.GetText("Input1"));
elseif webUp == 4 then
Web.LoadURL("Web4", Input.GetText("Input1"));
end
end

Roboblue
04-14-2006, 03:24 PM
Thanx
I woke up at 2:30AM this morning and couldn't get back to sleep.
I still have some ideas for this browser and will revisit it soon.
What it really needs is a way to capture the right click on the web object for the save to favorites. And, there isn't enough room for all the bookmarks so it needs to have a tree setup for that. As soon as I get the popup menu to dynamically create submenus from SQLite, I'll update this, again.
Also, I haven't got the save to favorites to save local files and images to the favborites, yet.
Oh and you can drag and drop any system IE supported file to open it, to.

Roboblue
04-14-2006, 03:25 PM
Input Object -> On Key
You should change the script to
if e_Key == 13 then
if webUp == 1 then
Web.LoadURL("Web1", Input.GetText("Input1"));
elseif webUp == 2 then
Web.LoadURL("Web2", Input.GetText("Input1"));
elseif webUp == 3 then
Web.LoadURL("Web3", Input.GetText("Input1"));
elseif webUp == 4 then
Web.LoadURL("Web4", Input.GetText("Input1"));
end
end

Yep, I noticed that and forgot to change it.

Roboblue
04-14-2006, 03:50 PM
I also forgot to restart the On Page timer for get the present tab's web address into the input box (just unremark it).

Roboblue
04-14-2006, 03:58 PM
Didn't like that so changed how it was populating the input box
made it bigger since it was passed 800 anyway. So this gives room for a custom logo in the top right. Animate something!
anyway, made enogh changes that I thought I would update the post.

sue
04-14-2006, 04:08 PM
Very nice!!! Great Job, RoboBlue!!

bobbie
04-14-2006, 07:23 PM
Looks good. few things.
I run 1024x786 and I can't drag anything onto the window as it fills my whole screen.
Go to the manage fav page and can't get back as the bottom button is missing or to far down.
Look for image on top right says I can click and no image there at the top right.

Roboblue
04-14-2006, 09:49 PM
Bobbie
I made it bigger all right. I don't know how I made it too big, but you were right.
Here it is at 900 x 740.
I still have a check for 1024 cause it won't fit at 800 x 600.
The Introduction.htm is incorrect, but i thought everyone would change that, anyway.
No Logo in the top right.
Try'er again.

bobbie
04-15-2006, 01:23 AM
Try this one Roboblue and see what you think.

bobbie
04-15-2006, 01:37 AM
I forgot to add the code to the second page so need to do that for the manage urls page.
Here it is fixed.

azmanar
04-15-2006, 02:57 AM
Bobbie
I made it bigger all right. I don't know how I made it too big, but you were right.
Here it is at 900 x 740.
I still have a check for 1024 cause it won't fit at 800 x 600.
The Introduction.htm is incorrect, but i thought everyone would change that, anyway.
No Logo in the top right.
Try'er again.


Robo...... This is very very exciting...!!!

The best part of this 4 Tabs Example is the way you call the html page title when loaded. SUPERB !!! I see lots of potential from this technique to collect data from online dynamic pages or XMLs......!.

...Love this very much........

bobbie
04-15-2006, 03:03 AM
Try this one :) Thum

Mina
04-15-2006, 05:06 AM
Here's something i came up with last night (123 kb)
opinions welcomed

p.s. to close a tab, right click the button, then click on close. All tabs can be closed, except the main tab

azmanar
04-15-2006, 05:38 AM
Here's something i came up with last night (123 kb)
opinions welcomed

p.s. to close a tab, right click the button, then click on close. All tabs can be closed, except the main tab

Mina,

I cant use it. I dont have the PopUpMenu plugin. I have the PopupNotify Plugin.

Mina
04-15-2006, 05:40 AM
Azmanar, i'll try to make another copy that uses Application.ShowPopupMenu instead sometime today.

azmanar
04-15-2006, 05:43 AM
Azmanar, i'll try to make another copy that uses Application.ShowPopupMenu instead sometime today.

shukran jazeran ..

Mina
04-15-2006, 06:11 AM
shukran jazeran ..
No problem :)

For everyone that doesn't have the popup menu plugin, this copy uses Application.ShowPopup Menu.

by the way, i'm making a more advanced browser and hopefully ill get finished with it sometime tonight. enjoy

azmanar
04-15-2006, 06:25 AM
No problem :)

For everyone that doesn't have the popup menu plugin, this copy uses Application.ShowPopup Menu.

by the way, i'm making a more advanced browser and hopefully ill get finished with it sometime tonight. enjoy

Mina,

This new sample still needs the PopupMenu Plugin. Dont know where to get rid of it.

Mina
04-15-2006, 06:28 AM
Hi. Perhaps it gives you an error message because the plugin is enabled. Try this one

azmanar
04-15-2006, 07:48 AM
Hi. Perhaps it gives you an error message because the plugin is enabled. Try this one

Mina,

Ok this one works.

These are changes I made:
1) TAB 3 wasnt closing, so I changed the id to 30 and it works.
2) Bookmark: EDIT button - when clicked gives error, if item not selected.
I put below

-- Get selected item(s)
ix = ListBox.GetSelected("ListBox1");
if ix then
sx = ListBox.GetItemText("ListBox1", ix[1]);
nurl = Dialog.Input("MCB", "URL", e1e, MB_ICONQUESTION);
Registry.SetValue(HKEY_CURRENT_USER, "MCB", "Fav"..ix[1], nurl, REG_SZ);
else
Dialog.Message("Notice", "PLEASE SELECT AN URL", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
end

3) Bookmark: REMOVE button - when clicked gives error, if item not selected.
I put this.

-- Get selected item(s)
ix = ListBox.GetSelected("ListBox1");
if ix then
Registry.SetValue(HKEY_CURRENT_USER, "MCB", "Fav"..ix[1], "", REG_SZ);
ListBox.DeleteItem("ListBox1", ix[1]);
else
Dialog.Message("Notice", "PLEASE SELECT AN ITEM", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
end

4) PROJECT SIZE: I reduced width to 790pix along with all items because I have only 15" monitor ( poor me )..

Mina
04-15-2006, 08:10 AM
:o oops, i must've been in a hurry when changing the method (PopupMenu Plugin to Application.ShowPopupMenu)

Thanks for pointing these out
oh .. and i have 15.4" widescreen panel

Roboblue
04-15-2006, 08:12 AM
Bobbie
I've been meaning to get involved with dynamic resizing. I'll look at this example hard in a couple of days. Thanx.
Mina
I do like the active tab idea. nice implementation. Basic code leaves an open architecture for features. I was going to do a Application.ShowPopup version, but noticed that you already did it.
Keep the ideas coming and we'll get a nice custom browser before we know it.
The import bookmarks is doable, I will have to do a function to take the LINKS in the users Favorites (can get that location from the registry) and parse them into a table/database. Maybe use an in memory database to do that so there isn't a hard file left when finished, and it would be quicker if there are a lot of links. Anyone wants to tackle this is welcome.
I have done a little more to the 4-tab version. I put in a trap to prevent adding a favorite that wasn't a URL. This is just a stop gap measure and I will do a function that WILL allow you to save a local file to the bookmarks, later. Replace the Save To Favorites on click with this.

if sGood ~= -1 then
if webUp == 1 then
sFav = Web.GetURL("Web1");
elseif webUp == 2 then
sFav = Web.GetURL("Web2");
elseif webUp == 3 then
sFav = Web.GetURL("Web3");
elseif webUp == 4 then
sFav = Web.GetURL("Web4");
end
if sFav ~= "" then
sTitle = Dialog.Input("Enter Bookmark Title", "Type in Title", "", MB_ICONQUESTION);
if sTitle ~= "CANCEL" then
if sTitle ~= "" then
SQLite.Query(dbD,"insert into User values('"..sTitle.."', '"..sFav.."')");
else
result = Dialog.Message("Notice", "You MUST enter a Title.", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
end
end
else
result = Dialog.Message("Notice", "No URL available)", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
end
end

I am going to work on the submenu popup thing this afternoon. I THINK I have it figured out, but still have an inconsistancy. Once I get that done, Then I will do the submenu with submenus and then it can be used as a full featured dynamically created menu popup or bar. I still haven't gotten the mix of static AND dynamic combo's figured out.

Roboblue
04-15-2006, 08:21 AM
:Thanks for pointing these out
oh .. and i have 15.4" widescreen panel

My eyes have gotten weak in my old age. I have a 21" monitor and I run it at 1280 all the time. I sometime forget that the avearage monitor is 17". 1280 on a 21" looks like 800 on a 17". Sorry Bobbie.
It's a CRT version and when it quits, I am going to get a 20"-21" LCD. They are almost down to my price level.
I am going add a menu bar to my version and compact all the external buttons to get the area not taken up by the web objects to the point that it has room for visual customization.

Mina
04-15-2006, 08:23 AM
My eyes have gotten weak in my old age. I have a 21" monitor and I run it at 1280 all the time. I sometime forget that the avearage monitor is 17". 1280 on a 21" looks like 800 on a 17". Sorry Bobbie.
It's a CRT version and when it quits, I am going to get a 20"-21" LCD. They are almost down to my price level.
I am going add a menu bar to my version and compact all the external buttons to get the area not taken up by the web objects to the point that it has room for visual customization.

Heh.. sometimes i connect my laptop to my plasma tv, but i prefer a smaller screen, to keep on my knees while on bed :D

azmanar
04-15-2006, 08:28 AM
:o oops, i must've been in a hurry when changing the method (PopupMenu Plugin to Application.ShowPopupMenu)

Thanks for pointing these out
oh .. and i have 15.4" widescreen panel

Mina,
I like the way you use the Application.PopupMenu... it has spicy umph in it.

I think main issues are sorted out. Leaving us with adding more features only.

I would like to ask permission to include the edited sample into my Examples Site. This would enrich visitors with 3 choices of BookMarking functions to learn from:
1) Your example using REGISTRIES
2) Roboblue's example using SQLite
3) My example using TEXTFILES

okay to u?

Mina
04-15-2006, 08:32 AM
Mina,
I like the way you use the Application.PopupMenu... it has spicy umph in it.

I think main issues are sorted out. Leaving us with adding more features only.

I would like to ask permission to include the edited sample into my Examples Site. This would enrich visitors with 3 choices of BookMarking functions to learn from:
1) Your example using REGISTRIES
2) Roboblue's example using SQLite
3) My example using TEXTFILES

okay to u?

Yes, absolutely. Feel free to add any examples that catch your interest. After all, i make them for people to use :) :yes

Roboblue
04-15-2006, 08:34 AM
You can post any example I post.
I have an old Dell Lattitude (Intel PII 400 :o ) laptop that all I use for is to read Ebooks and web surf when I'm in bed. It does that nicely. I am going to get a sub $1000.00 notebook for product demos very soon. I have a medical program that looks like it is going to go through the copyright procees ok. Once it does, I am going demo it to hospitals and clinics all over the place.

bobbie
04-15-2006, 08:34 AM
Did you like the thumper Roboblue? I took it from my kids browser.

azmanar
04-15-2006, 08:37 AM
You can post any example I post.
I have an old Dell Lattitude (Intel PII 400 :o ) laptop that all I use for is to read Ebooks and web surf when I'm in bed. It does that nicely. I am going to get a sub $1000.00 notebook for product demos very soon. I have a medical program that looks like it is going to go through the copyright procees ok. Once it does, I am going demo it to hospitals and clinics all over the place.

.... May you be Blessed with greater Economic Prosperity and Good Health ....

Mina
04-15-2006, 08:41 AM
You can post any example I post.
I have an old Dell Lattitude (Intel PII 400 :o ) laptop that all I use for is to read Ebooks and web surf when I'm in bed. It does that nicely. I am going to get a sub $1000.00 notebook for product demos very soon. I have a medical program that looks like it is going to go through the copyright procees ok. Once it does, I am going demo it to hospitals and clinics all over the place.

The system im using now is HP Pavillion zt3000ea Notebook PC, i bought it the first day of its release.. it costed me 7680dirhams.. which is 7680/3.8 = about 2021 american dollars. Even though it's a brand new laptop, i am looking to purchase another one because i wanna be completely prepared with the latest tech's before i go to college.

azmanar
04-15-2006, 08:46 AM
Keep the ideas coming and we'll get a nice custom browser before we know it.

The import bookmarks is doable, I will have to do a function to take the LINKS in the users Favorites (can get that location from the registry) and parse them into a table/database.

I am going to work on the submenu popup thing this afternoon. I THINK I have it figured out, but still have an inconsistancy. Once I get that done, Then I will do the submenu with submenus and then it can be used as a full featured dynamically created menu popup or bar. I still haven't gotten the mix of static AND dynamic combo's figured out.

These features will be fantastic Robo ... :yes

sara2006
04-17-2006, 05:31 AM
Didn't like that so changed how it was populating the input box
made it bigger since it was passed 800 anyway. So this gives room for a custom logo in the top right. Animate something!
anyway, made enogh changes that I thought I would update the post.
hello
i tried to make a SubMenu but i couldnt do this :huh can you help me to create it?
thank you:lol

Roboblue
04-17-2006, 09:18 AM
Sara
Where are putting this menu?
And how do you want to create it? There's the Menu Bar menu, or ApplicationShowpopup.Menu.

sara2006
04-17-2006, 09:43 AM
hi
i want to use it in the bookmarks as SubMenu for example :

indigorose -> AutoPlay Media Studio 6.0 - NEW!
Yahoo
google

do you understand?
i'm sorry if i cant explain better than this

Roboblue
04-17-2006, 12:46 PM
Do you already know what the submenu is going to be or how many items will be in the menu?
Or will the menu be dynamically added or edited?
The reason why I am asking is because I haven't figured out how to dynamically create submenus. I am working on it and was hoping to get it down this week, but my main PC is down until I get a part in.