+ Start a Discussion
VidhiVidhi 

Java Script Help

Hello Friends,

 

I am developing a VF Page in which I am hiding a table with java script .It is hiding the table perfectly but it is leaving the space after hidding the table.How can i remove the space after hidding the image.

 

Thanks

Chamil MadusankaChamil Madusanka

It is better if you can share your code here

MagulanDuraipandianMagulanDuraipandian

http://infallibletechie.blogspot.in/2012/10/hide-and-show-multiple-pageblocks-in.html

 

Check this..

 

 

Regards,

Magulan D

Salesforce.com certified Force.com Developer.

SFDC Blog

SFDC Site

If this post is your solution, kindly mark this as the solution and give Kudos.

VidhiVidhi

window.onload = function()
{
if (document.getElementById) {
document.getElementById('Image2').style.visibility = 'hidden';
}
}
function openImage() {
if (document.getElementById) {
document.getElementById('Image2').style.visibility = 'visible';
}
}
function payImage() {
if (document.getElementById) {
document.getElementById('Im').style.visibility = 'visible';
}
}
function closeImage() {
if (document.getElementById) {
document.getElementById('Image1').style.visibility = 'hidden';
}
}

function hideImage() {
if (document.getElementById) {
document.getElementById('div').style.visibility ='hidden';

}
}
function checkAcknowledgement(){

if (acknowledgement.checked == false){
alert('Please read Agreement and Terms.');
return false;
} else {
return true;
}
}
function show() {
document.getElementById("myDiv").style.display="block";
setTimeout("hide()", 2100);
}

function hide() {
document.getElementById("myDiv").style.display="none";
}
function showImageother() {
if (document.getElementById) {
document.getElementById('Image1').style.visibility = 'visible';
}
}
function hideImageother() {
if (document.getElementById) {
document.getElementById('image2').style.visibility = 'hidden';
}
}
function hideTable() {
if (document.getElementById) {
document.getElementById('table').style.visibility = 'hidden';
document.getElementById('im').style.visibility = 'visible';
}
}