Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - checkbox singel works but
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

checkbox singel works but

 Post Reply Post Reply
Author
aero View Drop Down
Groupie
Groupie
Avatar

Joined: 21 May 2003
Location: Denmark
Status: Offline
Points: 80
Post Options Post Options   Thanks (0) Thanks(0)   Quote aero Quote  Post ReplyReply Direct Link To This Post Topic: checkbox singel works but
    Posted: 21 July 2003 at 5:25pm

Hi. i have this code:

Set objRS = objConn.Execute("SELECT * FROM Aero ORDER BY ID")

If (Not objRS.BOF) And (Not objRS.EOF) Then
  objRS.MoveFirst
 Dim intCounter
 intCounter = 0
  While Not objRS.EOF
 intCounter = intCounter + 1
 
 strgodkend = objRS("Godkendt")
 If strgodkend = "True" then
    strgodkend = "checked"
 end if
 BrugerID = objRS("ID")
%>
   <form action="Godkend.asp" method="Post" name="godkend<%=intcounter%>">
   <%=BrugerID%>&nbsp;&nbsp;&nbsp;<%=objRS("Navn")%>&nbsp;&nbsp;&nbsp;&nbsp;
     
             <input type="hidden" value="<%=objRS("ID")%>" name="ID">
             <input type="checkbox" value="<%=objrs("ID")%>" name="check"  onclick="godkend<%=intcounter%>.submit();" <%=strgodkend%>>
         
      </form>
<%

on this site i can select or deselect some records from a db and it works !!!

my problem is to make a checkbox field before the first record, and if i klik ind this checkbox i can select or deselect all at one klik !!!!

Can someone make that little function in my code so i can select or deselect all at one klik or select the records i want like i can now !??

 

Back to Top
Flamewave View Drop Down
Senior Member
Senior Member
Avatar

Joined: 19 June 2002
Location: United States
Status: Offline
Points: 376
Post Options Post Options   Thanks (0) Thanks(0)   Quote Flamewave Quote  Post ReplyReply Direct Link To This Post Posted: 23 July 2003 at 10:54am

Do you really need a seperate form for each recordset? If not it would be much easier to write a function to do what you want. The function will have to be written in javascript, since what you want to do is client side and not server side. Check on www.irt.org under the javascript faq for possible solutions.

- Flamewave

They say the grass is greener on the other side, but if you really think about it, the grass is greener on both sides.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.