SimpleModal or SimpleModal Contact Form (SMCF)?
SimpleModal
Version of SimpleModal of SMCF (indicate Demo or WordPress plugin)?
SimpleModal 1.4.1
Version of jQuery?
Browser/OS you are experiencing the problem with?
Chromium 10.0.648.204 (0), arch linux
If applicable, please provide a code snippet or link to a website
demonstrating the problem.
I'm not sure if this is the wanted behaviour or not, but
when I changed the basic modal dialog example slightly to
load the scripts with $(document).ready() in the <head> instead of the end
of <body> it stopped working properly in Chromium.
Sometimes it loads okay, but often not. Try reloading the page many times to
see how sometimes the modal contents disappear.
This works well with Firefox4, but not in Chromium.
<!DOCTYPE html>
<html>
<head>
<title> SimpleModal Basic Modal Dialog </title>
<script type='text/javascript' src='js/jquery.js'></script>
<script type='text/javascript' src='js/jquery.simplemodal.js'></script>
<script type='text/javascript'>
$(document).ready(function() {
$('#basic-modal-content').modal();
});
</script>
<!-- Page styles -->
<link type='text/css' href='css/demo.css' rel='stylesheet' media='screen' />
<!-- Contact Form CSS files -->
<link type='text/css' href='css/basic.css' rel='stylesheet' media='screen' />
<!-- JS files are loaded at the bottom of the page -->
</head>
<body>
<!-- modal content -->
<div id="basic-modal-content">
<h1>My Modal</h1>
</div>
<!-- preload the images -->
<div style='display:none'>
<img src='img/basic/x.png' alt='' />
</div>
</body>
</html>
Original issue reported on code.google.com by juhan...@gmail.com on 9 Apr 2011 at 9:48
Original issue reported on code.google.com by
juhan...@gmail.com
on 9 Apr 2011 at 9:48