Hi all!
I'm very appreciative that someone have come out with such a method to go around IE7's prompt bug as shown in the below link, but I don't really know how to use it.
This is what I did and the bottom one is my original section of my javascript code, but I think I use it wrongly.
[code=javascript]<script type='text/javascript' src='IEprompt.j s'></script>
<script type='text/javascript'>
function promptCallback( "") {
alert("Enter the number of Lucky Dip Chances you want to buy.");
location='<?=te p_href_link(FIL ENAME_LUCKY_DIP , '', 'SSL')?>';
} else {
location="lucky dip.php?osCsid= <?=$_GET['osCsid']?>&action=purch ase&qty=" + number;
}
IEprompt("How many Lucky Dip Chances you want to buy?.", "");
</script>
[/code]
Original::
[code=javascript]<script>
function main() {
var input = prompt("How many Lucky Dip Chances you want to buy?.", "");
var number = input;
if(number == "") {
alert("Enter the number of Lucky Dip Chances you want to buy.");
location='<?=te p_href_link(FIL ENAME_LUCKY_DIP , '', 'SSL')?>';
} else {
location="lucky dip.php?osCsid= <?=$_GET['osCsid']?>&action=purch ase&qty=" + number;
}
}
</script>
[/code]
I just started learning javascript, so I'm sorry that I don't understand the terminology. Sorry about that. This is previously how I link to the front page, upon using yout script, can we retain the link: <a href="javascrip t:main()"> ?
Thank you so much!
Warmest Regards,
Gordon
I'm very appreciative that someone have come out with such a method to go around IE7's prompt bug as shown in the below link, but I don't really know how to use it.
This is what I did and the bottom one is my original section of my javascript code, but I think I use it wrongly.
[code=javascript]<script type='text/javascript' src='IEprompt.j s'></script>
<script type='text/javascript'>
function promptCallback( "") {
alert("Enter the number of Lucky Dip Chances you want to buy.");
location='<?=te p_href_link(FIL ENAME_LUCKY_DIP , '', 'SSL')?>';
} else {
location="lucky dip.php?osCsid= <?=$_GET['osCsid']?>&action=purch ase&qty=" + number;
}
IEprompt("How many Lucky Dip Chances you want to buy?.", "");
</script>
[/code]
Original::
[code=javascript]<script>
function main() {
var input = prompt("How many Lucky Dip Chances you want to buy?.", "");
var number = input;
if(number == "") {
alert("Enter the number of Lucky Dip Chances you want to buy.");
location='<?=te p_href_link(FIL ENAME_LUCKY_DIP , '', 'SSL')?>';
} else {
location="lucky dip.php?osCsid= <?=$_GET['osCsid']?>&action=purch ase&qty=" + number;
}
}
</script>
[/code]
I just started learning javascript, so I'm sorry that I don't understand the terminology. Sorry about that. This is previously how I link to the front page, upon using yout script, can we retain the link: <a href="javascrip t:main()"> ?
Thank you so much!
Warmest Regards,
Gordon
Comment