hellllpppp  | |
July 21st, 2006, 06:53 AM
|
#1 (permalink)
| | Junior Member
Join Date: Jul 2006
Posts: 5
|
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??  |
| |
July 21st, 2006, 06:55 AM
|
#2 (permalink)
| | Junior Member
Join Date: Jul 2006
Posts: 5
|
any help/?/???? please..!! |
| |
July 21st, 2006, 06:56 AM
|
#3 (permalink)
| | Junior Member
Join Date: Jul 2006
Posts: 5
| |
| |
July 21st, 2006, 07:13 AM
|
#4 (permalink)
| | A hero in training
Join Date: Oct 2001 Location: Norfolk, VA
Posts: 26,820
|
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. |
| |
July 21st, 2006, 07:41 AM
|
#5 (permalink)
| | Ultimas w00t! Mastah...
Join Date: Sep 2004 Location: Warsaw, Poland
Posts: 6,420
|
.. 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 |
| |
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. |
| |
July 21st, 2006, 02:09 PM
|
#7 (permalink)
| | Banned
Join Date: Jan 2004 Location: Earth
Posts: 420
| 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.
|
| |
July 24th, 2006, 07:29 AM
|
#8 (permalink)
| | Junior Member
Join Date: Jul 2006
Posts: 5
| |
| |
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?? |
| |
July 24th, 2006, 11:53 AM
|
#10 (permalink)
| | Banned
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? |
| | | Thread Tools | Search this Thread | | | | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Most Active Discussions | | | | | Recent Discussions  | | | | | |