Click here to Skip to main content
13,089,234 members (66,826 online)

JavaScript

 
GeneralRe: HTML5 Javascript Issue Pin
John Simmons / outlaw programmer3-Dec-12 6:40
mvpJohn Simmons / outlaw programmer3-Dec-12 6:40 
GeneralRe: HTML5 Javascript Issue Pin
Graham Breach3-Dec-12 6:48
memberGraham Breach3-Dec-12 6:48 
GeneralRe: HTML5 Javascript Issue Pin
John Simmons / outlaw programmer3-Dec-12 9:09
mvpJohn Simmons / outlaw programmer3-Dec-12 9:09 
GeneralRe: HTML5 Javascript Issue Pin
Graham Breach3-Dec-12 11:02
memberGraham Breach3-Dec-12 11:02 
GeneralRe: HTML5 Javascript Issue Pin
John Simmons / outlaw programmer3-Dec-12 15:20
mvpJohn Simmons / outlaw programmer3-Dec-12 15:20 
GeneralRe: HTML5 Javascript Issue Pin
Media2r18-Dec-12 0:51
memberMedia2r18-Dec-12 0:51 
GeneralRe: HTML5 Javascript Issue Pin
BrainiacV18-Dec-12 3:46
memberBrainiacV18-Dec-12 3:46 
GeneralRe: HTML5 Javascript Issue Pin
John Simmons / outlaw programmer3-Dec-12 5:29
mvpJohn Simmons / outlaw programmer3-Dec-12 5:29 
GeneralRe: HTML5 Javascript Issue Pin
John Simmons / outlaw programmer4-Dec-12 1:06
mvpJohn Simmons / outlaw programmer4-Dec-12 1:06 
GeneralRe: HTML5 Javascript Issue Pin
John Simmons / outlaw programmer4-Dec-12 7:31
mvpJohn Simmons / outlaw programmer4-Dec-12 7:31 
GeneralRe: HTML5 Javascript Issue Pin
Zaf Khan19-Dec-12 20:36
memberZaf Khan19-Dec-12 20:36 
AnswerRe: HTML5 Javascript Issue Pin
Zaf Khan19-Dec-12 20:42
memberZaf Khan19-Dec-12 20:42 
QuestionCatching Exceptions in Javascript Pin
Ved Yo29-Nov-12 14:43
memberVed Yo29-Nov-12 14:43 
QuestionPartial Overlay to cover ajax request Pin
Sentenryu29-Nov-12 1:51
memberSentenryu29-Nov-12 1:51 
Hello everyone,

I'm searching for a way to do a overlay with a loading indicator cover only 1 div on the page.

the reason i want to do this is that i'll have multiple sections in my pages that will do ajax calls to the server to get data and display in fields, most will be calculation results, so i don't want to replace the div's content, just the field value.

in my searchs, i only found solutions for overlays that cover the entire screen, that's good, but i want the rest of the page to be accessible while the ajax request goes on the background.

right now, i've the following code to create a overlay:

 
var lockOverlayHtml = '<div class="overlayDiv"></div>';
 
var lockElement = (function (container) {
                      var element = $(container);
                      var overlay = $(lockOverlayHtml);
 
                      overlay.offset(element.offset());
                      overlay.height(element.outerHeight(false));
                      overlay.width(element.outerWidth(false));
                      overlay.appendTo(document.body);
                   });


problem is, i can't think in a way to remove only this overlay when the ajax request ends, as it can be used to cover any element on the screen and i can have multiple ones at a time.

what can i use to identify this overlay and remove it?

i thought in something like generating a id using the coordinates, is it a good idea?

also, don't know if i can ask this here, but the overlayDiv class looks like this:

.overlayDiv
{
    position: absolute;
    opacity: 0.5;
    z-index: 1000;
    background-color: #606060;
}


this will work even when the browser scrolls? or i need to do something else in that case?
I'm brazilian and english (well, human languages in general) aren't my best skill, so, sorry by my english. (if you want we can speak in C# or VB.Net =p)

QuestionHow to get value from TD Pin
Chitttapa26-Nov-12 10:03
memberChitttapa26-Nov-12 10:03 
Questionhelp me please Pin
doa'a_9224-Nov-12 4:16
memberdoa'a_9224-Nov-12 4:16 
AnswerRe: help me please Pin
Leon Munir25-Nov-12 13:46
memberLeon Munir25-Nov-12 13:46 
GeneralRe: help me please Pin
J4amieC25-Nov-12 21:13
memberJ4amieC25-Nov-12 21:13 
GeneralRe: help me please Pin
Leon Munir26-Nov-12 2:06
memberLeon Munir26-Nov-12 2:06 
GeneralRe: help me please Pin
J4amieC26-Nov-12 5:30
memberJ4amieC26-Nov-12 5:30 
GeneralRe: help me please Pin
Marcus Kramer26-Nov-12 5:37
memberMarcus Kramer26-Nov-12 5:37 
GeneralRe: help me please Pin
doa'a_9226-Nov-12 9:28
memberdoa'a_9226-Nov-12 9:28 
Questiononmouseover and document.getElementById Pin
SRJ9223-Nov-12 4:18
memberSRJ9223-Nov-12 4:18 
AnswerRe: onmouseover and document.getElementById Pin
J4amieC23-Nov-12 4:48
memberJ4amieC23-Nov-12 4:48 
GeneralRe: onmouseover and document.getElementById Pin
SRJ9223-Nov-12 5:49
memberSRJ9223-Nov-12 5:49 
AnswerRe: onmouseover and document.getElementById Pin
jainsachin30-Nov-12 9:17
memberjainsachin30-Nov-12 9:17 
Questiondisplaying different contentunder single layout Pin
radha123 from Hyderabad23-Nov-12 3:32
memberradha123 from Hyderabad23-Nov-12 3:32 
AnswerRe: displaying different contentunder single layout Pin
manojwadnere28-Dec-12 0:07
membermanojwadnere28-Dec-12 0:07 
QuestionRegular expression Pin
Member 962181822-Nov-12 2:25
memberMember 962181822-Nov-12 2:25 
AnswerRe: Regular expression Pin
n.podbielski22-Nov-12 20:00
membern.podbielski22-Nov-12 20:00 
GeneralRe: Regular expression Pin
Manfred R. Bihy22-Nov-12 21:20
mvpManfred R. Bihy22-Nov-12 21:20 
GeneralRe: Regular expression Pin
n.podbielski23-Nov-12 21:15
membern.podbielski23-Nov-12 21:15 
Questionform validation Pin
therainking7821-Nov-12 22:07
membertherainking7821-Nov-12 22:07 
AnswerRe: form validation Pin
Richard MacCutchan21-Nov-12 22:17
mvpRichard MacCutchan21-Nov-12 22:17 
GeneralRe: form validation Pin
therainking7828-Nov-12 13:14
membertherainking7828-Nov-12 13:14 
AnswerRe: form validation Pin
bVagadishnu28-Nov-12 11:14
memberbVagadishnu28-Nov-12 11:14 
GeneralRe: form validation Pin
therainking7828-Nov-12 13:17
membertherainking7828-Nov-12 13:17 
Questionopeing a new window in JS after time interval Pin
WaqasCheema20-Nov-12 23:36
memberWaqasCheema20-Nov-12 23:36 
AnswerRe: opeing a new window in JS after time interval Pin
Andrew Stoute30-Nov-12 4:51
memberAndrew Stoute30-Nov-12 4:51 
QuestionDraw circuit diagram using javascript Pin
anishkannan18-Nov-12 22:31
memberanishkannan18-Nov-12 22:31 
AnswerRe: Draw circuit diagram using javascript Pin
n.podbielski19-Nov-12 21:07
membern.podbielski19-Nov-12 21:07 
Answerto transfer items in select list to another select list without duplicates Pin
raviteja999200014-Nov-12 20:09
memberraviteja999200014-Nov-12 20:09 
QuestionHow does Yandex do its trick? Pin
Xarzu14-Nov-12 19:42
memberXarzu14-Nov-12 19:42 
AnswerRe: How does Yandex do its trick? Pin
Manfred R. Bihy14-Nov-12 20:44
mvpManfred R. Bihy14-Nov-12 20:44 
Questiondisplay record from two different time Pin
uti123fil8-Nov-12 17:15
memberuti123fil8-Nov-12 17:15 
AnswerRe: display record from two different time Pin
Richard MacCutchan8-Nov-12 23:47
mvpRichard MacCutchan8-Nov-12 23:47 
QuestionAdding a month to the current date Pin
SadiqMohammed6-Nov-12 23:48
memberSadiqMohammed6-Nov-12 23:48 
AnswerRe: Adding a month to the current date Pin
Richard Deeming7-Nov-12 2:00
memberRichard Deeming7-Nov-12 2:00 
GeneralRe: Adding a month to the current date Pin
SadiqMohammed7-Nov-12 18:31
memberSadiqMohammed7-Nov-12 18:31 
GeneralRe: Adding a month to the current date Pin
Richard Deeming8-Nov-12 2:11
memberRichard Deeming8-Nov-12 2:11 

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.


Advertise | Privacy |
Web02 | 2.8.170813.1 | Last Updated 16 Aug 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid