Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
Checkbox - firefox?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Client-side
View previous topic :: View next topic  
Author Message
dabac



Joined: 30 May 2006
Posts: 57

PostPosted: 30.09.2006 14:46    Post subject: Checkbox - firefox? Add user to your forum ignore list Reply with quote

U formi fqlogin postoji checkbox zapamtime.

Postoji link kojim se ukljucuje i iskljucuje checkbox:
Code:

<a href="javascript:zapamtime()">...</a>

function zapamtime() {
 if (document.fqlogin.zapamtime.checked) {
   alert('je');
   document.fqlogin.zapamtime.checked=false;
 } else {
   alert('nije');
   document.fqlogin.zapamtime.checked=true;
 }
}


Ovo radi u IE i Operi.
Alerte sam stavio kako bih malo zaustavio Firefox: on doista promijeni stanje checkboxa, a odmah nakon toga ga vrati u prijasnje stanje...

Moze li mi netko pomoci da to ispravim - odnosno neku funkciju koja ce raditi u sva tri browsera?
Back to top
View user's profile Send private message
Sulien



Joined: 04 Jan 2004
Posts: 2905
Location: Zagreb

PostPosted: 30.09.2006 16:16    Post subject: Add user to your forum ignore list Reply with quote

Ja ću ti pomoći... izbriši link, izbriši javascript Smile

Uz checkbox asociraj LABEL "zapamti me" i kad netko stisne checkbox ili tekst labela, checkbox će promijeniti stanje

Nemoj izmišljati toplu vodu Wink
Back to top
View user's profile Send private message Send e-mail Visit poster's website
dabac



Joined: 30 May 2006
Posts: 57

PostPosted: 30.09.2006 16:30    Post subject: Add user to your forum ignore list Reply with quote

Pa vec sam i imao label (moja greska, nisam postao taj dio koda):

<label style="font-size: 9px">
<input name="zapamtime" type="checkbox" id="zapamtime" value="1">
<a href="javascript:zapamtime()" class="neunder">Zapamti me</a>
</label>
Back to top
View user's profile Send private message
dabac



Joined: 30 May 2006
Posts: 57

PostPosted: 30.09.2006 16:54    Post subject: Add user to your forum ignore list Reply with quote

Sulien wrote:
Ja ću ti pomoći... izbriši link, izbriši javascript Smile

Uz checkbox asociraj LABEL "zapamti me" i kad netko stisne checkbox ili tekst labela, checkbox će promijeniti stanje

Nemoj izmišljati toplu vodu Wink


Probao sam sa
Code:

<label>
<input name="zapamtime" type="checkbox" id="zapamtime" value="1">
zapamti me</label>


a sad radi u FF, ali ne radi u IE; meni je bitnije da radi u IE pa sam izbacio label i sad radi u sva 3 browsera:

Code:

<input name="zapamtime" type="checkbox" id="zapamtime" value="1">
<a href="javascript:zapamtime()" class="neunder">Zapamti me</a>


Ne znam koji ce mi ***** taj label ako ne radi u IE...
Back to top
View user's profile Send private message
sinke



Joined: 02 Oct 2005
Posts: 257
Location: Zagreb

PostPosted: 30.09.2006 18:03    Post subject: Add user to your forum ignore list Reply with quote

Code:
<label for="zapamtime">zapamti me</label>
<input name="zapamtime" type="checkbox" id="zapamtime">

_________________
THE SHTANZIG | Web Do's & Don'ts
Back to top
View user's profile Send private message Visit poster's website Twitter profile
nel`chee



Joined: 08 Jul 2004
Posts: 2087
Location: Rijeka

PostPosted: 30.09.2006 18:11    Post subject: Add user to your forum ignore list Reply with quote

Code:
<label>
<input name="zapamtime" type="checkbox" id="zapamtime" />
Zapamti me
</label>

ili
Code:
<input name="zapamtime" type="checkbox" id="zapamtime" />
<label for="zapamtime">Zapamti me</label>

zatvarajte inpute Rolling Eyes

_________________
art & design portfoliofree Photoshop brushes stuffsketchblogfacebook
Back to top
View user's profile Send private message Visit poster's website Twitter profile
sinke



Joined: 02 Oct 2005
Posts: 257
Location: Zagreb

PostPosted: 30.09.2006 20:09    Post subject: Add user to your forum ignore list Reply with quote

nel`chee wrote:
zatvarajte inpute Rolling Eyes

?

_________________
THE SHTANZIG | Web Do's & Don'ts
Back to top
View user's profile Send private message Visit poster's website Twitter profile
nel`chee



Joined: 08 Jul 2004
Posts: 2087
Location: Rijeka

PostPosted: 30.09.2006 20:26    Post subject: Add user to your forum ignore list Reply with quote

sto nije jasno?

_________________
art & design portfoliofree Photoshop brushes stuffsketchblogfacebook
Back to top
View user's profile Send private message Visit poster's website Twitter profile
sinke



Joined: 02 Oct 2005
Posts: 257
Location: Zagreb

PostPosted: 30.09.2006 20:40    Post subject: Add user to your forum ignore list Reply with quote

Što si mislila pod tim: Zatvarajte inpute? Wink

_________________
THE SHTANZIG | Web Do's & Don'ts
Back to top
View user's profile Send private message Visit poster's website Twitter profile
red



Joined: 03 May 2004
Posts: 919
Location: Zabok

PostPosted: 30.09.2006 21:09    Post subject: Add user to your forum ignore list Reply with quote

Mislla je da se jednostruki tagovi u XHTML-u zatvaraju forward slashem.

_________________
Get busy living, or get busy dying.
Back to top
View user's profile Send private message Visit poster's website Twitter profile
sinke



Joined: 02 Oct 2005
Posts: 257
Location: Zagreb

PostPosted: 30.09.2006 21:39    Post subject: Add user to your forum ignore list Reply with quote

A negdje smo vidjeli koji doctype koristi?

_________________
THE SHTANZIG | Web Do's & Don'ts
Back to top
View user's profile Send private message Visit poster's website Twitter profile
nel`chee



Joined: 08 Jul 2004
Posts: 2087
Location: Rijeka

PostPosted: 30.09.2006 21:57    Post subject: Add user to your forum ignore list Reply with quote

zatvoreni tag je prihvatljiv i u HTML-u i XHTML-u, a nezatvoreni nije u XHTML-u.
moj remark nije trebao potegnuti nikakvu raspravu, zatvaranje tagova je jednostavno nesto sto se radi.

_________________
art & design portfoliofree Photoshop brushes stuffsketchblogfacebook
Back to top
View user's profile Send private message Visit poster's website Twitter profile
maratz
mi3.crew


Joined: 24 Nov 2003
Posts: 1207
Location: ZAG

PostPosted: 01.10.2006 23:44    Post subject: Add user to your forum ignore list Reply with quote

nel`chee wrote:
moj remark nije trebao potegnuti nikakvu raspravu, zatvaranje tagova je jednostavno nesto sto se radi.

You go, girl!!1

_________________
STOP HITTING YOURSELF! | NETIQUETTE | TYPETESTER | Hypertext rulez™ | CREATIVE NIGHTS | ACCOMMODATIONS
Back to top
View user's profile Send private message Visit poster's website Twitter profile
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Client-side All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group