Click here to Skip to main content
15,896,481 members
Home / Discussions / Web Development
   

Web Development

 
Generalcapturing Ctrl key Pin
Vladimir Kelman21-Apr-04 8:50
Vladimir Kelman21-Apr-04 8:50 
GeneralResize image after upload with asp or component Pin
AngelofPeace20-Apr-04 22:27
AngelofPeace20-Apr-04 22:27 
GeneralRe: Resize image after upload with asp or component Pin
Colin Angus Mackay21-Apr-04 1:18
Colin Angus Mackay21-Apr-04 1:18 
QuestionCan I get the value of newid() function of SQLserver2k from ASP Pin
_skidrow_vn_20-Apr-04 22:20
_skidrow_vn_20-Apr-04 22:20 
AnswerRe: Can I get the value of newid() function of SQLserver2k from ASP Pin
l a u r e n23-Apr-04 11:25
l a u r e n23-Apr-04 11:25 
Generalaccess to HTMLHelp via intranet Pin
Member 103671620-Apr-04 19:55
Member 103671620-Apr-04 19:55 
GeneralProblem with Isapifilter SendRawData (URGEND) Pin
Stephan Pilz20-Apr-04 2:48
Stephan Pilz20-Apr-04 2:48 
Generalproblem with image "onload"..Pls Help!!! Pin
jithus19-Apr-04 20:33
jithus19-Apr-04 20:33 
i am using the following code to check if my page was loaded normally or via the use of the browsers back button:


<HTML>
<head>
<SCRIPT LANGUAGE="JAVASCRIPT">
var x="1";
var isBack=false;

function handleBackButton(){

isBack = (x != document._mine._a1.value);
document._mine._a1.value=2;
document._mine._a1.defaultValue=2;

}

function isBackButtonUsed(){
//alert("from image load");
return isBack;
}


</SCRIPT>
</head>
<BODY ONLOAD="handleBackButton()">
<FORM NAME="_mine">
<INPUT NAME="_a1" VALUE="1" STYLE="visibility:hidden">


<H1>Back button testing</H1>


<img src="web.gif" onload="(isBackButtonUsed())?
alert('Back button was used'):alert('Page was loaded normally')"></img><br>

<a href="http:\\www.google.co.in">hi googles</a>

</FORM>

</BODY>
</HTML>

The "onload" of body tag works fine and sets the value of "isBack" to "true" when i navigate to google and back("using back button").But the value returned in "image load" is "false".
The strange thing if if i uncomment the line "alert("from image load");" in the function "isBackButtonUsed",the value "true" is correctly returned.
where's the problem??....Confused | :confused:

Thanks in advance for the help

regards
jithus

GeneralTable Troubles Pin
anonymous1219-Apr-04 17:54
anonymous1219-Apr-04 17:54 
GeneralRe: Table Troubles Pin
Yasen Georgiew20-Apr-04 22:14
Yasen Georgiew20-Apr-04 22:14 
GeneralTransparent background Pin
hkulten19-Apr-04 11:55
hkulten19-Apr-04 11:55 
GeneralASP programmer wants to learn PHP Pin
Hesham Amin17-Apr-04 0:59
Hesham Amin17-Apr-04 0:59 
GeneralRe: ASP programmer wants to learn PHP Pin
Roger Wright17-Apr-04 5:10
professionalRoger Wright17-Apr-04 5:10 
GeneralRe: ASP programmer wants to learn PHP Pin
Vladimir Kelman21-Apr-04 8:48
Vladimir Kelman21-Apr-04 8:48 
GeneralRe: ASP programmer wants to learn PHP Pin
hxxbin22-Apr-04 4:55
hxxbin22-Apr-04 4:55 
Questionhow to increase height upwards and width towards left Pin
nakey_yang15-Apr-04 17:36
nakey_yang15-Apr-04 17:36 
AnswerRe: how to increase height upwards and width towards left Pin
Colin Angus Mackay15-Apr-04 22:40
Colin Angus Mackay15-Apr-04 22:40 
GeneralMultiple Responses Pin
Anonymous15-Apr-04 4:50
Anonymous15-Apr-04 4:50 
GeneralFILE CHECKING Pin
Brendan Vogt15-Apr-04 0:46
Brendan Vogt15-Apr-04 0:46 
GeneralRe: FILE CHECKING Pin
markkuk15-Apr-04 4:38
markkuk15-Apr-04 4:38 
GeneralGetting OpenOffice to the web Pin
locktotten14-Apr-04 0:24
locktotten14-Apr-04 0:24 
GeneralCache not getting loaded Pin
Member 67053113-Apr-04 20:26
Member 67053113-Apr-04 20:26 
GeneralHelp me about validate form use javascript!!! Pin
cool_man13-Apr-04 15:45
cool_man13-Apr-04 15:45 
GeneralRe: Help me about validate form use javascript!!! Pin
Bee Master13-Apr-04 23:08
Bee Master13-Apr-04 23:08 
GeneralRe: Help me about validate form use javascript!!! Pin
cool_man14-Apr-04 22:33
cool_man14-Apr-04 22:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.