hi guys,... can anyone help please,... I know its not cake related (maybe 
it does),... I apologize,... but may someone know the answer. 

I have this dialog box popup works with Google Chrome, Firefox,... but NOT 
with Internet Explorer,... It takes like a regular link and NOT opening 
dialog box,...  I have to reload the page for it to work,... Once the page 
is reloads, it start working. Go to any subsequent pages,... stop working 
until I reload the page "F5" 
How can I fix this...? 

<script type="text/javascript">
 $(document).ready(function() {
$('#photo_dialog_<?php echo $photo['Photo']['id'] ?> a').each(function() {
var $link = $(this);
var $dialog = $('<div></div>')
.load($link.attr('href'))
.dialog({
autoOpen: false,
width: 500,
modal: true,
title: 'Report Photo',
});

$link.click(function() {
$dialog.dialog('open');

return false;
});
});
 });
</script>
and the link: 
<span id="photo_dialog_<?php echo $photo['Photo']['id'] ?>"><?php echo 
$html->link(__('report', true), '/report/photo/' . $photo['Photo']['id'], 
array('class' => 'report')) ?></span>

thanks in advance
chris

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to