You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

milotimbol

Intermediate

  • "milotimbol" started this thread

Posts: 220

Location: Philippines

Occupation: Software Developer

  • Send private message

1

Sunday, March 8th 2009, 3:18am

display a div using javascript bug?

Hi,

I'm trying out the javascript examples specifically this one http://www.krpano.com/examples/javascript3/. It works fine but when I try to do it inside a frame it wont show. If I resize the frames the div would start flickering. If I move to a different tab and back to it I can see it but part of it is missing (see attached screen cap).

This is how my html file looks like

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Title</title>
</head>
<frameset cols="230,*" border="5">
<frame src="sidebar.html" name="sidebar" scrolling="yes">
<frameset rows="70%,30%" border="5">
<frame src="panorama.html" name="panorama" id="test" scrolling="no">
<frame src="map.html" name="map" scrolling="no">
</frameset>
</frameset>
</html>

If I open panorama.html alone I can see the div. But if I open it inside the frame it behaves funny. Is there a workaround?

Thanks,
Milo
milotimbol has attached the following image:
  • screencap (600 x 409).jpg

Graydon

Professional

Posts: 614

Location: Texas

Occupation: Industrial gas turbine services.

  • Send private message

2

Monday, March 9th 2009, 8:53pm

I don't know how you would workaround using frames... but you could setup the same structure using css divs.

Looking at the screenshot and code... you'd setup 4 divs...
1. wrapper
2. left column full length
3. right - top for the pano
4. right - bottom for map

I'm not an expert... I played around with different layout structures a while back... had to learn css... which wasn't bad as there are a LOT of samples out on the net.

good luck

Graydon

milotimbol

Intermediate

  • "milotimbol" started this thread

Posts: 220

Location: Philippines

Occupation: Software Developer

  • Send private message

3

Tuesday, March 10th 2009, 7:09am

Yup I guess i'm switching to divs. I've read about frames and most people say use divs instead. I found a perfect match for my application

http://developer.yahoo.com/yui/layout/
http://developer.yahoo.com/yui/examples/…out_source.html

I used to work with GWT-EXT (google web toolkit extension) and i think this is the same library they're using. I had to give up using it because you needed to purchase a license. YUI is totally free!! I'm back to Geek mode again! wohoo! *thumbsup*

Milo

milotimbol

Intermediate

  • "milotimbol" started this thread

Posts: 220

Location: Philippines

Occupation: Software Developer

  • Send private message

4

Sunday, March 15th 2009, 1:25am

Hello everyone,

I got a similar problem when I switched to divs. The div still wont show on top of krpano. I was able to solve it by adding

<param name="wmode" value="opaque" />

This is the site about that workaround.
http://pipwerks.com/lab/swfobject/z-index/2.0/index.html

Milo