Re: [Linux-programlama] javascript köşeli parantez problemi

---------

New Message Reply About this list Date view Thread view Subject view Author view Attachment view

From: baser guvenc (baserguvenc@gmail.com)
Date: Thu 15 Feb 2007 - 12:16:13 EET


Yardımlarınız için teşekkürler.

2007/2/15, Nuri Akman <nuri.akman@hazine.gov.tr>:
>
> Merhaba,
>
> İki farklı yerden bu JS çağrılmakla beraber gördüğüm kadarıyla JS içinde
> özel bir kontrol almıyorsunuz. Yani aynı JS'yi kullanıyorsunuz. Bu durumda
> *onclick="mselected(this)"* yazmanızın çözüm olacağı konusunda ısrar
> ediyorum :)
>
> Sevgiler,
> Nuri AKMAN
>
> baser guvenc yazmış:
>
> Fakat 2 tane select ayrı ayrı işlem yapıyor fonksiyona seçilen multiple
> selectin adını göndermem lazım
>
> 2007/2/15, Nuri Akman <nuri.akman@hazine.gov.tr>:
> >
> > Merhaba,
> >
> > *onclick="mselected(this.form.doctype1[])" * yazan yere *
> > onclick="mselected(this)"* yazarsanız çözüm olacaktır diye düşünüyorum.
> >
> > Baþer GÜVENÇ yazmış:
> >
> > Merhaba,Php de değerleri okuttuğum için multiple select i "adi[]"
> > ÅŸeklinde yazmam gerekiyor fakat javascriptte hata veriyor.
> >
> > <html>
> > <head>
> > <title></title>
> > <script type="text/javascript">
> > <!--
> > var mselect = true;
> > function mselected(fld) {
> > if(fld.options.selectedIndex > -1) mselect = false;
> > for(i = 0; i < fld.options.length; i ++) {
> > fld.options[i].selected = false;
> > }
> > mselect = !mselect;
> > }
> > // -->
> > </script>
> > </head>
> > <body>
> > <div style="text-align:center">
> > <form id="form1" action="javascript://">
> > <select multiple name="doctype[]" onclick="mselected( this.form.doctype1
> > [])">
> > <option value="3">Article</option>
> > <option value="7">Miscellaneous</option>
> > <option value="37">Newsletter</option>
> > <option value="12">Publication</option>
> > </select>
> > <select multiple name="doctype1[]" onclick="mselected(this.form.doctype
> > [])">
> > <option value="3">Article</option>
> > <option value="7">Miscellaneous</option>
> > <option value="37">Newsletter</option>
> > <option value="12">Publication</option>
> > </select><br />
> > <input type="button" value="Select all" />
> > </form>
> > </div>
> > </body>
> > </html>
> >
> > ------------------------------
> > Looking for earth-friendly autos?
> > Browse Top Cars by "Green Rating"<http://autos.yahoo.com/green_center/;_ylc=X3oDMTE4MGw4Z2hlBF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDZ3JlZW5jZW50ZXI->at Yahoo! Autos' Green Center.
> >
> > ------------------------------
> >
> > _______________________________________________
> > Linux-programlama mailing listLinux-programlama@liste.linux.org.trhttp://liste.linux.org.tr/mailman/listinfo/linux-programlama
> >
> >
> >
> >
> > _______________________________________________
> > Linux-programlama mailing list
> > Linux-programlama@liste.linux.org.tr
> > http://liste.linux.org.tr/mailman/listinfo/linux-programlama
> >
> >
> ------------------------------
>
> _______________________________________________
> Linux-programlama mailing listLinux-programlama@liste.linux.org.trhttp://liste.linux.org.tr/mailman/listinfo/linux-programlama
>
>
>
> _______________________________________________
> Linux-programlama mailing list
> Linux-programlama@liste.linux.org.tr
> http://liste.linux.org.tr/mailman/listinfo/linux-programlama
>
>

_______________________________________________
Linux-programlama mailing list
Linux-programlama@liste.linux.org.tr
http://liste.linux.org.tr/mailman/listinfo/linux-programlama


New Message Reply About this list Date view Thread view Subject view Author view Attachment view

---------

Bu arsiv hypermail 2.1.2 tarafindan uretilmistir.