Click here to Skip to main content
15,913,216 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Active Directory/Web Part/Sharepoint/Weee Pin
esplosion23-Jan-08 10:08
esplosion23-Jan-08 10:08 
GeneralRe: Active Directory/Web Part/Sharepoint/Weee Pin
MrPlankton25-Jan-08 8:39
MrPlankton25-Jan-08 8:39 
GeneralDownload manager website code Pin
Gene Arnold22-Jan-08 0:43
Gene Arnold22-Jan-08 0:43 
Generalweb part Pin
ptvce21-Jan-08 20:18
ptvce21-Jan-08 20:18 
GeneralRe: web part Pin
esplosion22-Jan-08 12:09
esplosion22-Jan-08 12:09 
QuestionSession Varialble Problem Pin
sivaprakas21-Jan-08 19:56
sivaprakas21-Jan-08 19:56 
GeneralPopulating DropDown List Using AJAX Pin
ELEESA JOVAIN21-Jan-08 18:32
ELEESA JOVAIN21-Jan-08 18:32 
GeneralAvoid postback when a ComboBox is clicked Pin
Kikala21-Jan-08 8:17
Kikala21-Jan-08 8:17 
Hi All,

I have a custom Control which contains div as a main container and any other control can be dragged and dropped within the div control. Currently, I have added client side code to invoke a postback on the following events of the container:
document.onchange = handleEvent;
interceptor.onclick = handleEvent;
interceptor.onkeypress = handleEvent;
interceptor.onkeyup = handleEvent;
interceptor.onpaste = handleEvent;

So in any of these events on the container or any its child a postback event is raised to the server with the function handleEvent:

function handleEvent(event)
{
var btsave = document.getElementById(controlEtatUpdate);

if ( btsave.disabled )
{
if (!event)
{
var e = window.event;
if (!e.ctrlKey)
{
if (e.keyCode != Sys.UI.Key.tab)
{
if (e.srcElement.type) {
if (e.srcElement.type == 'text')
{
if (e.type != 'click')
{
// Save the current position for a text.
currentPosition = getPosition(e.srcElement)

WarnServer();
}
}
else
{
WarnServer();
}

//W3C model
if (e.stopPropagation)
{
e.stopPropagation();
}
}
}
}
}
}
}


So as soon you click on the custom control, an even is raised but I would like to avoid that in the case of a ComboBox…Especially when there is no change in the selection. Any help will appreciated.
QuestionProblem with form data after submitting Pin
Nilesh Hapse20-Jan-08 23:34
Nilesh Hapse20-Jan-08 23:34 
GeneralRe: Problem with form data after submitting Pin
sivaprakas31-Jan-08 14:33
sivaprakas31-Jan-08 14:33 
GeneralConnection to SQL Server issues Pin
Chris McGlothen20-Jan-08 7:38
Chris McGlothen20-Jan-08 7:38 
GeneralRe: Connection to SQL Server issues Pin
Paul Conrad20-Jan-08 9:31
professionalPaul Conrad20-Jan-08 9:31 
GeneralRe: Connection to SQL Server issues Pin
Chris McGlothen21-Jan-08 4:30
Chris McGlothen21-Jan-08 4:30 
GeneralRe: Connection to SQL Server issues Pin
Paul Conrad21-Jan-08 6:18
professionalPaul Conrad21-Jan-08 6:18 
GeneralRe: Connection to SQL Server issues Pin
Chris McGlothen21-Jan-08 6:23
Chris McGlothen21-Jan-08 6:23 
GeneralRe: Connection to SQL Server issues Pin
Vasudevan Deepak Kumar21-Jan-08 3:21
Vasudevan Deepak Kumar21-Jan-08 3:21 
GeneralRe: Connection to SQL Server issues Pin
Chris McGlothen21-Jan-08 4:28
Chris McGlothen21-Jan-08 4:28 
Questionhow can manage keypress event in as.net? Pin
B.A19-Jan-08 19:37
B.A19-Jan-08 19:37 
QuestionHow to create a site in Language rather than English. Pin
coolsatty18-Jan-08 20:21
coolsatty18-Jan-08 20:21 
AnswerRe: How to create a site in Language rather than English. Pin
Johnny ²18-Jan-08 23:26
Johnny ²18-Jan-08 23:26 
AnswerRe: How to create a site in Language rather than English. Pin
Paul Conrad19-Jan-08 12:41
professionalPaul Conrad19-Jan-08 12:41 
GeneralHTML table alignment problem Pin
Red00Knight18-Jan-08 13:51
Red00Knight18-Jan-08 13:51 
GeneralRe: HTML table alignment problem Pin
kiranmaggam19-Jan-08 1:22
kiranmaggam19-Jan-08 1:22 
GeneralRe: HTML table alignment problem Pin
Nilesh Hapse21-Jan-08 0:35
Nilesh Hapse21-Jan-08 0:35 
GeneralIE 7.0 and .PPT Pin
Civic0618-Jan-08 3:26
Civic0618-Jan-08 3:26 

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.