A javascript menu is behind the pivot and chart component

  • Thread starter Luis E Valencia
  • Start date
L

Luis E Valencia

I just made a javascript menu and I have a page with a chart on the top of
the page near the menu. The menu is showin behind the pivot table.

What should i do
 
A

Alvin Bruney [MVP]

move the menu. The object takes precedence over every other window on the
page. I've not heard of a work around for this one yet.
 
J

J O Holloway

Would frames or CSS help to position the chart/table?


Alvin Bruney said:
move the menu. The object takes precedence over every other window on the
page. I've not heard of a work around for this one yet.

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
Luis E Valencia said:
I just made a javascript menu and I have a page with a chart on the top of
the page near the menu. The menu is showin behind the pivot table.

What should i do
 
A

Alvin Bruney [MVP]

Possibly. but once you have layering, the object

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
J O Holloway said:
Would frames or CSS help to position the chart/table?


Alvin Bruney said:
move the menu. The object takes precedence over every other window on the
page. I've not heard of a work around for this one yet.

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
Luis E Valencia said:
I just made a javascript menu and I have a page with a chart on the top of
the page near the menu. The menu is showin behind the pivot table.

What should i do
 
A

Alvin Bruney [MVP]

Possibly, but once you have layering involved, the object will always win
the uppermost position.

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
J O Holloway said:
Would frames or CSS help to position the chart/table?


Alvin Bruney said:
move the menu. The object takes precedence over every other window on the
page. I've not heard of a work around for this one yet.

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
Luis E Valencia said:
I just made a javascript menu and I have a page with a chart on the top of
the page near the menu. The menu is showin behind the pivot table.

What should i do
 
J

J O Holloway

I see what you mean. Even if you specify the z-index in the stylesheet, the
chart/table wants to be on top. Still, the CSS can be used to specify that
the chart should first appear a bit lower or to the right of the javascript
menu.

Another interesting point is that when specifying it the way I did, the
chart would show fine, but when I scroll down to where the table is, the
chart disappears. I found that by setting overflow:hidden; in the CSS, the
chart would appear all by itself. Of course, this means no interactivity,
but it is a way to show the chart without having to do a flattened ADO
recordset call via background coding.


Alvin Bruney said:
Possibly, but once you have layering involved, the object will always win
the uppermost position.

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
J O Holloway said:
Would frames or CSS help to position the chart/table?


Alvin Bruney said:
move the menu. The object takes precedence over every other window on the
page. I've not heard of a work around for this one yet.

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
I just made a javascript menu and I have a page with a chart on the
top
of
the page near the menu. The menu is showin behind the pivot table.

What should i do
 
D

David M. Andersen

David said:
Try this:
http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/createpopup.asp

Those suckers work over frame boundaries, window boundaries, etc. Just get a popup object and write to its document. Keep in mind that it doesn't share the stylesheets and script functions of the parent window and hyperlinks won't work directly. You'll need to navigate using a reference to the parent window.

var popup = window.createPopup();
var pd = popup.document;
pd.body.write("put entire html document here!");
pd.MenuStuff = new Object();
pd.MenuStuff.BrowserWindow = window;
popup.show(x, y, width, height, event.srcElement);


I've managed to tweak one using CSS to look just like the standard Windows menus. :)

OK I set up a little demo here:
http://www.coe.uncc.edu/~danderse/www/owc-popup.html

I only spent like a few minutes on it so it looks like garbage. But you
get the idea.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top