|
-
Jan 1st, 2011, 12:50 PM
#1
Thread Starter
Addicted Member
[RESOLVED] document.getElementById in Master Page
Hi all,
I'm using following script in child Page
<script type="text/javascript" language="javascript">
function ShowTip(mDiv) {
if (mDiv.length < 1) { return; }
var dd = document.getElementById(mDiv);
dd.style.display = "block";
dd.visible=true
}
</script>
It works on normal pages but doesn't works on child Pages of Master Page.
Any Help???
-
Jan 1st, 2011, 03:27 PM
#2
Re: document.getElementById in Master Page
you need to use the ClientID property...
* Rate It  If you Like it
__________________________________________________________________________________________
" Programming is like sex: one mistake and you’re providing support for a lifetime."
Get last SQL insert ID 
-
Jan 2nd, 2011, 08:08 AM
#3
Re: document.getElementById in Master Page
Hey,
Can you show an example of where you are calling ShowTip?
Gary
-
Jan 2nd, 2011, 12:16 PM
#4
Thread Starter
Addicted Member
Re: document.getElementById in Master Page
 Originally Posted by gep13
Hey,
Can you show an example of where you are calling ShowTip?
Gary
Thanx 4 reply. But I Solved it now.
-
Jan 2nd, 2011, 12:43 PM
#5
Re: [RESOLVED] document.getElementById in Master Page
Hello,
For the benefit of the rest of the community, you might want to think about posting the solution that you came up with, in case someone else is having a similar problem.
Gary
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|