SunQuest
 
           Programming Tools
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingProgramming Tools

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old May 23rd, 2003, 01:17 AM
jaylene83 jaylene83 is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 13 jaylene83 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Possible to name each cell in a table??

Hi

May i know is it possible to give a name to each cell in a table?? The table is drawn using Dreamweaver and the coding I'm using is ASP.......

This table is used as a calendar.........Tks alot!!

Reply With Quote
  #2  
Old May 23rd, 2003, 06:10 AM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 6 m 11 sec
Reputation Power: 8
Send a message via ICQ to stumpy Send a message via MSN to stumpy
If you want to be able to idnetify each cell individually, then assign it an ID.

<td ID="xxx">
__________________
DevArticles Moderator
BlueSix - Web Development and Consulting

Reply With Quote
  #3  
Old May 23rd, 2003, 11:18 PM
jaylene83 jaylene83 is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 13 jaylene83 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question

so how do i do comparison between diff table cells using ASP???

Last edited by jaylene83 : May 23rd, 2003 at 11:33 PM.

Reply With Quote
  #4  
Old May 24th, 2003, 02:10 AM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 6 m 11 sec
Reputation Power: 8
Send a message via ICQ to stumpy Send a message via MSN to stumpy
What are you trying to do?

ASP is a server-side language, and as such, to receive values from a page, they need to be in a housed in form elements (INPUT,SELECT, etc).

Reply With Quote
  #5  
Old May 24th, 2003, 03:09 AM
jaylene83 jaylene83 is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 13 jaylene83 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
i mean now i am able to assign a name to each cell, so if i want to do comparison, like using IF ELSE statement, is it possible??

if is possible using the IF ELSE statement, can u give me an example???

Reply With Quote
  #6  
Old May 24th, 2003, 03:21 AM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 6 m 11 sec
Reputation Power: 8
Send a message via ICQ to stumpy Send a message via MSN to stumpy
Sound like you're coming from a VB background. On the web, things work by posting values via a FORM to a server-side script.

You need to put the values into a form element (<input type="text" name="foo">), and post that form to your ASP script.

You then request the form item foo, like:
varFoo = request.form("foo")

Reply With Quote
  #7  
Old May 25th, 2003, 03:49 AM
jaylene83 jaylene83 is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 13 jaylene83 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
u don't get what i'm trying to say.......

normal IF ELSE is something like this right::

if(condition == true){

do something

}else{

do something
}


so if i want to compare between the diff cells, how do i do it??

i dont' think is compare in this way right?

if(td ID == "1"){

do something

}else{
do something
}

so wat is the way to do it, don't care abt wat prog language i'm using........

Reply With Quote
  #8  
Old May 25th, 2003, 09:29 AM
FrankieShakes FrankieShakes is offline
Frank The Tank!
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: Jun 2002
Location: Toronto, Canada
Posts: 1,246 FrankieShakes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via ICQ to FrankieShakes Send a message via MSN to FrankieShakes
jaylene,

What you would need to do is something like this (assuming the ID you gave to your cell is "monday"):

PHP Code:
if (monday == 1){
   
code...
} else {
   
code...



Hope that gives you an idea...
__________________
____________________________________________
Developer Shed Weekly Writer | DevArticles Forum Moderator
Build Your Own KlipFolio Klip With PHP
FrankManno.com - Under Construction
Design Interactive Group - Under Construction

Reply With Quote
  #9  
Old May 25th, 2003, 11:26 AM
nicat23's Avatar
nicat23 nicat23 is offline
Addicted to Chaos..
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jan 2003
Location: Ft. Worth, TX
Posts: 653 nicat23 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 47 m 52 sec
Reputation Power: 0
Send a message via AIM to nicat23 Send a message via Yahoo to nicat23
jaylene83 what I think stumpy is trying to find out is what exactly are you trying to do? From what I can gather it seems like you may be trying to use some java for client side changes, IE, like what yahoo users get when they highlight a message.. is this what you're using it for? What are you trying to do?

Reply With Quote
  #10  
Old May 25th, 2003, 06:44 PM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 6 m 11 sec
Reputation Power: 8
Send a message via ICQ to stumpy Send a message via MSN to stumpy
Quote:
Originally posted by nicat23
... From what I can gather it seems like you may be trying to use some java for client side changes, ...
Javascript!

Reply With Quote
  #11  
Old May 26th, 2003, 12:36 AM
jaylene83 jaylene83 is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 13 jaylene83 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
okie i'm trying to do a calendar using the tables that i've drawn....initially i duno how to give a variable name to each cell but now i do.........

however now i dun quite understand how to compare btw the diff cell, for example let say if today is Monday & i want a certain cell to change it's display value, how do i do it, which is to say how do i use IF ELSE statement to do it???


:::: FrankieShakes ::::

By doing that, will it know that monday refers to a table cell????


Tks!!

Reply With Quote
  #12  
Old May 26th, 2003, 07:24 AM
nicat23's Avatar
nicat23 nicat23 is offline
Addicted to Chaos..
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jan 2003
Location: Ft. Worth, TX
Posts: 653 nicat23 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 47 m 52 sec
Reputation Power: 0
Send a message via AIM to nicat23 Send a message via Yahoo to nicat23
Yea stumpy I knew they were talking about JS

And the easiest way IMHO would probably be to put the information you're trying to put into the calendar into a small database maybe... and read it through with a loop of some sort.. but that's just me

Reply With Quote
  #13  
Old May 26th, 2003, 11:26 AM
DeadManWalking DeadManWalking is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Shimonoseki
Posts: 12 DeadManWalking User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to DeadManWalking
umm...
Agreed with nicat. If you have to use ASP, best way is using database connection. You can do all comparison in your ASP code and insert it into your HTML code:
Code:
<TD ID="<%= variableFromDB %>" ></TD>

Reply With Quote
  #14  
Old June 8th, 2003, 02:28 PM
FrankieShakes FrankieShakes is offline
Frank The Tank!
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: Jun 2002
Location: Toronto, Canada
Posts: 1,246 FrankieShakes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via ICQ to FrankieShakes Send a message via MSN to FrankieShakes
Quote:
Originally posted by jaylene83
:::: FrankieShakes ::::

By doing that, will it know that monday refers to a table cell????


Tks!!


jaylene,

It would know... Because you're assigning that cell a specific name, you would be able to compare the value of that cell by using that name...

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingProgramming Tools > Possible to name each cell in a table??


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support |