Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Didattica > Corsi A - F > Basi di dati ~ informatica triennale > [Progetto] "Blog" Thread Rating: 1 votes, 4.00 average.
Pages (33): « First ... « 5 6 7 8 [9] 10 11 12 13 » ... Last »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
Simeon
:D

User info:
Registered: Aug 2004
Posts: 984 (0.13 al dì)
Location: Milano
Corso: Informatica
Anno: IT IS OVER!
Time Online: 14 Days, 19:29:42 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by zonker
per impedire il campo di una submit fintanto che un campo è vuoto devi usera javascript.
Banalmente puoi mettere l'attributo disabled sul submit e con una funzione sulla modifica del campo obbligatorio usare la sintassi nomeform.nometastosubmit.disabled = true o false a seconda che il campo sia valorizzato o meno.
Javascript (o equivalente) è l'unica soluzione in quanto deve obbligatoriamente essere il browser ad occuparsi della cosa, in quel momento il server non sa più nulla della tua pagina.
Per l'annullamento, ma come per qualunque altro tipo di operazione, il form deve (o può se preferisci) avere come ACTION una pagina asp/php che con tutta una serie di IF o SELECT CASE si comporti e ridirezioni (RESPONSE.REDIRECT in asp) a pagine differenti a seconda dal risultato della verifica.


Javascript, era proprio quello che volevo evitarmi.

Grazie per le info :)

06-03-2007 13:10
Click Here to See the Profile for Simeon Click here to Send Simeon a Private Message Find more posts by Simeon Add Simeon to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
zonker
.illuminato.

User info:
Registered: Mar 2003
Posts: 200 (0.02 al dì)
Location:
Corso:
Anno:
Time Online: 2 Days, 6:24:53 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Se vuoi evitarti javascript e comunque tutta la programmazione lato client non puoi disattivare il tasto submit ma devi verificare che i campi obbligatori siano compilati nella pagina che hai come action e poi procedere con l'operazione nel caso siano tutti compliati o nel riproporre il modulo da completare magari riportando i campi già compilati.

06-03-2007 14:47
Click Here to See the Profile for zonker Click here to Send zonker a Private Message Find more posts by zonker Add zonker to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Striker
.precettore.

User info:
Registered: May 2002
Posts: 84 (0.01 al dì)
Location: Arese, Milano
Corso: Informatica...o almeno cosi' dicono...
Anno: N.P.
Time Online: 19:08:17 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Simeon
Javascript, era proprio quello che volevo evitarmi.

Grazie per le info :)



Puoi anche ridurre al minimo il codice in javascript, se ti sta cosi' antipatico.
Ad esempio (in asp) per controllare che siano stati inseriti user e password:

If Request.Form("Invia") <> "" Then
'Verifico che siano stati indicati i campi obbligatori
user = Request.Form("user")
pass = Request.Form("pass")
If user = "" OR pass = "" Then
%>
<script>
alert("ERRORE\nInserire user e password");
history.back();
</script>
<%
Response.End
End If

Invia e' un campo nascosto della form di login; user e pass sono i due campi omonimi :D
Cosi' facendo usi js solo per generare il warning (un alert) e per tornare alla form di login senza perdere eventuali dati gia' digitati.

__________________
Under Construction

06-03-2007 17:40
Click Here to See the Profile for Striker Click here to Send Striker a Private Message Visit Striker's homepage! Find more posts by Striker Add Striker to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
uvaci
.primate.

User info:
Registered: Jan 2003
Posts: 65 (0.01 al dì)
Location: Milano
Corso: Informatica
Anno: terzo
Time Online: 15:55:19 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

scusate ragazzi, che voi sappiate: nel file pdf con il calendario per la correzione dei progetti il rosso e il nero stanno a indicare la divisione tra gruppi? .. ho visto il mio nome in rosso e mi è venuto un colpo ...

06-03-2007 18:17
Click Here to See the Profile for uvaci Click here to Send uvaci a Private Message Find more posts by uvaci Add uvaci to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Simeon
:D

User info:
Registered: Aug 2004
Posts: 984 (0.13 al dì)
Location: Milano
Corso: Informatica
Anno: IT IS OVER!
Time Online: 14 Days, 19:29:42 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Striker


[cut]

Cosi' facendo usi js solo per generare il warning (un alert) e per tornare alla form di login senza perdere eventuali dati gia' digitati.


Grazie. Mi sembra strano che non ci sia una funzione equivalente all'alert in php pero'.

06-03-2007 18:38
Click Here to See the Profile for Simeon Click here to Send Simeon a Private Message Find more posts by Simeon Add Simeon to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
tandrea85
.precettore.

User info:
Registered: Sep 2004
Posts: 95 (0.01 al dì)
Location:
Corso: informatica
Anno: 1
Time Online: 18:21:48 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by uvaci
scusate ragazzi, che voi sappiate: nel file pdf con il calendario per la correzione dei progetti il rosso e il nero stanno a indicare la divisione tra gruppi? .. ho visto il mio nome in rosso e mi è venuto un colpo ...


è rosso anke il mio :shock: boh

06-03-2007 21:31
Click Here to See the Profile for tandrea85 Click here to Send tandrea85 a Private Message Find more posts by tandrea85 Add tandrea85 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
uvaci
.primate.

User info:
Registered: Jan 2003
Posts: 65 (0.01 al dì)
Location: Milano
Corso: Informatica
Anno: terzo
Time Online: 15:55:19 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

è la divisione in gruppi... :)

07-03-2007 07:18
Click Here to See the Profile for uvaci Click here to Send uvaci a Private Message Find more posts by uvaci Add uvaci to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
nothingman7
.amico.

User info:
Registered: Nov 2003
Posts: 38 (0.00 al dì)
Location: Milano
Corso: informatica
Anno: 2
Time Online: 1 Day, 1:57:27 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

scusate qualcuno sa dirmi come interpretare l'attributo formato nella tabella contenuto tenendo conto che i contenuti per me non sono dei veri e propri file(giusto?)
grazie
ciao

07-03-2007 11:00
Click Here to See the Profile for nothingman7 Click here to Send nothingman7 a Private Message Find more posts by nothingman7 Add nothingman7 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
zonker
.illuminato.

User info:
Registered: Mar 2003
Posts: 200 (0.02 al dì)
Location:
Corso:
Anno:
Time Online: 2 Days, 6:24:53 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

il formato del file: txt, doc, html ad esempio per i testi piuttosto che jpg, bmp, tiff per le immagini

07-03-2007 15:47
Click Here to See the Profile for zonker Click here to Send zonker a Private Message Find more posts by zonker Add zonker to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
nothingman7
.amico.

User info:
Registered: Nov 2003
Posts: 38 (0.00 al dì)
Location: Milano
Corso: informatica
Anno: 2
Time Online: 1 Day, 1:57:27 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ma io pensavo di visualizzare uno dopo l'altro i contenuti per esteso, come nei forum o nei blog. in questo caso il campo formato non avrebbe senso perchè sarebbero tutti dello stesso formato (soprattutto i testi, dato che si inseriscono in un form e vengono salvati come stringhe nel database)

devo quindi cambiare approccio e visualizzare l'elenco dei titoli dei contenuti e dare all'utente la possibilità di visualizzarli singolarmente cliccando sul titolo?

07-03-2007 16:44
Click Here to See the Profile for nothingman7 Click here to Send nothingman7 a Private Message Find more posts by nothingman7 Add nothingman7 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
zonker
.illuminato.

User info:
Registered: Mar 2003
Posts: 200 (0.02 al dì)
Location:
Corso:
Anno:
Time Online: 2 Days, 6:24:53 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Nelle specifiche è chiaramente scritto che i tutti i contenuti sono file, quindi credo non sia corretto che i testi vengano salvsati come stringhe nel database perchè così facendo violi le specifiche.

08-03-2007 10:00
Click Here to See the Profile for zonker Click here to Send zonker a Private Message Find more posts by zonker Add zonker to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Gehur
.grande:maestro.

User info:
Registered: Apr 2006
Posts: 519 (0.07 al dì)
Location: Milano
Corso: Informatica
Anno:
Time Online: 3 Days, 0:41:42 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

voi a che punto siete? io sono indietrissimo, mi sa che non mi basta il mese per finire

08-03-2007 15:23
Click Here to See the Profile for Gehur Click here to Send Gehur a Private Message Find more posts by Gehur Add Gehur to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
zonker
.illuminato.

User info:
Registered: Mar 2003
Posts: 200 (0.02 al dì)
Location:
Corso:
Anno:
Time Online: 2 Days, 6:24:53 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

praticamente finito, devo completare la documentazione.

08-03-2007 15:53
Click Here to See the Profile for zonker Click here to Send zonker a Private Message Find more posts by zonker Add zonker to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
nothingman7
.amico.

User info:
Registered: Nov 2003
Posts: 38 (0.00 al dì)
Location: Milano
Corso: informatica
Anno: 2
Time Online: 1 Day, 1:57:27 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by khelidan
per la questione file il prof ha detto che è una scelta individuale,si puo salvare i contenuti come file veri e propri oppure fare tutto sul db


Eppure khelidan dice che si può anche fare tutto sul db, infatti nelle specifiche c'è scritto che i contenuti "vanno intesi come file", non che "sono dei file".

Quindi ripeto le mie due domande:

1)nel caso in cui io decida di non usare veri e propri file come tratto l'attributo formato?

2)nel caso in cui io decida di usare i file, come visualizzo i contenuti nell'applicazione?

Scusate ma ho questo dubbio esistenziale e se non trovo una risposta entro breve impazzisco!!!

08-03-2007 18:57
Click Here to See the Profile for nothingman7 Click here to Send nothingman7 a Private Message Find more posts by nothingman7 Add nothingman7 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Simeon
:D

User info:
Registered: Aug 2004
Posts: 984 (0.13 al dì)
Location: Milano
Corso: Informatica
Anno: IT IS OVER!
Time Online: 14 Days, 19:29:42 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Ed ecco le solite due domande della settimana:

1)Nel testo del progetto si dice che gli argomenti di un profilo sono in ordine di importanza. Fin'ora ho trascurato questo particolare ma ora che devo implementare mi chiedo cosa significhi.

2)Non mi e' chiaro come potrei aggiungere argomenti ad un profilo o ad un contenuto. Sto facendo la versione da 3 punti, quindi (credo) gli argomenti sono un numero FISSO, pero' nonostante questo non penso sia il massimo fare una checkbox per ogni argomento ed inserirli cosi'. Cosa faccio, creo un profilo/contenuto senza argomenti e poi li aggiungo in un secondo tempo tramite inserimenti successivi? O mi sto solo complicando la vita e faccio 7 caselline per 7 argomenti (ad esempio)?

Confido nelle vostro aiuto, grazie :)

11-03-2007 16:11
Click Here to See the Profile for Simeon Click here to Send Simeon a Private Message Find more posts by Simeon Add Simeon to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 03:43.    Post New Thread    Post A Reply
Pages (33): « First ... « 5 6 7 8 [9] 10 11 12 13 » ... Last »   Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.083 seconds (71.22% PHP - 28.78% MySQL) con 24 query.