a few quick qs from a relative beginner

This is a discussion on "a few quick qs from a relative beginner" within the JavaScript Forum section. This forum, and the thread "a few quick qs from a relative beginner are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Feb 10th, 2008, 19:57
Junior Member
Join Date: Feb 2008
Location: U.S.A
Age: 26
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
a few quick qs from a relative beginner

hey guys, just 2 questions:
first of all, i am trying to make a very basic "password" page just to hide my page from morons at school, and i do this by basically checking if the value entered into the form == whatever i set it at in javascript just on that page. really simple, and i get it to return true, but then i try to set the window.location to something else, but it either just reloads the same page or puts out "file name missing" or something like that. how to fix?

secondly, how do you get jscript to document.write on the html document you tell it to do it on? whenever i tell a page to do that, it just starts a new blank document and puts down what i want on it. thanks guys
Reply With Quote

  #2 (permalink)  
Old Feb 10th, 2008, 22:14
unitedcraig's Avatar
SuperMember

SuperMember
Join Date: Oct 2007
Location: Stockport
Age: 17
Posts: 825
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: a few quick qs from a relative beginner

If your password is just to stop people from school getting access to your page, can't just just use tools with your web hosting account to either block ips or password protect dicectories?
__________________
Last Blog Entry: A Royal Mistake (Feb 20th, 2008)
Reply With Quote
  #3 (permalink)  
Old Feb 11th, 2008, 17:59
Junior Member
Join Date: Feb 2008
Location: U.S.A
Age: 26
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Re: a few quick qs from a relative beginner

yeah, but you are kindve missing the point: i am learning javascript and just wanted to make something simple i can actually point to and say i made... rather than, "oh yeah, i checked off that box." thanks though.
Reply With Quote
  #4 (permalink)  
Old Feb 11th, 2008, 19:24
Aso's Avatar
Aso Aso is offline
Chief Moderator

SuperMember
Join Date: Oct 2007
Location: UK
Posts: 1,011
Blog Entries: 2
Thanks: 5
Thanked 23 Times in 20 Posts
Send a message via Skype™ to Aso
Re: a few quick qs from a relative beginner

If you want anything secure, javascript is simply not up to the challenge. You can still 'make' something of it though - why not a server-side script or similar?
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
Reply With Quote
  #5 (permalink)  
Old Feb 11th, 2008, 19:44
Marc's Avatar
Moderator

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,649
Thanks: 0
Thanked 8 Times in 8 Posts
Send a message via MSN to Marc Send a message via Skype™ to Marc
Re: a few quick qs from a relative beginner

You might like to follow this JavaScript tutorial: http://www.w3schools.com/js/js_operators.asp.

I have stopped you at the operators page as the pages before just show you document.write .
Reply With Quote
  #6 (permalink)  
Old Feb 11th, 2008, 21:52
Junior Member
Join Date: Feb 2008
Location: U.S.A
Age: 26
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Re: a few quick qs from a relative beginner

yeah thanks guys i am using those tutorials, but still no one has answered my original question: why is it that when i go:

how do you get javascript to document.write on the document you are already on? it always just goes to a new page for me. thanks
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
relative linking in php sudhakararaog PHP Forum 1 Mar 12th, 2008 23:43
positioning - relative or absolute? google Web Page Design 13 Nov 8th, 2007 16:00
Is it possible to position something relative something else? the newbie web designer Web Page Design 7 Feb 22nd, 2007 18:04
relative position problem antonyx Web Page Design 12 Dec 30th, 2005 21:19
can layers be relative? warmer Web Page Design 0 Nov 8th, 2005 18:42


All times are GMT. The time now is 10:38.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43