![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
Mike Scirocco wrote: Eric wrote: I've got a table (in a frame) like the sample below where the whole cell is click-able. This works well except I'd like the cells to show standard link behavior for the cell text, so if the cell link has been visited the cell text would be a diferent color etc. Any ideas on how to do this? Thanks Eric TABLE id="test" border='0' cellspacing='0' cellpadding='0' TR onmouseover="this.style.background='#0860a8';this. style.cursor='pointer'" onmouseout="this.style.background='';" onclick="parent.top.location='http://home_loc.com'" td>Home</td /TR TR onmouseover="this.style.background='#0860a8';this. style.cursor='pointer'" onmouseout="this.style.background='';" onclick="parent.Window.location='Travels/Travels.html'" td>Our Travels</td /TR /TABLE How about this approach: onclick="parent.document.location.href='http://home_loc.com'" onclick="parent.document.location.href='http://www.google.com'" !-- Travels/Travels.html -- Mike Well, thanks for answering but i think you missed the point. How is that going to fix my problem? Maybe I'm not explaining this well enough. I want the color of the text in between <td> and </td> to change just like if it was a link and not just plain text. ie: if you click on the cell to go to wherever the cell points to the text should change color to the same color as a visited link color would be. Eric |
#12
| |||
| |||
|
|
Eric said the following on 3/14/2006 4:18 PM: Wojtek Bok wrote: snip Keep a status variable for each link. Use onClick to go to a function which changes the state of the variable and changes the CSS for the link (thus changing its colour). Use Ajax to send the new state back to your server. Finally visit the link. When refreshing the page, use the state information to set the starting values for the variable and CSS. Ajax? never heard of it. In any case I wouldnt want to install some new enivronment just to solve a table cell problem. AJAX is Asynchronous Javascript and XML. And it is the *worst* way to get data to the server in a cross-browser environment. Sure, tell that to Google. |
#13
| |||
| |||
|
|
Randy Webb wrote: Eric said the following on 3/14/2006 4:18 PM: Wojtek Bok wrote: snip Keep a status variable for each link. Use onClick to go to a function which changes the state of the variable and changes the CSS for the link (thus changing its colour). Use Ajax to send the new state back to your server. Finally visit the link. When refreshing the page, use the state information to set the starting values for the variable and CSS. Ajax? never heard of it. In any case I wouldnt want to install some new enivronment just to solve a table cell problem. AJAX is Asynchronous Javascript and XML. And it is the *worst* way to get data to the server in a cross-browser environment. Sure, tell that to Google. |
|
And at any rate, you do not need to actually use XML. You can send anything back and forth. |
#14
| |||
| |||
|
|
Wojtek Bok said the following on 3/15/2006 11:04 AM: Randy Webb wrote: Eric said the following on 3/14/2006 4:18 PM: Wojtek Bok wrote: snip Keep a status variable for each link. Use onClick to go to a function which changes the state of the variable and changes the CSS for the link (thus changing its colour). Use Ajax to send the new state back to your server. Finally visit the link. When refreshing the page, use the state information to set the starting values for the variable and CSS. Ajax? never heard of it. In any case I wouldnt want to install some new enivronment just to solve a table cell problem. AJAX is Asynchronous Javascript and XML. And it is the *worst* way to get data to the server in a cross-browser environment. Sure, tell that to Google. And you think Google is cross-browser? |
|
The HTTPRequestObject, which AJAX is built on, is the the least reliable way to get data to the server when compared to other methods that are available. And especially other methods that are more widely supported. Such as? And don't say get and post because we are talking about "behind |
#15
| |||
| |||
|
|
Randy Webb wrote: Wojtek Bok said the following on 3/15/2006 11:04 AM: Randy Webb wrote: Eric said the following on 3/14/2006 4:18 PM: Wojtek Bok wrote: snip Keep a status variable for each link. Use onClick to go to a function which changes the state of the variable and changes the CSS for the link (thus changing its colour). Use Ajax to send the new state back to your server. Finally visit the link. When refreshing the page, use the state information to set the starting values for the variable and CSS. Ajax? never heard of it. In any case I wouldnt want to install some new enivronment just to solve a table cell problem. AJAX is Asynchronous Javascript and XML. And it is the *worst* way to get data to the server in a cross-browser environment. Sure, tell that to Google. And you think Google is cross-browser? Um, yes. At least the major players. |
|
I am sure someone somewhere has a version which does not work, but for the vast majority it works well. |
|
The HTTPRequestObject, which AJAX is built on, is the the least reliable way to get data to the server when compared to other methods that are available. And especially other methods that are more widely supported. Such as? And don't say get and post because we are talking about "behind the scenes" processing. |
#16
| |||
| |||
|
|
Wojtek Bok said the following on 3/16/2006 9:58 AM: Randy Webb wrote: Wojtek Bok said the following on 3/15/2006 11:04 AM: Randy Webb wrote: Eric said the following on 3/14/2006 4:18 PM: Wojtek Bok wrote: snip Keep a status variable for each link. Use onClick to go to a function which changes the state of the variable and changes the CSS for the link (thus changing its colour). Use Ajax to send the new state back to your server. Finally visit the link. When refreshing the page, use the state information to set the starting values for the variable and CSS. Ajax? never heard of it. In any case I wouldnt want to install some new enivronment just to solve a table cell problem. AJAX is Asynchronous Javascript and XML. And it is the *worst* way to get data to the server in a cross-browser environment. Sure, tell that to Google. And you think Google is cross-browser? Um, yes. At least the major players. It is far from cross-browser when it comes to the scripting code it uses in it's "AJAX" code. |
|
I am sure someone somewhere has a version which does not work, but for the vast majority it works well. Probably 90% of people on a MAC don't have support for the HTTPRequest Object. The HTTPRequestObject, which AJAX is built on, is the the least reliable way to get data to the server when compared to other methods that are available. And especially other methods that are more widely supported. Such as? And don't say get and post because we are talking about "behind the scenes" processing. Dynamically loading .js files. It is much more widely supported than the HTTPRequest object is. |
#17
| |||
| |||
|
|
Randy Webb wrote: Wojtek Bok said the following on 3/16/2006 9:58 AM: Randy Webb wrote: Wojtek Bok said the following on 3/15/2006 11:04 AM: Randy Webb wrote: Eric said the following on 3/14/2006 4:18 PM: Wojtek Bok wrote: snip Keep a status variable for each link. Use onClick to go to a function which changes the state of the variable and changes the CSS for the link (thus changing its colour). Use Ajax to send the new state back to your server. Finally visit the link. When refreshing the page, use the state information to set the starting values for the variable and CSS. Ajax? never heard of it. In any case I wouldnt want to install some new enivronment just to solve a table cell problem. AJAX is Asynchronous Javascript and XML. And it is the *worst* way to get data to the server in a cross-browser environment. Sure, tell that to Google. And you think Google is cross-browser? Um, yes. At least the major players. It is far from cross-browser when it comes to the scripting code it uses in it's "AJAX" code. This is silly. No one is using Netscape 1.0. And for where the object is not availabe, you fail gracefully and do not give that browser user the full functionality. With some friendly warning message suggesting an upgrade. |
|
I am sure someone somewhere has a version which does not work, but for the vast majority it works well. Probably 90% of people on a MAC don't have support for the HTTPRequest Object. The HTTPRequestObject, which AJAX is built on, is the the least reliable way to get data to the server when compared to other methods that are available. And especially other methods that are more widely supported. Such as? And don't say get and post because we are talking about "behind the scenes" processing. Dynamically loading .js files. It is much more widely supported than the HTTPRequest object is. What does dynamically fetching a .js file have ANYTHING to do with background client/server communication? |
![]() |
| Thread Tools | |
| Display Modes | |
| |