Click here to Skip to main content
15,918,668 members
Home / Discussions / JavaScript
   

JavaScript

 
AnswerRe: send email with no further parameters Pin
Sandeep Mewara8-Aug-10 3:21
mveSandeep Mewara8-Aug-10 3:21 
QuestionHow to close all pop-up on click on logout Pin
InderK4-Aug-10 8:01
InderK4-Aug-10 8:01 
AnswerRe: How to close all pop-up on click on logout Pin
Not Active4-Aug-10 8:45
mentorNot Active4-Aug-10 8:45 
GeneralRe: How to close all pop-up on click on logout Pin
InderK4-Aug-10 18:07
InderK4-Aug-10 18:07 
GeneralRe: How to close all pop-up on click on logout Pin
Not Active5-Aug-10 2:21
mentorNot Active5-Aug-10 2:21 
GeneralRe: How to close all pop-up on click on logout Pin
InderK5-Aug-10 2:37
InderK5-Aug-10 2:37 
AnswerRe: How to close all pop-up on click on logout Pin
Prosanta Kundu online4-Aug-10 19:58
Prosanta Kundu online4-Aug-10 19:58 
QuestionHelp : Dynamically maintaining left position Pin
Chakouri3-Aug-10 20:11
Chakouri3-Aug-10 20:11 
Hi,

Greetings everyone!
In my web application in a certain form, I want to show help text for some of the labels. The codes are as following:

<dt style="position:relative;">Pathway<a href="#"><img src="Images/1280835207_information-balloon.png" alt="" border="=0" id="show" onmouseover="showDiv('show');" onmouseout="hideDiv('show','wrapper');" /></a>
		
		<div id="wrapper" style="width:275px; position:absolute; left:180px; " >
		<div style="background:url(Images/div_head.png) no-repeat ; width:275px; height:60px;"></div>
		<div style="background:#d8d7d3; width:263px; padding:4px; border-left:2px solid #f39716;border-right:2px solid #f39716">hjgfdhfhhh hhhhhhh hhhhhhhh ghhghgj jhjuvhfgf hjfkdg hkijdkf hgtjnglk.</div>
		<div style="background:url(Images/div_bot.png) no-repeat; width:275px; height:19px;">
		</div>
		</div>
		
		</dt>


And the javascript is as follows :

<script type="text/javascript">
function hideDiv(sh,wr)     
{
document.getElementById(sh).style.display = '';
document.getElementById(wr).style.display = 'none';
}

function showDiv(wr)     
{
document.getElementById(wr).style.display = '';
}
</script>


The problem is that this help text will be shown for some more labels in the same page. You can see that I'm maintaining the position of the help-text div by maintaining it's left position :

position:absolute; left:50px;

So when the label-text is larger then this position will not be applied. Is there a way to dynamically maintain the left position? I mean to say for larger or smaller label-text the position of the help-div will be adjusted automatically. I'm not sure whether I'm successful in making my need clear. Can anyone please help me?

Thanks in advance.
AnswerRe: Help : Dynamically maintaining left position Pin
Prosanta Kundu online4-Aug-10 19:55
Prosanta Kundu online4-Aug-10 19:55 
QuestionCheck file in JavaScript Pin
ShafiqA2-Aug-10 22:54
ShafiqA2-Aug-10 22:54 
AnswerRe: Check file in JavaScript Pin
koolprasad20033-Aug-10 4:05
professionalkoolprasad20033-Aug-10 4:05 
GeneralRe: Check file in JavaScript Pin
ShafiqA3-Aug-10 18:10
ShafiqA3-Aug-10 18:10 
AnswerRe: Check file in JavaScript Pin
Yusuf4-Aug-10 5:35
Yusuf4-Aug-10 5:35 
QuestionHow to detect .msi file ? Pin
002comp2-Aug-10 0:54
002comp2-Aug-10 0:54 
AnswerRe: How to detect .msi file ? Pin
daveyerwin2-Aug-10 7:28
daveyerwin2-Aug-10 7:28 
GeneralRe: How to detect .msi file ? Pin
002comp2-Aug-10 18:42
002comp2-Aug-10 18:42 
GeneralRe: How to detect .msi file ? Pin
daveyerwin3-Aug-10 5:58
daveyerwin3-Aug-10 5:58 
GeneralRe: How to detect .msi file ? Pin
002comp3-Aug-10 19:47
002comp3-Aug-10 19:47 
GeneralRe: How to detect .msi file ? Pin
002comp4-Aug-10 1:46
002comp4-Aug-10 1:46 
GeneralRe: How to detect .msi file ? Pin
daveyerwin4-Aug-10 12:26
daveyerwin4-Aug-10 12:26 
GeneralRe: How to detect .msi file ? Pin
002comp4-Aug-10 21:14
002comp4-Aug-10 21:14 
QuestionRefresh Div content Pin
Shantanu Gupta 133731-Jul-10 6:18
Shantanu Gupta 133731-Jul-10 6:18 
AnswerRe: Refresh Div content [modified] Pin
daveyerwin31-Jul-10 7:55
daveyerwin31-Jul-10 7:55 
GeneralRe: Refresh Div content Pin
Shantanu Gupta 133731-Jul-10 19:34
Shantanu Gupta 133731-Jul-10 19:34 
GeneralRe: Refresh Div content [modified] Pin
daveyerwin1-Aug-10 3:15
daveyerwin1-Aug-10 3:15 

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.