Portfolio Ajax in Page

11 replies · opened Sep 21, 2016

JjaycbonillaSep 21, 2016

Loving this theme,

I noticed in 'Ajax in Page' you have examples of different layouts as well as projects with one or multiple images. How would you go about showing multiple videos.

In my case, I'm using this for video. But some of my videos come with multiple videos. How would I go about loading different videos when clicked on the title. I can easily go about displaying all the videos at once, but I would like to have a link clicked to replace video. Similar to the thumbnail images that prompt the main image displaying.

Thanks.

JjaycbonillaSep 22, 2016

I figured using tabs within the .portfolio-ajax-single the only issue is, tabs don't function inside of the ajax page load. Please help.

JjaycbonillaSep 22, 2016

How do I allow TABS to work inside a portfolio single page that has been loaded? When I take the tabs outside of the .portfolio-ajax-single it works.

Thanks

SSemicolon WebSTAFFSep 22, 2016

Hello,

Using the Tabs is Definitely Possible inside an AJAX enabled Single Page but it is not activated by Default. Please add the following code in the js/functions.js File replacing the entire openItem: function() Function Block:

openItem: function(){
	var noOfImages = $portfolioDetails.find('img').length;
	var noLoaded = 0;

	if( noOfImages > 0 ) {
		$portfolioDetails.find('img').on('load', function(){
			noLoaded++;
			var topOffsetScroll = SEMICOLON.initialize.topScrollOffset();
			if(noOfImages === noLoaded) {
				$portfolioDetailsContainer.css({ 'display': 'block' });
				$portfolioDetails.addClass('portfolio-ajax-opened');
				$portfolioAjaxLoader.fadeOut();
				var t=setTimeout(function(){
					SEMICOLON.widget.loadFlexSlider();
					SEMICOLON.initialize.lightbox();
					SEMICOLON.initialize.resizeVideos();
					SEMICOLON.widget.masonryThumbs();
					SEMICOLON.widget.tabs();
					$('html,body').stop(true).animate({
						'scrollTop': $portfolioDetails.offset().top - topOffsetScroll
					}, 900, 'easeOutQuad');
				},500);
			}
		});
	} else {
		var topOffsetScroll = SEMICOLON.initialize.topScrollOffset();
		$portfolioDetailsContainer.css({ 'display': 'block' });
		$portfolioDetails.addClass('portfolio-ajax-opened');
		$portfolioAjaxLoader.fadeOut();
		var t=setTimeout(function(){
			SEMICOLON.widget.loadFlexSlider();
			SEMICOLON.initialize.lightbox();
			SEMICOLON.initialize.resizeVideos();
			SEMICOLON.widget.masonryThumbs();
			SEMICOLON.widget.tabs();
			$('html,body').stop(true).animate({
				'scrollTop': $portfolioDetails.offset().top - topOffsetScroll
			}, 900, 'easeOutQuad');
		},500);
	}
},

This will definitely fix your issue. Let us know if we can help you with anything else or if you find any further issues.

JjaycbonillaSep 22, 2016

Tabs still not working.

JjaycbonillaSep 22, 2016

I Cleared cookies and cache, tabs not working.

SSemicolon WebSTAFFSep 24, 2016

Hello,

We Really Apologize about the Inconveniences. It would be great if you can please provide us with a Live URL so that we can check out the exact issue and provide you with a more accurate solution for this. Thanks for your Patience.

Meanwhile, do let us know if we can help you with anything else or if you find any further issues with Canvas.

JjaycbonillaSep 24, 2016

http://atmospherechurch.ca/videos/

The video singe page ajax with thumbnail is the third thumbnail "The Process of pruning".

Thank you for your help.

JjaycbonillaSep 26, 2016

I made my reply private, I don't know if you guys can see it?

SSemicolon WebSTAFFSep 29, 2016

Hello,

We have checked out your Website and the Issue is that the Markup Code you are trying to use for the Tabs inside the AJAX Content is not actually valid which is why the Tabs do not work. Try pasting the exact codes on some other Page and the same code will not work. Please consider using some other Layout for your Tabs. Consider checking out the side-navigation.html Template to check what kind of Tabs Markup is supported.

Hope this Helps.

Let us know if we can help you with anything else or if you find any further issues.

JjaycbonillaOct 5, 2016

Got it to work. Thanks! The JS. function you gave me was 1/2 problems I had.

SSemicolon WebSTAFFOct 6, 2016

Hello,

Thank You so much for your Patience and Really Glad that your Issue was resolved!

Do let us know if we can help you with anything else or if you find any further issues with Canvas.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard