I have a form that is contained within a lightbox which is displayed on click
function dialogueBox(name){
document.getElementById(name).style.display='block';
document.getElementById('fade').style.display='block';
google.maps.event.trigger(map, "resize");
}
function closeDialogue(name){
document.getElementById(name).style.display='none';
document.getElementById('fade').style.display='none'
}
this lightbox also contains a google map.
How can I have this lightbox automatically appear after form submit reloads the page?
I have tried putting the function in body onload however maps requires that body onload="initialize()" and I can only get one or the other to work.
I have also tried:
<script>
window.onload = function(){
initialize();
dialogueBox(contact);
}
however only the top one will work.
Its been frustrating me all day, it seems so simple however I can't get anything to work.
Any help would be amazing.
thankyou

New Topic/Question
Reply


MultiQuote



|