rejetto forum

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - luca69

Pages: 1 2 3 4 ... 7
16
Italiano / Re: domanda su feature che non capisco
« on: April 30, 2009, 10:00:58 AM »
scusate, ho detto l'ultima beta, ma a causa di alcuni problemi ho deciso di non segnalare la 236 come ultima, ma è comunque disponibile sul forum "beta".
la mia soluzione funziona solo a partire dalla 236, non con la 235, con la quale si vedrebbe una pagina bianca appunto.


Confermo: con la 236 funziona  ;D

17
Italiano / Re: domanda su feature che non capisco
« on: April 30, 2009, 09:22:23 AM »
questa è la soluzione + semplice che mi viene in mente

tasto destro sulla cartella guest, proprietà, e poi in "diff template" metti questo
{.if|{.%folder% = /guest/.}|di qui non si passa|{:{.section||back=1.}:}.}


funziona solo con l'ultima 2.3 beta

Ho provato (la cosa interessa anche a me) ma ho il seguento risultato:
http://172.31.132.196/Guest/
 --> di qui non si passa
http://172.31.132.196/Guest/Pippo
--> pagina bianca  ???

PS: non ho definito nessun utente ma le cartelle sono aperte a tutti


Edit:
Lo stesso effetto li ottengo sia con il template di default sia che con il mio  :(

18
Italiano / Re: domanda su feature che non capisco
« on: April 28, 2009, 04:06:57 PM »
io ci ho riprovato....
non funziona. ???

1. Crea le tre cartelle Palla, Pinco e Pippo sul server
2. Su HFS vai sulla root "/" e clicca il tasto dx del mouse: dal menu seleziona "New Empty Folder" e chiamalo "Guest"
 --> Ora hai create una cartelle "virtuale"
3. Seleziona la cartella "Guest" e premi il tasto dx del mouse: dal menu seleziona "Add folder from disk"; seleziona la cartella "Pinco"
 --> Ora hai aggiunto la cartella fisica "Pinco" alla cartella virtuale Guest
4. ripeti (3) per le cartelle Pinco e Pippo
5. Seleziona la cartella Guest e premi il tasto dx del mouse: dal menu segli Properties...
6. Clicca sul tab "Flags" (il secondo) e deseleziona la propietá "Browsable"

Cosí ottieni ció che desideri: ora é possibile accedere a ../Guest/Palla .../Guest/Pinco e .../Guest/Pippo ma non alla cartella Guest  ;)

19
try fixing "from." in "form."
and move my code before the alert()

DAMMIT!!! YOU ARE RIGHT !!!

...I'm getting old  :(

PS: It is working also without moving the code before the alert()  ;)

20
Beta / Re: memory usage
« on: April 23, 2009, 02:46:02 PM »
Version 223 running on Windows 2000 since 51 days without any memory problem  ;D

But is not used that intensively  :(

21
you asked for a code to clean&focus, so how can you say it does not work because the password is changed.
it has nothing to do with it. it's like complaning because it does not wash your car :)

Maybe you got me wrong.

Let's summarize once again:

This is the current peace of code:

Code: [Select]
<form method=post action="/~userpasschange" onsubmit="return validatePassword(this);">
  <table>
  <tr><td align=left><b><font size="4"><font size="4">New Password</font></b></font></b><td><b><font size="4">: &nbsp;</font></b><span style="background-color: #000000"><input name=pass1 type=password style="font-size:10pt; font-weight:bold; border:1px solid #88f" size="20" ></span>
  <tr><td align=left><b><font size="4"><font size="4">Type Password again</font></b></font></b><td><b><font size="4">: &nbsp;</font></b><span style="background-color: #000000"><input name=pass2 type=password style="font-size:10pt; font-weight:bold; border:1px solid #88f" size="20" ></span>
  <tr><td align=left><font size="4">Click <a href="/">here</a> to return to HOME.</font><td align=center><input type=submit value="Change">
  </tr></table>
</form>

It uses a java script called "validatePassword" to check that pass1 and pass2 match:

Code: [Select]
<script type="text/javascript">
function validatePassword(form){
if (form.pass1.value != form.pass2.value){
alert("Password mismatch: please enter again.");
return false;
  }
 return true;
}
</script>

It works fine. If pass1 != pass2 then there is a message box and the user has to enter the new password again.

But first the user must "clean" the fields pass1 and pass2.

Here it comes your hint and I modified the java code:

Code: [Select]
<script type="text/javascript">
function validatePassword(form){
if (form.pass1.value != form.pass2.value){
alert("Password mismatch: please enter again.");
return false;
    from.pass1.value = "";
    from.pass2.value = "";
  form.pass1.focus();
  }
 return true;
}
</script>

Now the message box pops up but the password is ALWAYS changed, even if the pass1 !=  pass2 !

Is it clear now?

PS: Sorry for such a silly questions, but I'm not a java expert :(

22
you can do something like
form.pass1.value = "";
form.pass2.value = "";
form.pass1.focus();


It does not work :( If you put that peace of code, the password is ALWAYS changed (even if pass1 != pass2)

23
Thanks for the hint ... I'll try

24

Quote
What is still open is a peace of code that cleans the entered fields and set the focus on the first widget for the new password

when should such actions be taken?

Just in case the 2 passwords entered do not match ;)

25
Beta / Re: Testing build #231
« on: April 07, 2009, 10:02:27 AM »
The bug is reproducible as described by sequestrum:

Access violation at address 005644A4 in module 'hfs231.exe'. Read of address 0000002D
HFS 2.3 beta (231)

My laptop is running Windows 2000 SP4

But clicking on "close" button, HFS is not crashing but just working fine  ;D

26
I completely forgot that I already solved the problem with the following function:
Code: [Select]
<script type="text/javascript">
function validatePassword(form){
if (form.pass1.value != form.pass2.value){
alert("Password mismatch: please enter again.");
return false;
  }
 return true;
}
</script>

and in the form the code

Code: [Select]
<form method=post action="/~userpasschange" onsubmit="return validatePassword(this);">
  <table>
  <tr><td align=left><b><font size="4"><font size="4">New Password</font></b></font></b><td><b><font size="4">: &nbsp;</font></b><span style="background-color: #000000"><input name=pass1 type=password style="font-size:10pt; font-weight:bold; border:1px solid #88f" size="20" ></span>
  <tr><td align=left><b><font size="4"><font size="4">Type Password again</font></b></font></b><td><b><font size="4">: &nbsp;</font></b><span style="background-color: #000000"><input name=pass2 type=password style="font-size:10pt; font-weight:bold; border:1px solid #88f" size="20" ></span>
  <tr><td align=left><font size="4">Click <a href="/">here</a> to return to HOME.</font><td align=center><input type=submit value="Change">
  </tr></table>
</form>

What is still open is a peace of code that cleans the entered fields and set the focus on the first widget for the new password

27
Thanks for the hint: I'll try to use the java code  ;)


28
   
Yes, it probably possible, but in this present case, the new password is filled in the field in text mode (not *****) by the user.
It seems to me rather pointless to confirm twice what the user can visualize while writing.
   
And in addition the new password is displayed after it is created ... the user may copy it for archiving.  :)

But perhaps you used an imput type "password"?

Yes I used the type "password" so that the text entered by the user is not visible.
I searched for a simple peace of code to do the comparison between two text/password fields, but I google was not giving me a solution :(
Any hint?

29
Nice, but would it be possible to ask the user the new password twice and check for consistency?

30
HFS ~ HTTP File Server / Re: Virtual versus Real Folders
« on: March 06, 2009, 02:33:56 PM »

Pages: 1 2 3 4 ... 7