Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
|
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 24th, 2007, 04:57 AM
Authorized User
 
Join Date: Apr 2007
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default deleting records based on selected checkbox

hi.
I'm trying to allow the user to search through records and using a checkbox, allow the user to select one or multiple records, then click a button and delete all that were selected. How to do this.? i have more than 2 button is my page.. i am not getting how to access checkbox value in other page.....

 
Old September 3rd, 2007, 09:11 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 553
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to vinod_yadav1919 Send a message via Yahoo to vinod_yadav1919
Default

Hi lakshmi!!
you are using asp/php/jsp which type of language u r using?
there r form collection through which u can easily get the values of checkbox


Cheers :)

vinod
 
Old September 5th, 2007, 06:44 PM
Friend of Wrox
 
Join Date: Jun 2007
Posts: 477
Thanks: 10
Thanked 19 Times in 18 Posts
Default

^^^^^ what vinod said.

You should post this on the board related to the server side technology you're using. Javascript can only handle client side logic. When your visitor types in your website, your server sends them back the HTML for the browser to display. Javascript makes everything move or change or otherwise react that requires programming on your page without contacting the server.

Deleting items from the database all happens on the server end. Once someone checks the different boxes to delete records, they click the button and that triggers a postback event which "posts" the form data back to the server. It's the server side scripting that responds to that information and deletes the database records. So the ASP/PHP or whatever boards would be the place to post depending on what server side technology you're using.

-------------------------

Whatever you can do or dream you can, begin it. Boldness has genius, power and magic in it. Begin it now.
-Johann von Goethe

When Two Hearts Race... Both Win.
-Dove Chocolate Wrapper

Chroniclemaster1, Founder of www.EarthChronicle.com
A Growing History of our Planet, by our Planet, for our Planet.
 
Old September 6th, 2007, 02:22 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Let's try getting the terminology correct, there are far too many mistakes caused by people not understanding the boundary between server-side and client-side.
Client-side <> JavaScript, it usually is though.
Server-side maybe JavaScript along with most other languages, .NET, PHP, Java/JSP, VBScript etc.
Server-side operations cannot be carried out by client-side script; these operations maybe initiated by them though.

--

Joe (Microsoft MVP - XML)





Similar Threads
Thread Thread Starter Forum Replies Last Post
using js to pass selected checkbox values yasinirshad .NET Framework 1.x 0 June 3rd, 2008 02:42 AM
Deleting Duplicate Records BrianWren Pro VB Databases 1 February 22nd, 2008 01:30 PM
Deleting selected row in ListBox YoungFools Excel VBA 1 April 19th, 2007 09:14 AM
Pupulating datagrid based on selected items swati_joshi ASP.NET 1.0 and 1.1 Basics 1 March 27th, 2006 04:22 PM
Page display based on radio button selected Mekala HTML Code Clinic 3 July 10th, 2004 06:12 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.