|
|
|||||||||
|
|||||||||
|
|||||||||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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!! |
|
#2
|
||||
|
||||
|
If you want to be able to idnetify each cell individually, then assign it an ID.
<td ID="xxx"> |
|
#3
|
|||
|
|||
|
so how do i do comparison between diff table cells using ASP???
Last edited by jaylene83 : May 23rd, 2003 at 11:33 PM. |
|
#4
|
||||
|
||||
|
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). |
|
#5
|
|||
|
|||
|
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??? |
|
#6
|
||||
|
||||
|
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") |
|
#7
|
|||
|
|||
|
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........ |
|
#8
|
|||
|
|||
|
jaylene,
What you would need to do is something like this (assuming the ID you gave to your cell is "monday"): PHP 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 |
|
#9
|
||||
|
||||
|
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?
![]() |
|
#10
|
||||
|
||||
|
Quote:
|
|
#11
|
|||
|
|||
|
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!! |
|
#12
|
||||
|
||||
|
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 ![]() |
|
#13
|
|||
|
|||
|
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> |
|
#14
|
|||
|
|||
|
Quote:
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... |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Programming Tools > Possible to name each cell in a table?? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|