Click here to Skip to main content
15,892,222 members
Home / Discussions / JavaScript
   

JavaScript

 
GeneralRe: how do save div to html file Pin
Richard MacCutchan7-Jul-11 4:32
mveRichard MacCutchan7-Jul-11 4:32 
GeneralRe: how do save div to html file Pin
apadana_19898-Jul-11 20:22
apadana_19898-Jul-11 20:22 
GeneralRe: how do save div to html file Pin
Richard MacCutchan8-Jul-11 23:20
mveRichard MacCutchan8-Jul-11 23:20 
QuestionDiv Create dynamic and click Pin
anishkannan5-Jul-11 1:48
anishkannan5-Jul-11 1:48 
AnswerRe: Div Create dynamic and click [modified] Pin
Manfred Rudolf Bihy6-Jul-11 2:20
professionalManfred Rudolf Bihy6-Jul-11 2:20 
QuestionI don't know why css name is initialization. Pin
buffering833-Jul-11 17:30
buffering833-Jul-11 17:30 
AnswerRe: I don't know why css name is initialization. Pin
Gerben Jongerius3-Jul-11 22:00
Gerben Jongerius3-Jul-11 22:00 
QuestionCapturing the ID of an Element Pin
ASPnoob29-Jun-11 5:10
ASPnoob29-Jun-11 5:10 
Hi All,
I am new to javascript and would like some help on a function to capture the ID of an element when the mouse is clicked. The element could be an image or what ever with an ID. I did some search online but I don't quite understand the code I saw so I'm going to attempt to write the code the way I think it should work. Basically I want to assign the ID of an element that has been selected using the mouse to a variable called Selected_Item. I would then swap out the value of Selected_item when a new item is selected. The following is what I have but I still don't know what I should put in the parenthesis so I placed a set of dashes in it for the time being. Please take a look at my code below, any help will be much appreciated, thanks in advance.

function CaptureID()
{ var Old_Item = '';
var Selected_Item = '';
if (Selected_Item = null)
{ Selected_Item = document.getElementById('-------');}
else
{
var Old_Item = Selected_Item;
var Selected_Item = document.getElementById('-------');
}
document.write("You have selected +'Selected_Item'");
}
AnswerRe: Capturing the ID of an Element Pin
Not Active29-Jun-11 5:44
mentorNot Active29-Jun-11 5:44 
GeneralRe: Capturing the ID of an Element Pin
ASPnoob29-Jun-11 6:38
ASPnoob29-Jun-11 6:38 
GeneralRe: Capturing the ID of an Element Pin
Not Active29-Jun-11 6:54
mentorNot Active29-Jun-11 6:54 
AnswerRe: Capturing the ID of an Element Pin
twseitex29-Jun-11 9:05
twseitex29-Jun-11 9:05 
AnswerRe: Capturing the ID of an Element Pin
AspDotNetDev29-Jun-11 10:17
protectorAspDotNetDev29-Jun-11 10:17 
QuestionAndroid App Windows (NTLM) Authentication Pin
Colin Mullikin22-Jun-11 3:08
professionalColin Mullikin22-Jun-11 3:08 
GeneralRe: Android App Windows (NTLM) Authentication Pin
Colin Mullikin22-Jun-11 5:22
professionalColin Mullikin22-Jun-11 5:22 
Questiondocument.ready() and window.load() events don't fire Pin
benams21-Jun-11 4:41
benams21-Jun-11 4:41 
AnswerRe: document.ready() and window.load() events don't fire Pin
Not Active21-Jun-11 7:36
mentorNot Active21-Jun-11 7:36 
AnswerRe: document.ready() and window.load() events don't fire Pin
DaveAuld21-Jun-11 7:49
professionalDaveAuld21-Jun-11 7:49 
AnswerRe: document.ready() and window.load() events don't fire Pin
DaveAuld21-Jun-11 8:00
professionalDaveAuld21-Jun-11 8:00 
GeneralRe: document.ready() and window.load() events don't fire Pin
benams21-Jun-11 11:35
benams21-Jun-11 11:35 
AnswerRe: document.ready() and window.load() events don't fire [modified] Pin
Monjurul Habib21-Jun-11 12:12
professionalMonjurul Habib21-Jun-11 12:12 
AnswerRe: document.ready() and window.load() events don't fire PinPopular
AspDotNetDev21-Jun-11 15:56
protectorAspDotNetDev21-Jun-11 15:56 
GeneralRe: document.ready() and window.load() events don't fire Pin
vbmike22-Jun-11 9:48
vbmike22-Jun-11 9:48 
AnswerRe: document.ready() and window.load() events don't fire Pin
AspDotNetDev22-Jun-11 9:57
protectorAspDotNetDev22-Jun-11 9:57 
GeneralRe: document.ready() and window.load() events don't fire Pin
vbmike22-Jun-11 12:02
vbmike22-Jun-11 12:02 

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.