Click here to Skip to main content
15,886,518 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Answer[Repost] Re: dynamically increasing image size using asp.net with c# Pin
Sandeep Mewara25-Apr-10 5:55
mveSandeep Mewara25-Apr-10 5:55 
AnswerRe: dynamically increasing image size using asp.net with c# Pin
daveyerwin25-Apr-10 6:36
daveyerwin25-Apr-10 6:36 
AnswerRe: dynamically increasing image size using asp.net with c# Pin
Tej Aj25-Apr-10 23:12
Tej Aj25-Apr-10 23:12 
Questionhow to increase the image size when image is click Pin
developerit25-Apr-10 1:57
developerit25-Apr-10 1:57 
AnswerRe: how to increase the image size when image is click Pin
Sandeep Mewara25-Apr-10 2:02
mveSandeep Mewara25-Apr-10 2:02 
Questiondisplaying image directly in image button from fileupload control Pin
developerit25-Apr-10 0:44
developerit25-Apr-10 0:44 
AnswerRe: displaying image directly in image button from fileupload control Pin
Sandeep Mewara25-Apr-10 1:57
mveSandeep Mewara25-Apr-10 1:57 
Questionhide and show popup menu Pin
Abdul Rahman Hamidy24-Apr-10 19:08
Abdul Rahman Hamidy24-Apr-10 19:08 
Dear All,
I have very simple statements which popsup a menu
as bellow
<script language="javascript" type="text/javascript">
var ie5=document.all && !window.opera
var ns6=document.getElementById

if (ie5||ns6)
    document.write('<div id="popitmenu"></div>')
function showmenu(e, which, optWidth)
{
    menuobj=ie5? document.all.popitmenu : document.getElementById("popitmenu")
    menuobj.innerHTML=which
    /*
      process links and others here then finaly display it  
    */
    menuobj.style.visibility="visible";
    return false
}
function hidemenu()
{   
    var div = document.getElementById('popitmenu');
    if (div)
        div.style.visibility="hidden";
}
if (ie5||ns6)
    document.onclick=hidemenu;
</script>
<body style="width:100%; height:100%">
    <form id="form1" runat="server">
    <div>
        <a id="a" onclick="return showmenu(event,linkset[1], '180px');">Click here</a>
    </div>
    </form>
</body>

every time i click on "Click here" which displays popupmenu it suddenly hides, I debugged the statements and I got that every time the function hidemenu() is executed. as I am assigning hidemenu function to body click event which means, If i click at body the popupmenu should hide, but the question is here, If i am clicking at "Click here" why the hidemenu is called, or how I can hide the popupmenu.
simply, when I click at click here the popup should appear but when i am clicking at other places the popup should hide, how to achive it in above?
Abdul Rahaman Hamidy
Database Developer
Kabul, Afghanistan

AnswerRe: hide and show popup menu Pin
Sandeep Mewara25-Apr-10 2:04
mveSandeep Mewara25-Apr-10 2:04 
AnswerRe: hide and show popup menu Pin
daveyerwin25-Apr-10 9:34
daveyerwin25-Apr-10 9:34 
GeneralRe: hide and show popup menu Pin
Abdul Rahman Hamidy25-Apr-10 19:01
Abdul Rahman Hamidy25-Apr-10 19:01 
GeneralRe: hide and show popup menu Pin
daveyerwin26-Apr-10 4:50
daveyerwin26-Apr-10 4:50 
QuestionSending emoticons between 2 applications Pin
Eagle3224-Apr-10 9:34
Eagle3224-Apr-10 9:34 
AnswerRe: Sending emoticons between 2 applications Pin
Eddy Vluggen24-Apr-10 23:03
professionalEddy Vluggen24-Apr-10 23:03 
QuestionUsing User Controls in FormView templates. Pin
Brady Kelly24-Apr-10 5:06
Brady Kelly24-Apr-10 5:06 
Questionasp.net ajax cache Pin
jason_mf24-Apr-10 2:08
jason_mf24-Apr-10 2:08 
AnswerRe: asp.net ajax cache Pin
Sandeep Mewara24-Apr-10 2:47
mveSandeep Mewara24-Apr-10 2:47 
QuestionGoogle Map? Pin
kripa2123-Apr-10 23:45
kripa2123-Apr-10 23:45 
AnswerRe: Google Map? Pin
Abhijit Jana24-Apr-10 0:17
professionalAbhijit Jana24-Apr-10 0:17 
Questionyoutube video in asp.net Pin
mylogics23-Apr-10 23:38
professionalmylogics23-Apr-10 23:38 
AnswerRe: youtube video in asp.net Pin
sashidhar24-Apr-10 1:05
sashidhar24-Apr-10 1:05 
QuestionGet DateTime according to country. Pin
Avinash_Mane23-Apr-10 23:23
Avinash_Mane23-Apr-10 23:23 
AnswerRe: Get DateTime according to country. Pin
Shahriar Iqbal Chowdhury/Galib23-Apr-10 23:36
professionalShahriar Iqbal Chowdhury/Galib23-Apr-10 23:36 
GeneralRe: Get DateTime according to country. Pin
Avinash_Mane23-Apr-10 23:45
Avinash_Mane23-Apr-10 23:45 
GeneralRe: Get DateTime according to country. Pin
Shahriar Iqbal Chowdhury/Galib23-Apr-10 23:53
professionalShahriar Iqbal Chowdhury/Galib23-Apr-10 23:53 

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.