create non-sidebar bookmarks in Firefox?

M

mbisping

Hello,

is there a way to create regular non-sidebar bookmarks in Firefox with
javascript?
If not, why?
Is there a workaround - maybe with a plugin?

Thanks

Meikel

We can't refer users to CRTL-D since we prepare bookmark urls with
javascript (eliminating parameters like jsessionid and adding others).
 
A

ASM

En réponse à mbisping qui écrivit, en date du : 4/09/07 9:10, le
message suivant :
Hello,

is there a way to create regular non-sidebar bookmarks in Firefox with
javascript?

what is a "sidebar" bookmark ?
(I have no sidebar in *my* Firefox, it is an user's choice, no?)
a contrario : what is a non-sidebar bookmark ?
If not, why?

Probably because you can't modify an opened window ?
(even by window.resizeTo as user can disable this option)
Probably because you can't interact on a soft's menus ?
We can't refer users to CRTL-D since we prepare bookmark urls with
javascript (eliminating parameters like jsessionid and adding others).

And what about my Personal bookmarks bar ?

I do not understand webmasters who want organize user's preferences.
 
T

The Magpie

mbisping said:
is there a way to create regular non-sidebar bookmarks in Firefox with
javascript? If not, why? Is there a workaround - maybe with a plugin?
Several questions spring to mind:

1. Why not use standard bookmarks (in the "Bookmarks" menu)?
2. The whole sidebar thing is purely personal choice, surely?
3. Why do you particularly want to use Javascript for it?
4. What makes you think "non-sidebar" bookmarks are "regular"?

Frankly, I'm just puzzled by your question.
 
M

mbisping

It's a datawarehouse web application.
The current url might contain parameters that should not become part
of the bookmark url (jsessionid).
Moreover, we have a dojo dialog in which users can select which
additional parameters should become part of the url, so easiest way is
to create the url with javascript.

Users classically expect bookmarks to open in the current page or tab.
Opening our pages in sidebar makes no sense in layout.
 
A

ASM

En réponse à mbisping qui écrivit, en date du : 9/09/07 13:55, le
message suivant :
It's a datawarehouse web application.
The current url might contain parameters that should not become part
of the bookmark url (jsessionid).

And then ... ?
On reload if the session is not opened what could do thoses parameters ?
Moreover, we have a dojo dialog in which users can select which
additional parameters should become part of the url, so easiest way is
to create the url with javascript.

And where is the problem ?

<select onchange="
var url = 'http://mySite/myFolder/thisPage.htm?';
var k = this.options[this.selectedIndex];
document.getElementById('url').href= url + k.value + '=' +
encodeURI(k.text);">
<option value="choice1">Choice 1</option>
<option value="choice2">Choice 2</option>
<option value="choice3">Choice 3</option>
</select>
<a id="url" href="http://mySite/myFolder/thisPage.htm">
click right to bookmark said:
Users classically expect bookmarks to open in the current page or tab.
Opening our pages in sidebar makes no sense in layout.

J'ai rien compris !

How do you do to open a page in the side-bar ?
What kind of Fx did you get ?
 
T

timthemedia

En réponse à mbisping qui écrivit, en date du : 9/09/07 13:55, le
message suivant :
It's a datawarehouse web application.
The current url might contain parameters that should not become part
of the bookmark url (jsessionid).

And then ... ?
On reload if the session is not opened what could do thoses parameters ?
Moreover, we have a dojo dialog in which users can select which
additional parameters should become part of the url, so easiest way is
to create the url with javascript.

And where is the problem ?

<select onchange="
var url = 'http://mySite/myFolder/thisPage.htm?';
var k = this.options[this.selectedIndex];
document.getElementById('url').href= url + k.value + '=' +
encodeURI(k.text);">
<option value="choice1">Choice 1</option>
<option value="choice2">Choice 2</option>
<option value="choice3">Choice 3</option>
</select>
<a id="url" href="http://mySite/myFolder/thisPage.htm">
click right to bookmark said:
Users classically expect bookmarks to open in the current page or tab.
Opening our pages in sidebar makes no sense in layout.

J'ai rien compris !

How do you do to open a page in the side-bar ?
What kind of Fx did you get ?

The sidebar Meikel is referring to is the normal firefox sidebar (like
where your history shows up).
One reason to do this is to give the user one easy cross browser
option for adding a bookmark.
I know 'control + d' works but many people are looking to have some
kind of call to action to get people to bookmark.

The "common" javascript that is used looks something like:
(HEY NOT MY SCRIPT, I KNOW IT SUCKS)

function bookmark(){
var title="Google";
var url="http://www.google.com";

if(window.sidebar){
window.sidebar.addPanel(title,
url,"");

}else if( window.opera &&
window.print ){
var mbm =
document.createElement('a');

mbm.setAttribute('rel','sidebar');
mbm.setAttribute('href',url);

mbm.setAttribute('title',title);
mbm.click();

}else if(document.all){

window.external.AddFavorite( url, title);

}
}

It will properly create a bookmark in firefox, but when that bookmark
is clicked it opens in a sidebar, much like your history when you
'control + h.'
If you click the properties, you can uncheck a box that says "Load
this bookmark in sidebar", but it would be better if it opened in the
main view as a default.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top