View Full Version : Help!!!
johnpratt
12-12-2002, 09:02 PM
Need a javascript that I can use to resize my web page to 750px width without any margins. Must be FrontPage 2000 compatible.
Can anyone give me a hand with this.
Thank you,
Steven_Smith
12-12-2002, 09:48 PM
<script>
window.resizeTo(width,height)
</script>
hey johnpratt, please read posting rules before posting a question.
The subject of HELP is not the way to post.
HELP, i am dying.. get it.
With HELP you expect us to open and read your post without knowing what its about.
HELP!, I cannot get my VB script to run.
This tells us that you need help with VB script. I wouldn't open this because I dont know VB script.
Get it?
steve :(
John, just to elaborate on Steven's warning, here's our posting guide: http://www.codingforums.com/postguide.htm
Thanks,
johnpratt
12-13-2002, 09:00 PM
Sorry, I was being rushed when I wrote that subject line. I humbly apologize for my mistake, but I would still appreciate any help I could get.
Thank you.
whammy
12-13-2002, 11:40 PM
Originally posted by Steven_Smith
<script>
window.resizeTo(width,height)
</script> :confused:
joeframbach
12-14-2002, 05:57 PM
heres something that might help:
<SCRIPT language=javascript>
<!--
function resize()
{
var width=document.getElementById("wid").value;
height=document.getElementById("hei").value;
window.resizeTo(width, height);
}
-->
</SCRIPT>
<BODY>
<INPUT type=text id=wid>
<INPUT type=text id=hei>
<INPUT type=button value="resize!" onClick="resize()">
</BODY>
krycek
12-14-2002, 06:50 PM
well well well this makes me chuckle :D:D:D
here we have a real n00bie who doesn't follow the rules, yet still gets a very speedy response to his question, with the correct answer (applauds steven smith). That is a tribute to the level of excellence of these forums.
So then we have the warnings given etc. etc. upon which the n00bie still asks for help, choosing in his self-professed haste to totally ignore/overlook the answer he has so hastily been seeking :D
Then whammy, our bemused moderator, points this out, probably wondering like the rest of us why the speedy greenhorn hasn't noticed the answer there in all its simplicity, and a well-meaning joeframbach posts a longer code snippet for our hasty enquirer, which is laudable for the help it gives and the fact that people are trying to give this guy the stuff he needs, yet at the same time totally pointless because it is exactly the same code as that already given by steven smith... except it has a two extra lines that are useless because they do absolutely nothing, and the whole thing is wrapped up in a function, the code with which to call is as long as the one line of code needed in the first place!
Plus, if this guy doesn;t know how to stick it in his page, he shouldn;t be just asking for jsut the code, he should be asking for a tutorial too!
So it seems that in our patience and eagerness to help (very good things too) we waste our time by doing something like this. Including me, who has just spent 5 minutes commenting on this daft situation.
but just to make sure, let's give the necessary code to johnpratt (very fitting name btw! lol!) one more time, so that he cannot miss it:
window.resizeTo(width,height)
There we go! No need for repetition! He can just stick that in his script and his problem will be solved!
(Why do I get the feeling that it's not that simple? Something tells me that this isn;t over yet! :rolleyes: )
::] krycek [::
whammy
12-15-2002, 04:44 AM
Perhaps Joe was demonstrating how you could assign values to the width and height variables using a form, although in that particular case I would have passed the values to the function with this.value instead of using getElementById(), personally. ;)
In response to the email which I received, I answered this question like so:
<script type="text/javascript">
<!--
window.resizeTo(800,600);
// -->
</script>
Yeah it adds in a couple of lines... the HTML comments and proper syntax for XHTML compatibility... :eek:
Oops, I posted the code again. :)
BTW, to johnpratt:
Being a "n00bie" isn't a bad thing, and I don't believe krycek intended to be derogatory with that comment... we were ALL n00bies at one point and we're all still n00bies in many of the emerging technologies (or the ones we haven't studied!). I know a couple of really good places to look for a javascript tutorial if you're interested, however:
http://www.javascriptkit.com
http://www.webmonkey.com
http://www.w3schools.com
These sites should automatically be bookmarks for EVERY web developer, IMO... the first one has some pretty in-depth javascript tutorials (and is the "parent" of this forum), and the other two have tutorials on just about everything concerning web development.
brothercake
12-15-2002, 05:50 AM
Originally posted by whammy
Being a "n00bie" isn't a bad thing, and I don't believe krycek intended to be derogatory with that comment...
I don't think so either.
Even so - to krycek - I feel a certain empathy with you, to do with the intense enthusiasm and excitement one feel's with interesting learning curves, and so from my own experience I would politely and humbly suggest chilling out, just a little bit :)
krycek
12-15-2002, 04:24 PM
hehehe, my post was purposely filled with smilies so that you would know that I was perfectly chilled out ;)
I just found it funny, that's all! :D
yup n00bness is nothing bad, after all I am just trying to learn XBL and stuff atm, and poor jkd has been very good in putting up with my questions :)
Everyone is new at some time, I just was applauding people for still going out of their way to help someone who seemed in too much of a hurry to notice the help already given, lol :)
::] krycek [::
johnpratt
01-15-2003, 02:16 AM
I really appreciate all the help you have given me and you cleared up a lot for me.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.