Does anyone here know Dreamweaver?

Svenskaflicka

Fountain
Joined
Jun 9, 2002
Posts
16,142
I'm trying to lock the size a window, so that it won't be larger than 760*420. The point is to make it non-resizeabe.

I'm looking in my books, but I can't find how to do it. Can anyone Dreamweaver-savvy out here help me, please?
 
I write my HTML by hand, but I don't believe there is a way to do what you want in pure HTML - you will have to use scripting. This shouldn't be a problem since ********** is built into almost all browsers now. The only problem would be if the client has ********** turned off, which you can code for:

<SCRIPT type="text/**********" LANGUAGE="**********">
<!--
Java script or other scripting here
//-->
</SCRIPT>
<NOSCRIPT>
Pure HTML here
</NOSCRIPT>

So, to do what you want, and have it work regardless (without a fixed size if they have JS turned off):

<SCRIPT type="text/**********" LANGUAGE="**********">
<!--
window.open("YourHTMLPage.html", "width=760, height=420, left=25, top=25")
//-->
</SCRIPT>
<NOSCRIPT>
<a href="YourHTMLPage.html" target="_blank">
</NOSCRIPT>

I am not sure about which DOM models the "window.open" method is compatible with, but it is supported by IE:

http://msdn.microsoft.com/library/d...hop/author/dhtml/reference/methods/open_1.asp

But be sure you test with all of popular browsers.

EDIT: Apparently vBulletin has removed all references to java script (one word) and replaced it with asterisks. Just replace those with "java script" and remove the space between the two words.
 
Last edited:
Thank you. I'm still a little confused, though. What I'm trying to do, see, is to have a portal that links to a frameset with links in the left frame, and the webpages themselves in the mainframe on the right. I've fixed the webpage, and it looks great, and all the links work, but both the portal and the frameset are by default resizeable. You can grab the corner and make it any size you want. I want to lock it, so you can't resize it, but as far as I can tell, if I use Open New Window, then I can lock its size to whatever size I want, which would mean that by clicking the link on the portal, I could open the frameset in a new window with its size locked at 760X420 - but I want to lock the portal at that same size too!

How do I do that? Can I only fix the size by the Open New Window method?

If I had a link to click on on another page to open the portal, I could fix it, but the portal is supposed to be the first part, with no prior links to it.

All this is for my Dreamweaver exam, it's not for a real webpage. This little detail is what separates C from B.:(
 
Svenskaflicka said:
How do I do that? Can I only fix the size by the Open New Window method?

If I had a link to click on on another page to open the portal, I could fix it, but the portal is supposed to be the first part, with no prior links to it.

All this is for my Dreamweaver exam, it's not for a real webpage. This little detail is what separates C from B.:(
Okay. I understand what you are trying to do now, and that is a little different than what you first asked.

I am going to punt for a couple of reasons:

1) I generally don't do frames - they are usually bad for a number of reasons. I like the concept, but the implementation is flawed and causes a number of problems for the user. If you can at all avoid the use of frames in a website then you should (you can accomplish almost all of the same things with CSS and columns). Tell your teacher I said so - although I do understand knowing them (but he/she also tell you to avoid them if possible).

2) With all do respect, and for your own good, I am not going to do any of your homework for you. I like to help people, and if people really get stuck I can give clues/help to get them unstuck, but part of doing this for yourself is to learn.

I too am learning HTML and web development, and I am very much an HTML neophyte. I often ask for help and clues, but only after searching the web and trying to figure it out on my own.

I know you aren't really asking me to do your homework for you but there is nothing I can tell you about how to solve your problem that I wouldn't have to learning myself by going out and doing the research - so I am going to suggest that you do it instead.

There are a number of websites I can refer you to if you wish.
 
See if this helps ...

Make a start page that looks like this:
<script language=**********>
window,open(PORTAL_START_PAGE_URL,TITLE,WIDTH,HEIGHT,'resizable=0');
window.close();
</script>

This creates a new window with the portal inside and closes current window
 
sorry Ms. Flicka, Have you tried asking Weird Harold or Bobmi?
they are very PC savvy! Good Luck!
 
Part of learning for myself is seeking help. Either by reading about it in books, or on webpages, or by asking others where in the program I can fix this. I still have to actually DO the thigns, you know!

I can't set up another window linking to the portal, otherwise that would be a great idea. I have to START with the portal, and I HAVE TO use frames.

If you know any sites where I can learn more, I'd be grateful for the addresses.
 
Svenskaflicka said:
Part of learning for myself is seeking help. Either by reading about it in books, or on webpages, or by asking others where in the program I can fix this. I still have to actually DO the thigns, you know!
I know, but what I said still applies; I don't know the answer off the top of my head, so I would have to go find it - and you can do that yourself.

I can't set up another window linking to the portal, otherwise that would be a great idea. I have to START with the portal, and I HAVE TO use frames.

If you know any sites where I can learn more, I'd be grateful for the addresses.
Always start with the source/specification. The source/spec. for HTML (and all things web) is the World Wide Web Consortium:
http://www.w3.org/TR/REC-html40/present/frames.html

The Web Reference has good tutorials, and here is one I found by inputting "fixed frames html" into Google:

http://www.webreference.com/html/tutorial24/

Good luck.
 
Thank you. I still can't make heads nor tails of this, but I'll have a look at Dreamweaver, and see if I can figure it out.
 
Back
Top