Click here to Skip to main content
15,889,027 members
Home / Discussions / JavaScript
   

JavaScript

 
AnswerRe: JQuery.ajax not working Pin
Ali Al Omairi(Abu AlHassan)30-Jan-12 21:48
professionalAli Al Omairi(Abu AlHassan)30-Jan-12 21:48 
GeneralRe: JQuery.ajax not working Pin
Not Active31-Jan-12 1:29
mentorNot Active31-Jan-12 1:29 
QuestionCalling a Shared function from the Client side Pin
Vimalsoft(Pty) Ltd28-Jan-12 3:59
professionalVimalsoft(Pty) Ltd28-Jan-12 3:59 
AnswerRe: Calling a Shared function from the Client side Pin
Ali Al Omairi(Abu AlHassan)29-Jan-12 23:59
professionalAli Al Omairi(Abu AlHassan)29-Jan-12 23:59 
GeneralRe: Calling a Shared function from the Client side Pin
Vimalsoft(Pty) Ltd30-Jan-12 19:09
professionalVimalsoft(Pty) Ltd30-Jan-12 19:09 
Questionchange address link Pin
Member 790448224-Jan-12 20:42
Member 790448224-Jan-12 20:42 
AnswerRe: change address link Pin
thatraja26-Jan-12 0:15
professionalthatraja26-Jan-12 0:15 
Questionretreive table cell data Pin
MacRaider424-Jan-12 3:26
MacRaider424-Jan-12 3:26 
Ok I'm trying to figure out how to loop through the values of my table cells (they all have a image in them). When I created the cells I named them with a id="A2" (for example).
the code I've been trying in testing looks like this:
JavaScript
savedSquares = document.getElementById('A2');
alert("a2 = " + savedSquares);
alert(document.getElementById("innerSquares").rows[0].cells.length);
//alert(document.images('a2').src);
address = document.getElementById("innerSquares").rows[0].cells[3].value;
alert("cell = " + address);

The results in order are
A2 = [object HTMLTableCellElement]
10 (this is correct)
cell = undefined

I've tried a bunch of other combos but this is what I currently have.

The images are also named the same so the image in "A2" is also named the same way:
<img src="images/o.jpg" border="0" height="100" width="100" name="A2" alt="Open">


Not sure if that will make it easier but I haven't been able to read those with my limited knowledge of JavaScript. The looping through part won't be a issue, I just need to figure out how to get the name of the image or even the alt text would be doable.

Thanks in advance!!
AnswerRe: retreive table cell data Pin
MacRaider424-Jan-12 3:50
MacRaider424-Jan-12 3:50 
AnswerRe: retreive table cell data Pin
Graham Breach24-Jan-12 6:56
Graham Breach24-Jan-12 6:56 
QuestionHow to browse folder or image Pin
sathyan_829419-Jan-12 5:04
sathyan_829419-Jan-12 5:04 
AnswerRe: How to browse folder or image Pin
R. Giskard Reventlov20-Jan-12 13:20
R. Giskard Reventlov20-Jan-12 13:20 
GeneralRe: How to browse folder or image Pin
koolkabin@live.com23-Jan-12 5:06
professionalkoolkabin@live.com23-Jan-12 5:06 
AnswerJquery pop question Pin
prathoven18-Jan-12 16:22
prathoven18-Jan-12 16:22 
AnswerRe: Jquery pop question Pin
R. Giskard Reventlov20-Jan-12 12:57
R. Giskard Reventlov20-Jan-12 12:57 
GeneralRe: Jquery pop question Pin
prathoven22-Jan-12 14:54
prathoven22-Jan-12 14:54 
GeneralRe: Jquery pop question Pin
ZurdoDev27-Jan-12 8:25
professionalZurdoDev27-Jan-12 8:25 
Questionconverting html into plaintext Pin
MalarGayu18-Jan-12 13:18
MalarGayu18-Jan-12 13:18 
AnswerRe: converting html into plaintext Pin
R. Giskard Reventlov20-Jan-12 12:58
R. Giskard Reventlov20-Jan-12 12:58 
AnswerRe: converting html into plaintext Pin
sovanM23-Jan-12 20:17
sovanM23-Jan-12 20:17 
QuestionRelated to pdf Pin
Gaurav Sharma from Bangalore, India18-Jan-12 2:56
Gaurav Sharma from Bangalore, India18-Jan-12 2:56 
AnswerRe: Related to pdf Pin
Richard MacCutchan18-Jan-12 6:27
mveRichard MacCutchan18-Jan-12 6:27 
GeneralRe: Related to pdf Pin
Gaurav Sharma from Bangalore, India18-Jan-12 19:03
Gaurav Sharma from Bangalore, India18-Jan-12 19:03 
GeneralRe: Related to pdf Pin
Richard MacCutchan18-Jan-12 21:31
mveRichard MacCutchan18-Jan-12 21:31 
GeneralRe: Related to pdf Pin
Mohibur Rashid7-Feb-12 19:52
professionalMohibur Rashid7-Feb-12 19:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.