Friday, April 5, 2013

Re: ajax content within ajax page call

I know it´s not a Cake question, but use Google Chrome to test your app, and check the console if it shows any error, in Javascript depending on errors, no other script will fire after the error...

Em quinta-feira, 4 de abril de 2013 01h56min48s UTC-3, Chris escreveu:
hi guys,... can anyone help please,... 

I have a photo page with lots of ajax function, features in it,... e.g. Likes, Dislikes, Make Favorite,... and Post a Comment,... I'm calling this page via ajax with Highslide JS to popup,... Once page pops and loaded, I can't use other functions in it,... no other features are work,...  Does anybody know what's the problem,... what to do,...? 

here is my image link with script: 
<?php echo $html->link($photoShow->small($photo, array('style' => 'border: 1px solid #2F2E2F;')), '/photos/view/' . $photo['Photo']['id'], array('escape'=>false,  'onclick' => "return hs.htmlExpand(this, { objectType: 'ajax'} )")) ?>

<script type="text/javascript">
hs.graphicsDir = '<?php echo $html->url("/img/graphics/") ?>';
hs.align = 'center';
hs.transitions = ['expand', 'crossfade'];
hs.outlineType = 'rounded-white';
hs.wrapperClassName = 'draggable-header';
hs.preserveContent = true;
hs.fadeInOut = true;
hs.numberPosition = 'caption';
hs.dimmingOpacity = 0.75;

// Add the controlbar
if (hs.addSlideshow) hs.addSlideshow({
//slideshowGroup: 'group1',
interval: 5000,
repeat: false,
useControls: true,
fixedControls: 'fit',
overlayOptions: {
opacity: .75,
position: 'bottom center',
hideOnMouseOut: true
}
});
</script>

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 cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments: