jquery-address icon indicating copy to clipboard operation
jquery-address copied to clipboard

jQuery.address doesn't work correctly inside iframe in Opera

Open fed239 opened this issue 12 years ago • 1 comments

In order to reproduce the bug create 2 files.

Main file: <html>
<body>

<iframe src="iframe.html" style="width: 900px; height: 600px;">
<p>Your browser does not support iframes.</p>
</iframe>

</body>
</html>

Content of iframe.html:
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="jquery.address-1.4.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$.address.change(function(event) {
$('#console').append(event.path);
});
});
</script>
</head>
<body>
<a href="#/1">1</a>
<br />
<a href="#/2">2</a>
<div id="console" />
</body>
</html>

Nothing happens when I click the links. In other browsers this example works fine. I tested with Opera 11.62, but other versions seem not working either, because google analytics shows 1 page per use for opera users, meanwhile average value is about 4 pages :)

fed239 avatar Apr 18 '12 17:04 fed239

See this link for workaround: https://github.com/asual/jquery-address/pull/130

desunit avatar May 09 '12 11:05 desunit