home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

hellllpppp

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 1442
Discussions: 200,930, Posts: 2,379,154, Members: 246,296
Old July 21st, 2006, 06:53 AM   Digg it!   #1 (permalink)
Junior Member
 
Join Date: Jul 2006
Posts: 5
hellllpppp

i inserted the explorer user promt at my blog..
but, when i tested it, i did not work...
when i typed a different password or press cancel...
is there any way to resolve this problem??

<HTML>
<BODY>
<SCRIPT TYPE="text/JavaScript">
var password = prompt('Please enter your PROMOTIONAL CODE:','');
if (password != null) location.href = password + ".htm";
</SCRIPT>
</BODY>
</HTML>

this is the code i use..
i dont really know how to use it so i just insert the stuff..
can anyone help me or tell me a different code??
nads is offline   Reply With Quote
Old July 21st, 2006, 06:55 AM     #2 (permalink)
Junior Member
 
Join Date: Jul 2006
Posts: 5
any help/?/???? please..!!
nads is offline   Reply With Quote
Old July 21st, 2006, 06:56 AM     #3 (permalink)
Junior Member
 
Join Date: Jul 2006
Posts: 5
anyone?
nads is offline   Reply With Quote
Old July 21st, 2006, 07:13 AM     #4 (permalink)
A hero in training
 
GroundZero3's Avatar
 
Join Date: Oct 2001
Location: Norfolk, VA
Posts: 26,820
Blog Entries: 15
You need to realize that alot of people on this forum are based in the the US. It is still very early please be patient.
GroundZero3 is offline   Reply With Quote
Old July 21st, 2006, 07:41 AM     #5 (permalink)
Ultimas w00t! Mastah...
 
vikeor's Avatar
 
Join Date: Sep 2004
Location: Warsaw, Poland
Posts: 6,420
Send a message via MSN to vikeor
.. and its not like ur gonna get help in a few min. Give it time.
__________________
AMD Opteron 146 2.8ghz 280x10
1GB GEIL ONE S PC3200
DFI LanParty UT NF4 Ultra-D
ATI X1800XT @ 700/800
Enermax Noisetaker 485W
BigWater SE
vikeor is offline   Reply With Quote
Old July 21st, 2006, 07:45 AM     #6 (permalink)
Junior Member
 
Join Date: Jul 2006
Location: Belfast
Posts: 15
Check out coderstalk.net, there very helpful with coding issues.
neochivers is offline   Reply With Quote
Old July 21st, 2006, 02:09 PM     #7 (permalink)
Banned
 
Iturea's Avatar
 
Join Date: Jan 2004
Location: Earth
Posts: 420
Arrow

Quote:
Originally Posted by nads
i inserted the explorer user promt at my blog..
but, when i tested it, i did not work...
when i typed a different password or press cancel...
is there any way to resolve this problem??

<HTML>
<BODY>
<SCRIPT TYPE="text/JavaScript">
var password = prompt('Please enter your PROMOTIONAL CODE:','');
if (password != null) location.href = password + ".htm";
</SCRIPT>
</BODY>
</HTML>

this is the code i use..
i dont really know how to use it so i just insert the stuff..
can anyone help me or tell me a different code??

Well the first thing I noticed right off the bat is your usage of location.href

location is a class of the window namespace, so I would write it as:

Code:
window.location.href

Your code also assumes that the file exists in the current directory. So if that is what you are shooting for...

Here is how I would do it:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>My Page</title>
  </head>
  <body>
    <script type="text/javascript" xml:space="preserve" language="JavaScript">
    //<![CDATA[
      var password = prompt("Please enter your PROMOTIONAL CODE:","");
      if (password != null && password.length > 0){ 
        window.location.href = password + ".htm";
      }
    //]]>
    </script>
  </body>
</html>
If you are try to redirect to another directory then you will need to include your domain address in the redirect...

hope that helps...

Last edited by Iturea : July 21st, 2006 at 02:39 PM.
Iturea is offline   Reply With Quote
Old July 24th, 2006, 07:29 AM     #8 (permalink)
Junior Member
 
Join Date: Jul 2006
Posts: 5
ok thanks!!
nads is offline   Reply With Quote
Old July 24th, 2006, 07:56 AM     #9 (permalink)
Junior Member
 
Join Date: Jul 2006
Posts: 5
ok i am still lost...can you tell me exactly where to insert everything..please??
nads is offline   Reply With Quote
Old July 24th, 2006, 11:53 AM     #10 (permalink)
Banned
 
Iturea's Avatar
 
Join Date: Jan 2004
Location: Earth
Posts: 420
Quote:
Originally Posted by nads
ok i am still lost...can you tell me exactly where to insert everything..please??

What are you trying to insert?
Iturea is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (2870)
Obama the Muslim (14)
California Passes Anti-Flat-HDTV Le.. (39)
Is the PSU I received dead? (10)
windows vista security holes (9)
HIS HD5770 graphic card question (15)
Print spooler problem (13)
Foreign voltage (10)
Install XP pro and a Vista laptop ?.. (10)
Dept. of HS: NSA 'Helped' Develop V.. (15)
A good PSU? (10)
Ideal cheap graph card for PC-Gamin.. (16)
New Computer wont recognize XP disc (7)
EVGA 9800 gtx help with finding a g.. (8)
Recent Discussions
Graphics Card Upgrade Question (1)
favorit (1)
solutions for virtical white lines on.. (1)
Regular Build (3)
Ideal cheap graph card for PC-Gaming? (16)
Fire in DVD (2)
Modern Warfare For the PC (33)
radeon x850xt platinum & shader 3 (3)
Have you switched yet? (84)
Install XP pro and a Vista laptop ?? (10)
Wireless Router+Cable Modems and Much.. (0)
Optical Audio A-B Switch (1)
windows vista security holes (9)
The NTDVM CPU has encountered an ille.. (24)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (34)
Wireless speakers for PC? (11)
Print spooler problem (13)
Help getting around port 80 for camer.. (2)
Display shows 3x5 inch in middle of s.. (3)
monitor will not turn on at all, (1)
World's largest Monopoly Game using G.. (331)
Foreign voltage (10)
FiOS modem/router interfering with ne.. (7)
Browsers wont load websites (2)
Virus Doctor Popup? (1)


All times are GMT -4. The time now is 06:29 AM.
TechIMO Copyright 2009 All Enthusiast, Inc.



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