473,397 Members | 1,960 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

close favorites and history using javascript

does any body knows how to open a new IE window and close the favorites tab
and history tab (if tabs enabled)? problem is that when opening new
windows(pop-ups) with absolute size and the user has favorites or history
views enabled then the content in page is wraped and scroll bars appears
everywhere.

thanks,
alex.
Nov 19 '05 #1
8 1730
does any body knows how to open a new IE window and close the favorites tab and history tab (if tabs enabled)?
You mean, 'how can I really annoy a user by taking complete control of their
web browser and hide all of the useful things they purposely had left open?'

Well, you can't. Fortunately. At this time, you can launch a window and hide
the toolbar, but even that is getting tougher to do as newer browsers
prevent such annoying behavior from javascript.
problem is that when opening new
windows(pop-ups) with absolute size and the user has favorites or history
views enabled then the content in page is wraped and scroll bars appears
everywhere.


The better solution is to not force absolute sized designs on the end-user.

-Darrel
Nov 19 '05 #2
I am trying to give the user a more usefull experience, you dont need a
confirmation window wiht favorites and history attached....so dont give me
your cliche...
"darrel" <no*****@hotmail.com> wrote in message
news:Ow**************@TK2MSFTNGP12.phx.gbl...
does any body knows how to open a new IE window and close the favorites

tab
and history tab (if tabs enabled)?


You mean, 'how can I really annoy a user by taking complete control of
their
web browser and hide all of the useful things they purposely had left
open?'

Well, you can't. Fortunately. At this time, you can launch a window and
hide
the toolbar, but even that is getting tougher to do as newer browsers
prevent such annoying behavior from javascript.
problem is that when opening new
windows(pop-ups) with absolute size and the user has favorites or history
views enabled then the content in page is wraped and scroll bars
appears
everywhere.


The better solution is to not force absolute sized designs on the
end-user.

-Darrel

Nov 19 '05 #3
so you are the good programmer that give the user those datepickers with
favorites and history all around the calendar ahh?? hehehe so you think you
are very wise ahh?? sorry, you are not.
"darrel" <no*****@hotmail.com> wrote in message
news:Ow**************@TK2MSFTNGP12.phx.gbl...
does any body knows how to open a new IE window and close the favorites

tab
and history tab (if tabs enabled)?


You mean, 'how can I really annoy a user by taking complete control of
their
web browser and hide all of the useful things they purposely had left
open?'

Well, you can't. Fortunately. At this time, you can launch a window and
hide
the toolbar, but even that is getting tougher to do as newer browsers
prevent such annoying behavior from javascript.
problem is that when opening new
windows(pop-ups) with absolute size and the user has favorites or history
views enabled then the content in page is wraped and scroll bars
appears
everywhere.


The better solution is to not force absolute sized designs on the
end-user.

-Darrel

Nov 19 '05 #4
> so you are the good programmer that give the user those datepickers with
favorites and history all around the calendar ahh?? hehehe so you think you are very wise ahh?? sorry, you are not


Wise? No. I just give a damn about the end user's preferences.

-Darrel
Nov 19 '05 #5
> you dont need a
confirmation window wiht favorites and history attached....so dont give me
your cliche...


Use a javascript alert. Or a div. Or just load the confirmation in the same
browser window. No need to spawn a new window.

Anyways, I did answer your question. If you want to pop-up a new window, you
can, but there's no way to close the bookmarks pane autoamtically from your
end.

-Darrel
Nov 19 '05 #6
yes I need a new window because the new GridView (ASP.NET 2.0) control
doesnt post back tha value of a hidden column so instead I use a hyperlink
to a page and pass the hidden value in the query string. So you see...there
is a very good reason for a new window...you just didnt know..but every day
we learn something new.

Alejandro.
"darrel" <no*****@hotmail.com> wrote in message
news:ub**************@TK2MSFTNGP15.phx.gbl...
you dont need a
confirmation window wiht favorites and history attached....so dont give
me
your cliche...


Use a javascript alert. Or a div. Or just load the confirmation in the
same
browser window. No need to spawn a new window.

Anyways, I did answer your question. If you want to pop-up a new window,
you
can, but there's no way to close the bookmarks pane autoamtically from
your
end.

-Darrel

Nov 19 '05 #7
> yes I need a new window because the new GridView (ASP.NET 2.0) control
doesnt post back tha value of a hidden column so instead I use a hyperlink
to a page and pass the hidden value in the query string. So you see...there is a very good reason for a new window.


That's not a very good reason. Sounds like a sloppy control and you coming
up with a workaround. Personally, I've found datagrids/gridviews to be so
limiting in their front end presentation (and apparently, their excution
with the gridview) that they aren't worth using.

To each their own, of course. We all skin our cats differently.

Anyways, if you must use a pop-up, fine...just don't expect to be able to
completely control it.

-Darrel
Nov 19 '05 #8
may be you are right. anyway..after this this.Response.Write("<script
language='javascript'> {window.close();}</script>") I dont have to worry
about favorites or history, just changed from confirmation to non
confirmation window.

alex.

"darrel" <no*****@hotmail.com> wrote in message
news:ep****************@TK2MSFTNGP14.phx.gbl...
yes I need a new window because the new GridView (ASP.NET 2.0) control
doesnt post back tha value of a hidden column so instead I use a
hyperlink
to a page and pass the hidden value in the query string. So you

see...there
is a very good reason for a new window.


That's not a very good reason. Sounds like a sloppy control and you coming
up with a workaround. Personally, I've found datagrids/gridviews to be so
limiting in their front end presentation (and apparently, their excution
with the gridview) that they aren't worth using.

To each their own, of course. We all skin our cats differently.

Anyways, if you must use a pop-up, fine...just don't expect to be able to
completely control it.

-Darrel

Nov 19 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: shank | last post by:
Is there any one "add to favorites" code that will work for IE, NS, AOL, and a host of others? At least some code that will give me an effective "add to favorites" for the highest percentage of...
2
by: Alan Little | last post by:
The window.close() method apparently does not work in Mac IE 5.2. I've used it with no problem in the "big 3" browsers on Mac and Windows, including Mac IE 5.0, but now in 5.2 it doesn't work. Has...
4
by: GrantS | last post by:
I am having a problem closing a popup window opened modally. When I try to close the window (when the user hits save button and the data has been processed), the Popup window opens as a full screen...
17
by: ljlevend2 | last post by:
I'm implementing the WebBrowser control in my app and I would like to be able to show the Add to Favorites and Organize Favorites dialogs that are used in Internet Explorer. Is this possible? ...
37
by: Jan Tovgaard | last post by:
Hey everyone:) We have a critical problem, which I can see that other people also has ran into. In Internet Explorer 7 it is no longer possible to do a window.close after opening a window,...
5
by: draken | last post by:
Basically, what I am looking to do is to sync up browsers favorites via a website without a download. I thought of javascript when first doing this, as I know, mozilla would allow me to pull them...
7
by: Toccoa | last post by:
After considerable googling - I mean searching with Google(r) - I could not find javascript on a button or <a href=... to close a window in the latest versions of IE and FireFox. There seemed...
2
by: john_c | last post by:
If I want to upload a user's (with permissiom) web browser favorites, will they have to configure their favorites folder to allow the ASP.NET user to access that folder? What happens for Mac...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.