Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old January 22nd, 2016, 01:33 PM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2016
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Get the value of a cell table when clicking on it

Hi!

I'm new here and in the web programing world.

I'm trying to do a CRUD application in PHP.

What I'm trying to do is this:

I read a database table and show the records in a table grid. I want to click in one of the records and call another page that allows me to modify the information.

I was able to make the ID cell clickable with JavaScript and call the other page.

I used the onclick event to call a function and that's the one that will call the new page. I need to get the cell value (it's the ID number of the record to be modified) in order to pass this as parameter to the new form.

What I can't find how to do is to get the value of the cell. I tried the getElementById method, but is not doing what I need.

Any ideas.

Everything is welcome!

Thanks in advance!
Bettina
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem getting cell value from table kirangentlebreeze1987 Javascript 1 August 29th, 2011 02:08 PM
layers in table cell dearmisskat HTML Code Clinic 12 March 10th, 2007 03:46 AM
reading from a table cell? Atomsk Access VBA 2 September 28th, 2006 07:46 AM
Hyperlink in a cell table amc Dreamweaver (all versions) 33 August 5th, 2004 12:11 PM



All times are GMT -4. The time now is 05:08 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.