This is a discussion on "Doh!" within the JavaScript Forum section. This forum, and the thread "Doh! are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Doh!
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
||||
|
Doh!
Ok so I got things a working, DB connectivity, generating the bingo cards by number of entries in the databse etc... One question.. How would one select the middle cell or in this case after generation 4th from top (Due to Bingo heading), 3rd from left and bottom after the table is drawn? I have been googling away for this and nothing so far. Everything is working perfectly as it should but I need to change the content of this middle cell to "Free + an employee ID" from the database which in itself is simple, its selecting the cell to do it. and then simply doing a foo.innerText = "blah"..
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
|
|
|||
|
Re: Doh!
If it's always going to be the same cell, why don't you just check where you are in the loop generation process and add the necessary. In pseudo form: if outer loop = 4 and inner loop = 3 add ID. |
|
||||
|
Re: Doh!
I thought about something like that but I wasn't quite sure of the best method or approach. That makes complete sense! I dislike using launguages I really don't know, but then again ya learn. Ok I am going to fiddle around and see if I can't get that working.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Last edited by moojoo; Aug 23rd, 2006 at 20:33. |
|
||||
|
Re: Doh!
So say I have:
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
|||
|
Re: Doh!
Looks good to me;-) |
|
||||
|
Re: Doh!
Bleh, so this is whats happening heh:
Edit: I did some searching and now I am just getting an Object Expected Error. Apparently this is some issue with IE's js handling.. I am mixing VB and JS but not together. Well except for JS outputting a vbscript db result.. Shoot.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Last edited by moojoo; Aug 24th, 2006 at 16:09. |
|
|||
|
Re: Doh!
Been away so only just got back to looking at your post. You may have fixed it by now but...
|
|
||||
|
Re: Doh!
Got it.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Last edited by moojoo; Aug 30th, 2006 at 17:28. |
![]() |
| Tags |
| doh |
| Thread Tools | |
|
|