Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] Page refresh only once - reg


  • From: flavio at economisa.com.br (Flavio Gomes)
  • Subject: [Javascript] Page refresh only once - reg
  • Date: Mon Oct 17 07:28:38 2005

  No, Anthony, he is refreshing the page on the *onload* event. Yes, 
that's a loop..

  Instead of using *reload()* couldnt you try to use 
*window.location.href=window.location.href+ '?reloaded=yes'*
  Then you check the queryString for the *reloaded* var before 
*reload()'ing.*


-- 
Flavio Gomes
flavio@xxxxxxxxxxxxxxxx


Anthony Ettinger wrote:

>>my code is...
>> 
>><script language=javascript>
>>function pagereload()
>>{
>>      window.location.reload();
>>}
>></script>
>>    
>>
>
>  
>
>>that function called in body onLoad event
>> 
>><body onLoad="pagereload()">
>> 
>>this function is working but it will do in loop.
>>    
>>
>
>window.location.pagereload(); <-- is this what you
>mean?
>
>
>If so, you're calling it recursively.
>
>All you need is to put this at the top of your js
>file:
>
>window.onload = init();
>
>function init()
>{
>   //initialize form
>}
>
>
>Anthony Ettinger
>ph: (408) 656-2473
>blog: http://www.chovy.com
>_______________________________________________
>Javascript mailing list
>Javascript@xxxxxxxxxx
>https://lists.LaTech.edu/mailman/listinfo/javascript
>  
>
-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: http://lists.LaTech.edu/pipermail/javascript/attachments/20051017/e6819831/attachment.html