|
|
|
|
|
| Re: [sfLightboxPlugin] New plugin ! [message #21312 is a reply to message #21311 ] |
Fri, 09 February 2007 11:13   |
|
But not modal in IE7 nor Opera
[Updated on: Fri, 09 February 2007 11:37] all about me
t-shirts
|
|
|
|
| Re: [sfLightboxPlugin] New plugin ! [message #21314 is a reply to message #21207 ] |
Fri, 09 February 2007 11:39   |
|
Ok with IE7 but one least strange behaviour with Opera9.10
If I click out of the modal on the black background, nothing happens, but if I click on the grayed links, the modal closes.
<edit>
And a double-clic closes the modal too with opera
</edit>
[Updated on: Fri, 09 February 2007 11:41] all about me
t-shirts
|
|
|
| Re: [sfLightboxPlugin] New plugin ! [message #21315 is a reply to message #21207 ] |
Fri, 09 February 2007 11:52   |
demental Messages: 34 Registered: April 2006 Location: tarn |
Member |
|
|
Thanks nautilebleu.
I'll try to find a workaround for Opera (not sure I will succeed). I see also some glitches on the loading image for the slow open box.
EDIT : Tried to but for now I didn't manage to get rid of this bug (which affects lightbox too). Anyway I'll add the previous fixes to the symfony plugin now.
[Updated on: Fri, 09 February 2007 13:03]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Re: [sfLightboxPlugin] New plugin ! [message #25786 is a reply to message #25777 ] |
Mon, 16 April 2007 16:19   |
dawit Messages: 23 Registered: August 2006 |
Junior Member |
|
|
Hi,
I am not actually creating the link dynamically. The link is in the div to be updated. I only update the div, not the whole page. Here is excerpts of what I have:
generateSuccess.php:
<div id="userinfodiv">
<div class='error'>
<?php if ($sf_request->hasErrors()):
echo __('The data you entered seems to be incorrect. Please correct the following errors and resubmit');
endif ?>
</div>
<?php include_partial('cv/userinfoform', array('user_info' => $user_info, 'municipialities' => $municipialities,
'suburbs' => $suburbs, 'user_info_m' => $user_info_m, 'can_accredit_userinfo' =>
$can_accredit_userinfo, 'user_info_a' => $user_info_a)); ?>
</div>
_useroinfoform:
<?php
use_helper('Object', 'Javascript', 'I18N', 'Tabs', 'Validation', 'Lightbox');
echo form_remote_tag(array(
'url' => 'cv/updateUserInfo',
'update' => array('failure' => 'userinfodiv', 'success' => 'userinfodiv'),
'success' => "showCVTab('faminfo')",
'script' => true
),
array(
'id' => 'userinfo_form',
'class' => 'form'
)
)
?>
<div align="right">
<?php
$link_options = array('title' => 'Verify','class' => 'new blocksize_420x160');
$serverPage = "/cv/accreditRequest?section=general_info&id={$user_info - >getId()}&update=userinfodiv";
echo light_modallink('<h3>Verify</h3>', $serverPage, $link_options);
?>
</div>
After the form action is complete I reload the userinfodiv div (not the whole page) on generateSuccess.php which includes the userinfoform partial (the modalbox link is also in this partial as you can see above).
Where do I put the myModalBox.initModalBox()? I tried it with 'success' => "showCVTab('faminfo'), myModalBox.initModalBox()" and does not want to work. Is there anywhere else I should place this?
Thanks,
Dawit
|
|
|
| Re: [sfLightboxPlugin] New plugin ! [message #25790 is a reply to message #25786 ] |
Mon, 16 April 2007 17:05   |
demental Messages: 34 Registered: April 2006 Location: tarn |
Member |
|
|
| dawit wrote on Mon, 16 April 2007 16:19 |
Where do I put the myModalBox.initModalBox()? I tried it with 'success' => "showCVTab('faminfo'), myModalBox.initModalBox()" and does not want to work. Is there anywhere else I should place this?
Thanks,
Dawit
|
This should be 'success'=>"showCVTab('faminfo');initModalbox()"
[Updated on: Mon, 16 April 2007 17:06]
|
|
|
|
|
| Re: [sfLightboxPlugin] New plugin ! [message #26084 is a reply to message #21207 ] |
Sun, 22 April 2007 00:08   |
infect Messages: 98 Registered: January 2006 |
Member |
|
|
Hey guys, thanks for the great plugin.
As of this posting, the lightbox js has been updated to version 2.03.1:
http://www.huddletogether.com/projects/lightbox2/
The latest version adds support for showing and hiding flash objects underneath the lightbox window. It's also quite easy to add this into demental's excellent modalbox js file by adding the "hideFlash()" and "showFlash()" calls in start and end:
...
start: function(imageLink) {
hideSelectBoxes();
hideFlash();
...
end: function() {
this.disableKeyboardNav();
Element.hide('lightbox');
new Effect.Fade('overlay', { duration: overlayDuration});
showSelectBoxes();
showFlash();
}
...
... hope that helps anyone dealing with the same issue. I'm sure this will be incorporated into a future release, but it was nice to know it was easy to implement.
Mark Quezada
MirthLab
|
|
|
|
|
|
|
|
|