473,467 Members | 1,373 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Javascript / hidden property conflict

2 New Member
Hey guys, Im hoping one of you gurus can help me out.

Im trying create a javascript image gallery contained within a css lightbox style pop up. The gallery needs to be contained within this pop up div, I can't have images on the main page like a traditional lightbox would have.

I can get the pop up and the image gallery (both a jQuery tools scroller and a much simpler horizontal scrollpane) to work independently of each other, but as soon as they are combined the gallery won't function.

It seems to me to be a conflict between the :hidden property of the div (or possibly the javascript that toggles it) and the javascript contained in the div. Is there anyway around this particular problem?

Some examples of the sort of thing I'm trying to combine:
http://www.sohtanaka.com/web-design/...w-style-popup/
http://flowplayer.org/tools/demos/sc...e/gallery.html

Thanks in advance!

PS - just tried display:none and that doesn't work either!
Feb 6 '10 #1
2 1821
larztheloser
86 New Member
Some browsers actually remove hidden content until it is shown again, not "hiding" it properly. Because of this you shouldn't run scripts from inside a hidden layer.

I also think there could be conflicts between the two scripts ie variables.

Unfortunately I'm no JQuery expert so I can't help much more than identify possible causes of the problem! Sorry.
Feb 7 '10 #2
deathclaw01
2 New Member
Thanks that might be useful to know in future.

I think I'm going to try something with inline frames and put the 'pop up' content on another page. Not the tidiest solution but it should get around this.
Feb 8 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

12
by: Kevin Lyons | last post by:
Hello, I am trying to get my select options (courses) passed correctly from the following URL: http://www.dslextreme.com/users/kevinlyons/selectBoxes.html I am having difficulty getting the...
19
by: dmiller23462 | last post by:
Hi guys....I have absolutely NO IDEA what I'm doing with Javascript but my end result is I need two text boxes to stay hidden until a particular option is selected....I've cobbled together the...
4
by: Steph | last post by:
Hello, Can someone tell me the script to use for having a change on the same page when using checkbox function ? For example, i would to check one condition and display dynamically a button...
5
by: delraydog | last post by:
I'm creating a dynamic iframe element: var iframe=document.createElement("iframe"); I want attach a style to the element, overflow-x:hidden. However, I can not find a way to do this via...
1
by: walkerhunter | last post by:
I have the three embedded Ruby(erb) check_boxes below: Patient #1<%= check_box("patient", '1', {}, "yes","no") %></br> Patient #2<%= check_box("patient", '2', {}, "yes","no") %></br> Patient...
1
by: Hoss | last post by:
Hello- I have the following Javascript code function Obj() { obj.squares = new Array(); } Obj.prototype.Load= function(xdoc) { var goat = "head"; xdoc.ProcessNodes("squares/square",...
3
by: bhanubalaji | last post by:
hi, I am unable to disable the text(label) in javascript..it's working fine with IE,but i am using MOZILLA.. can any one help regarding this.. What's the wrong with my code? I am...
9
by: Meendar | last post by:
Hi, Below is my code snippet having only one form, <form> <input type ="radio" name="action" value="xyz" checked>xyz <input type ="radio" name="action" value="zyx">zyx <input type ="radio"...
5
by: voidinutah | last post by:
Hello, I'm new to .NET and was trying to find a solution for having a button control do a post back then execute a javascript function. When the button is clicked a post back occurs to save...
1
by: albies | last post by:
Ciao a tutti, sono nuovo. Ho il problema di recuperare dei campi di struts che si trovano in un iterate indicizzati in una function javascript. questo č il codice del mio iterate: ...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.