By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,654 Members | 1,513 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,654 IT Pros & Developers. It's quick & easy.

left menu

P: n/a
Hello, I want to do the following using JS: when you click a link, the window resizes to 100% height
and aligns to the right + it opens another window that is 100% height x 300px width and aligned to
the left.

This makes two windows one next to the other, occupying the whole screen. I want to do this to put
links of bookmarks on the left window used as a navigation window. Can some one give me a script
that will do just this ?
Thanks,
--
Charles.
Jul 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a

"Charles" <go***********@yahoo.com> wrote in message
news:bp*************@ID-208473.news.uni-berlin.de...
Hello, I want to do the following using JS: when you click a link, the window resizes to 100% height and aligns to the right + it opens another window that is 100% height x 300px width and aligned to the left.

This makes two windows one next to the other, occupying the whole screen. I want to do this to put links of bookmarks on the left window used as a navigation window. Can some one give me a script that will do just this ?
Thanks,


Problem is, you have no reliable way of knowing how much space the
browser has access to. A better solution would be to use style sheets
and <DIV> tags, and assume teh user will have the window sized to his
needs. This also has the advantage of being easier for the likes of
google to search through.
--
--
Fabian
Visit my website often and for long periods!
http://www.lajzar.co.uk

Jul 20 '05 #2

P: n/a
Thanks Fabian, I did it actually :) http://www.abahia.com/bookmark
It's working fine, just for my screen resolution for now (1600 x 1200), but then it's easy, I just
have to add "if" conditions to resize it to 800x600, 1024x768, etc...
I have another problem: on the index page I want a button that'll close both open windows (kind of a
logout function). I haven't been able to have it work. Could you have a look at it please ?
Thanks,

--
Charles.
"Fabian" <la****@hotmail.com> escreveu na mensagem
news:bp*************@ID-174912.news.uni-berlin.de...
|
| "Charles" <go***********@yahoo.com> wrote in message
| news:bp*************@ID-208473.news.uni-berlin.de...
| > Hello, I want to do the following using JS: when you click a link, the
| window resizes to 100% height
| > and aligns to the right + it opens another window that is 100% height
| x 300px width and aligned to
| > the left.
| >
| > This makes two windows one next to the other, occupying the whole
| screen. I want to do this to put
| > links of bookmarks on the left window used as a navigation window. Can
| some one give me a script
| > that will do just this ?
| > Thanks,
|
| Problem is, you have no reliable way of knowing how much space the
| browser has access to. A better solution would be to use style sheets
| and <DIV> tags, and assume teh user will have the window sized to his
| needs. This also has the advantage of being easier for the likes of
| google to search through.
|
|
| --
| --
| Fabian
| Visit my website often and for long periods!
| http://www.lajzar.co.uk
|
Jul 20 '05 #3

P: n/a
Charles wrote:
Hello, I want to do the following using JS: when you click a link, the
window resizes to 100% height and aligns to the right + it opens another
window that is 100% height x 300px width and aligned to the left.
You do not need and you do not want to manipulate the working area of your
visitors by doubtful means.
This makes two windows one next to the other, occupying the whole screen.
What about my other (browser) windows that are forced in the background then?
I want to do this to put links of bookmarks on the left window used as a
navigation window.
You are looking for frames or (better) a frame-like layout with CSS.
Popup windows can be used, too, but do not resize the parent window then.
Can some one give me a script that will do just this ?


I could but I will not since it is *my* desktop, not yours.
PointedEars

P.S.
Your automagic line-break comes too late, constriction to 80 characters
per line is required and constriction from 72 up to 76 characters is
recommended (I have wrapped it here.) Please reconfigure your news client
correctly.
Jul 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.