Two Plus Two Publishing LLC Two Plus Two Publishing LLC
 

Go Back   Two Plus Two Poker Forums > Other Topics > Programming

Notices

Programming Discussions about computer programming

Reply
 
Thread Tools Display Modes
Old 04-22-2012, 01:14 AM   #1
veteran
 
Join Date: Nov 2005
Location: Washington, DC
Posts: 3,493
Unhappy Individual JS gallery page loading differently from main site JS gallery page, but Why?

My goal is to link to photo galleries directly on a web page that uses a Jquery’s “Animate” and JS/CSS. The page in question is witold.org (click on either photo to go to a gallery I want to link directly.)

I learned this is not possible due to security issues.

As such, I was thinking that perhaps I can create additional HTML pages for each gallery with just the gallery script. For example, this page.

But even though I am using the same gallery script, linking to the same CSS and same JS, the gallery has a lot of errors. Gallery seems to partially load: no photos load initially but when mouse is over the thumbs they show up, and when one clicks on a thumb the large JPG shows up. But then everything seems to stop working. I can't increment to next photo via clicking thumbs or clicking arrows.

I am missing some fundamental piece of this, but not sure what... I guess my question is that if I navigate to the gallery via main page it works but when I strip only gallery code to a seperate html page the code fails.

Any ideas?
dc_publius is online now   Reply With Quote
Old 04-23-2012, 02:20 AM   #2
bacon wannabe
 
Freakin's Avatar
 
Join Date: Sep 2004
Posts: 16,998
Re: Individual JS gallery page loading differently from main site JS gallery page, but Why?

i assume it's missing shared files (javascripts, css, etc) that are normally loaded from the main page of the gallery
Freakin is offline   Reply With Quote
Old 04-23-2012, 09:12 PM   #3
veteran
 
Join Date: Nov 2005
Location: Washington, DC
Posts: 3,493
Re: Individual JS gallery page loading differently from main site JS gallery page, but Why?

The weirdest part of all is that when I load idex_gal.html and start clicking on the thumbs immediately, the gallery seems to work for the first 5-10 seconds.

Then it just hangs and is not responsive to clicking on thumbs...
dc_publius is online now   Reply With Quote

Reply
      

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -4. The time now is 03:34 AM.


Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.
Copyright © 2008-2010, Two Plus Two Interactive