Hi
In my application I have a test for distance using google maps api. As you can see above if the postcode is within range the page is redirected to the menu page.
I have created a very simple lightbox using css and the onclick function. I want that div/lightbox to be opened in the else section. I have tried different methods such as window.show, getElementById(light).style.visibility="visible" and a few other things!
Any help would be great thank you.
if (results[0].distance.value <= 9828 )
{
setTimeout("window.location = 'menu'",3000);
}else{
}
}
}