Click here to Skip to main content
15,897,187 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: Database connection Pin
Navneet Hegde29-May-07 1:09
Navneet Hegde29-May-07 1:09 
QuestionTool tip for HTML TableCell Pin
Rajesh Thomas28-May-07 21:06
Rajesh Thomas28-May-07 21:06 
Questionwebservics simultaneos calling prob Pin
khalidahmad28-May-07 19:34
khalidahmad28-May-07 19:34 
GeneralRe: webservics simultaneos calling prob Pin
khalidahmad29-May-07 0:00
khalidahmad29-May-07 0:00 
Questiondataset serialization problem in .net 2.0 Pin
khalidahmad28-May-07 19:23
khalidahmad28-May-07 19:23 
Question"onClick" Event in AJAX Control auto runs "mouseOut" Event Pin
devil8528-May-07 5:43
devil8528-May-07 5:43 
AnswerRe: "onClick" Event in AJAX Control auto runs "mouseOut" Event Pin
JimmyRopes28-May-07 6:14
professionalJimmyRopes28-May-07 6:14 
GeneralRe: "onClick" Event in AJAX Control auto runs "mouseOut" Event Pin
devil8528-May-07 8:14
devil8528-May-07 8:14 
Hi there Jimmy

Thanks for the reply. Below you can see my code. Basically the first function runs on a click event. However the problem is that on the click event the mouseOut also runs, which is attatched to the second function. I atempted to put a if statement in the second function which would pick up that the image was clicked and not mouseOvered due to the differing image src paths, however it merely seems to pass straight over this. I tested with alerts prior to your reply, and it returned the clicked event followed by the mouseOut event even though i didnt mouseOut. The strange this is, i told the alert to return to me the current image path, and even though the first function changed the image path, the second functions if statement merely ignored this fact and still ran the first if statement, thus switching the image back. Any suggestions?

Thanks Dev



function setImageClicked ()
{
var arg = document[setImageClicked.arguments[0]]

if (arg = 'TrackingSystemLink')
{
document['TrackingSystemLink'].src = '../Images/onClick/SideMenuReportingSystemOn.png';
alert(document['TrackingSystemLink'].src);
}
}

function checkIfImageClicked ()
{
if (document['TrackingSystemLink'].src = '../Images/SideMenuTrackingSystemOn.png')
{
alert(document['TrackingSystemLink'].src);
swap('TrackingSystemLink','TrackingSystem');
alert(document['TrackingSystemLink'].src);
}
else if (document['TrackingSystemLink'].src
= '/Images/onClick/SideMenuTrackingSystemOn.png')
{
alert('test');
}
}
GeneralRe: "onClick" Event in AJAX Control auto runs "mouseOut" Event Pin
Christian Graus28-May-07 12:51
protectorChristian Graus28-May-07 12:51 
GeneralRe: "onClick" Event in AJAX Control auto runs "mouseOut" Event Pin
JimmyRopes28-May-07 20:59
professionalJimmyRopes28-May-07 20:59 
QuestionRe: "onClick" Event in AJAX Control auto runs "mouseOut" Event Pin
devil8529-May-07 0:45
devil8529-May-07 0:45 
AnswerRe: "onClick" Event in AJAX Control auto runs "mouseOut" Event Pin
JimmyRopes29-May-07 6:03
professionalJimmyRopes29-May-07 6:03 
QuestionString Parameter From .Net Application to .Net ASP Web Service Pin
Ram_Goldman28-May-07 4:35
Ram_Goldman28-May-07 4:35 
AnswerRe: String Parameter From .Net Application to .Net ASP Web Service Pin
Christian Graus28-May-07 12:56
protectorChristian Graus28-May-07 12:56 
QuestionaspSmartUpload error '800a0009' Pin
Anurag Gandhi28-May-07 1:28
professionalAnurag Gandhi28-May-07 1:28 
QuestionHow to improve website ranking in Google Pin
rajesh22527-May-07 4:31
rajesh22527-May-07 4:31 
AnswerRe: How to improve website ranking in Google Pin
Johnny ²27-May-07 15:54
Johnny ²27-May-07 15:54 
AnswerRe: How to improve website ranking in Google Pin
Paddy Boyd28-May-07 3:44
Paddy Boyd28-May-07 3:44 
AnswerRe: How to improve website ranking in Google Pin
markkuk28-May-07 10:29
markkuk28-May-07 10:29 
AnswerRe: How to improve website ranking in Google Pin
random423-Apr-09 19:12
random423-Apr-09 19:12 
QuestionwebBrowser navigating event problem Pin
Opa Knack27-May-07 2:52
Opa Knack27-May-07 2:52 
Questionjavascript ajax innerhtml xml dom problem... Pin
l a u r e n26-May-07 16:15
l a u r e n26-May-07 16:15 
AnswerRe: javascript ajax innerhtml xml dom problem... Pin
JimmyRopes27-May-07 2:37
professionalJimmyRopes27-May-07 2:37 
GeneralRe: javascript ajax innerhtml xml dom problem... Pin
l a u r e n27-May-07 11:35
l a u r e n27-May-07 11:35 
GeneralRe: javascript ajax innerhtml xml dom problem... Pin
JimmyRopes27-May-07 15:03
professionalJimmyRopes27-May-07 15:03 

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.