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. > Community > Tech > [javascript] help
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
CLod
JAILED

User info:
Registered: May 2002
Posts: 2688 (0.31 al dì)
Location: una delle 2 torri
Corso: Master ICT Sec
Anno: security
Time Online: 14 Days, 23:35:35 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
[javascript] help

ciao
avrei bisogno di fare una specie di questionario
solamente che non avendo a disposizione un webserver, mi occorre farlo senza
ho pensato a una pagina web con javascript, che in base alla scelta effettuata da un certo risultato
so poco o niente di JS
sapete darmi una mano?

potrei anche farlo con word o excel, ma pure lì sono una chiavica

__________________
Se il pugno e' chiuso la mano e' vuota. Solo se la mano e' aperta puoi possedere tutto

14-01-2005 10:59
Click Here to See the Profile for CLod Click Here to See the Blog of CLod Click here to Send CLod a Private Message Find more posts by CLod Add CLod to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
ripe
- up in the mountains -

User info:
Registered: Jun 2002
Posts: 9469 (1.10 al dì)
Location: Cinisellooo
Corso: TICO TICO
Anno: Primo
Time Online: 61 Days, 2:33:39 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Io posso darti una mano con javascript, è fattibile come cosa. Solo che devi essere un pò più preciso... :asd:

__________________
«And if you ever smell christian blood up in the mountains, then get your axe and chop them down!»

14-01-2005 11:30
Click Here to See the Profile for ripe Click Here to See the Blog of ripe Click here to Send ripe a Private Message Find more posts by ripe Add ripe to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
UZI
free pain dispenser

User info:
Registered: Mar 2003
Posts: 2211 (0.26 al dì)
Location: monza - troppi fighetti
Corso: com. dig.
Anno: Dottor Morte
Time Online: 14 Days, 4:46:06: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

beh, ci sono le textarea, le checklists, i radio buttons, i menù a scelta multipla... come deve essere strutturato il questionario?

__________________
those who test will find a bullet in they chest
put ta rest
by a brotha who was hopeless
grow up broke on tha rope of insanity
how many pistols smoking coming from a broken family

14-01-2005 11:56
Click Here to See the Profile for UZI Click Here to See the Blog of UZI Click here to Send UZI a Private Message Find more posts by UZI Add UZI to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
CLod
JAILED

User info:
Registered: May 2002
Posts: 2688 (0.31 al dì)
Location: una delle 2 torri
Corso: Master ICT Sec
Anno: security
Time Online: 14 Days, 23:35:35 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

con <select....><option value=.....>
non ricordo come si chiamano :?
ops

una volta selezionate tutte le risposte dovrebbe generarmi un testo con il risultato
una roba del genere

__________________
Se il pugno e' chiuso la mano e' vuota. Solo se la mano e' aperta puoi possedere tutto

14-01-2005 13:04
Click Here to See the Profile for CLod Click Here to See the Blog of CLod Click here to Send CLod a Private Message Find more posts by CLod Add CLod to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
ripe
- up in the mountains -

User info:
Registered: Jun 2002
Posts: 9469 (1.10 al dì)
Location: Cinisellooo
Corso: TICO TICO
Anno: Primo
Time Online: 61 Days, 2:33:39 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

uhm, sei sempre troppo vago, ma proviamo lo stesso.

Intendi le ComboBox, o DropDownList, anche detti "menu di selezione a tendina"? :D

Puoi mettere una funzione che scatta all'evento onChange associato ad ognuno dei controlli. Nella funzione controlli se tutte le caselline sono state compilate e in caso affermativo generi un report da inserire in un DIV o uno SPAN tramite la proprietà InnerHtml.

__________________
«And if you ever smell christian blood up in the mountains, then get your axe and chop them down!»

14-01-2005 13:43
Click Here to See the Profile for ripe Click Here to See the Blog of ripe Click here to Send ripe a Private Message Find more posts by ripe Add ripe to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
CLod
JAILED

User info:
Registered: May 2002
Posts: 2688 (0.31 al dì)
Location: una delle 2 torri
Corso: Master ICT Sec
Anno: security
Time Online: 14 Days, 23:35:35 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by ripe
uhm, sei sempre troppo vago, ma proviamo lo stesso.

Intendi le ComboBox, o DropDownList, anche detti "menu di selezione a tendina"? :D

Puoi mettere una funzione che scatta all'evento onChange associato ad ognuno dei controlli. Nella funzione controlli se tutte le caselline sono state compilate e in caso affermativo generi un report da inserire in un DIV o uno SPAN tramite la proprietà InnerHtml.



proprio questo :D

solo che non so da che parte cominciare
se mi date qualche link o qualche riga di codice da cui prendere spunto vi sarei grato

altrimenti fa nada
tanto non è per me :D

__________________
Se il pugno e' chiuso la mano e' vuota. Solo se la mano e' aperta puoi possedere tutto

14-01-2005 16:15
Click Here to See the Profile for CLod Click Here to See the Blog of CLod Click here to Send CLod a Private Message Find more posts by CLod Add CLod to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
ripe
- up in the mountains -

User info:
Registered: Jun 2002
Posts: 9469 (1.10 al dì)
Location: Cinisellooo
Corso: TICO TICO
Anno: Primo
Time Online: 61 Days, 2:33:39 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Beh, non saprei da dove fartele prendere quelle righe, quindi te le scrivo io! :D

Il senso è questo

<select id="Domanda1" onChange="controllaDomande()">
... opzioni ...
</select>

<select id="Domanda2" onChange="controllaDomande()">
... opzioni ...
</select>

<div id="Resoconto"></div>

Lascia un'opzione di default il cui valore potrebbe essere "nothing"...

<script language="Javascript">

var numeroDomande = 2;

function controllaDomande() {
var completo = true;

for(i=1; i < numeroDomande; i++) {
var select = document.getElementById("Domanda" + i);

if(select[select.selectedIndex].value == "nothing")
completo = false
}

if(completo)
stampaResoconto();
}

function stampaResoconto() {
var testo = "";

for(i=1; i < numeroDomande; i++) {
var select = document.getElementById("Domanda" + i);

testo += "Domanda " + i + ": " + select[select.selectedIndex].value + "<br />";

var resoconto = document.getElementById("Resoconto");
resoconto.innerHtml = testo;
}
}

</script>

Questa può andare! ;)

__________________
«And if you ever smell christian blood up in the mountains, then get your axe and chop them down!»

14-01-2005 17:33
Click Here to See the Profile for ripe Click Here to See the Blog of ripe Click here to Send ripe a Private Message Find more posts by ripe Add ripe to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
UZI
free pain dispenser

User info:
Registered: Mar 2003
Posts: 2211 (0.26 al dì)
Location: monza - troppi fighetti
Corso: com. dig.
Anno: Dottor Morte
Time Online: 14 Days, 4:46:06: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ma questo genera un resoconto realtime, vero? fico... cmq penso che al nostro amico serva anche il costrutto FORM coi vari submit e reset. non posto codice xchè sono arrugginito con la sintassi!!!

__________________
those who test will find a bullet in they chest
put ta rest
by a brotha who was hopeless
grow up broke on tha rope of insanity
how many pistols smoking coming from a broken family

14-01-2005 18:22
Click Here to See the Profile for UZI Click Here to See the Blog of UZI Click here to Send UZI a Private Message Find more posts by UZI Add UZI to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
ripe
- up in the mountains -

User info:
Registered: Jun 2002
Posts: 9469 (1.10 al dì)
Location: Cinisellooo
Corso: TICO TICO
Anno: Primo
Time Online: 61 Days, 2:33:39 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Beh, spero che il form lo sappia scrivere da solo! :asd:

__________________
«And if you ever smell christian blood up in the mountains, then get your axe and chop them down!»

14-01-2005 18:58
Click Here to See the Profile for ripe Click Here to See the Blog of ripe Click here to Send ripe a Private Message Find more posts by ripe Add ripe to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
0m4r
.grande:maestro.

User info:
Registered: Mar 2002
Posts: 7287 (0.84 al dì)
Location: Düsseldorf (DE)
Corso:
Anno: ESAMI FINITI
Time Online: 49 Days, 0:57:33 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

JS è una soluzione, ma poi come e dove memorizzi i risultati del test?

__________________
http://www.twitter.com/0m4r

16-01-2005 12:39
Click Here to See the Profile for 0m4r Click Here to See the Blog of 0m4r Click here to Send 0m4r a Private Message Find more posts by 0m4r Add 0m4r to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
CLod
JAILED

User info:
Registered: May 2002
Posts: 2688 (0.31 al dì)
Location: una delle 2 torri
Corso: Master ICT Sec
Anno: security
Time Online: 14 Days, 23:35:35 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

non devo memorizzarli
una volta ottenuto il risultato lo stampano
non serve altro
grazie mille
proverò!

__________________
Se il pugno e' chiuso la mano e' vuota. Solo se la mano e' aperta puoi possedere tutto

17-01-2005 11:26
Click Here to See the Profile for CLod Click Here to See the Blog of CLod Click here to Send CLod a Private Message Find more posts by CLod Add CLod to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 07:42.    Post New Thread    Post A Reply
  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.080 seconds (54.77% PHP - 45.23% MySQL) con 25 query.