Can you try this code?
<script type="text/javascript">
$(document).ready(function() {
$('a.report').click(function(e) {
e.preventDefault();
var t = $(this);
var dialog = $('<div></div>').load(t.attr('href')).dialog({
autoOpen: false,
width: 500,
modal: true,
title: 'Report Photo',
});
});
});
</script>
and the link:
<span><a href="/report/photo/' . $photo['Photo']['id']"
class="report"><?php echo __('report', true) ?></a></span>
2013/4/12 Chris <[email protected]>
> thanks rchavik,...
> that solve the problem with dialog box with IE7,...
>
> but still having problem with IE10 ,... I have other functions like jquery
> autocomplete, etc,... not works until I reload the page "F5"
> I even have this in header:
> <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
>
> but loosing jquery on browse,... have to reload the page to trigger jquery
>
> how can I solve this,...?
>
> thanks a lot,...
> chris
>
>
>
> On Thursday, April 11, 2013 5:44:24 PM UTC-7, rchavik wrote:
>>
>>
>>
>> On Friday, 12 April 2013 03:31:24 UTC+7, Chris wrote:
>>>
>>> hi guys,... can anyone help please,... I know its not cake related
>>> (maybe it does),... I apologize,... but may someone know the answer.
>>>
>>> title: 'Report Photo',
>>>
>>>
>> Remove the trailing comma there
>>
> --
> 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.
>
>
>
--
*May the source be with you.*
--
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.