User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 391,590 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,668 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 4332 | Replies: 15
Reply
Join Date: May 2005
Location: Seattle
Posts: 10
Reputation: Ezju is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
Ezju Ezju is offline Offline
Newbie Poster

Help How do I open a web page with several layers to a spacific layer?

  #1  
May 16th, 2005
I would like to open a web page with several layers on it to a specific layer depending on the link on the previous page. I know I can do this from within the same page but I would like to do this from an external page. Can I and how?
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2004
Posts: 1,589
Reputation: tgreer is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 34
Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: How do I open a web page with several layers to a spacific layer?

  #2  
May 18th, 2005
What is a "layer"?

If you have a long page, with content divided up by use of anchor tags, you can navigate the page to a specific anchor with the URL syntax:

www.domain.com/page.html#anchorName
Reply With Quote  
Join Date: May 2005
Location: Seattle
Posts: 10
Reputation: Ezju is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
Ezju Ezju is offline Offline
Newbie Poster

Solution Re: How do I open a web page with several layers to a spacific layer?

  #3  
Jun 12th, 2005
Originally Posted by Ezju
I would like to open a web page with several layers on it to a specific layer depending on the link on the previous page. I know I can do this from within the same page but I would like to do this from an external page. Can I and how?

I found the answer. I posted it on my SharpLogic Software Blog if you want to know. http://www.sharplogic.com/blogs/ezju/ (May 25th, 2005)

Tgreer - DHTML has enables you to use web layers via the <DIV> tag.

Thanks for any and all help. I hope this helps out others with the same need.

Ezju
Reply With Quote  
Join Date: May 2005
Location: Seattle
Posts: 10
Reputation: Ezju is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
Ezju Ezju is offline Offline
Newbie Poster

Re: How do I open a web page with several layers to a spacific layer?

  #4  
Jun 12th, 2005
Tgreer - DHTML has enables you to use web layers via the <DIV> tag. I wanted to link from one page to another with the second page having several layers not visalbe. When you arrive to the page, I wanted the appropriate layer to become visable. see http://www.sharplogic.com
Reply With Quote  
Join Date: Dec 2004
Location: London or Slovakia
Posts: 2,134
Reputation: peter_budo has a spectacular aura about peter_budo has a spectacular aura about peter_budo has a spectacular aura about 
Rep Power: 10
Solved Threads: 257
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: How do I open a web page with several layers to a spacific layer?

  #5  
Jun 12th, 2005
Nice work, I like it.
However there is one thing you may consider and that is colour of your fonts because if any image layer displayed the text in front of it is usually unreadable.
(Just suggestion, nothing serious) Once more well done.
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

If we helped you to solve your problem, answered your question please mark your post as SOLVED.
Reply With Quote  
Join Date: Dec 2004
Posts: 1,589
Reputation: tgreer is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 34
Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: How do I open a web page with several layers to a spacific layer?

  #6  
Jun 13th, 2005
"Layer" is an outmoded Netscape term. I'm very fluent in DHTML. A "div" element is just that - a div element. Referring to it as a "layer" is bound to cause confusion. That's why I had to ask you want YOU meant by "layer".

Visibility of any particular element, including div elements, can be set with the appropriate CSS style applied: visibility: hidden, or visibility: visible.
Reply With Quote  
Join Date: May 2005
Location: Seattle
Posts: 10
Reputation: Ezju is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
Ezju Ezju is offline Offline
Newbie Poster

Re: How do I open a web page with several layers to a spacific layer?

  #7  
Jun 15th, 2005
“layer� is a outmoded Netscape term. Silly me for using it. I’ll update my dictionary so purists who live in the “that’s so 5 minutes ago� can understand.

Yes, visibility can be sent with CSS and other ways. I posted my solution to my problem, which others have had. Can you post a solution to the same problem using “appropriate CSS style applied?� I’m not that fluent in CSS.
Reply With Quote  
Join Date: May 2005
Location: Seattle
Posts: 10
Reputation: Ezju is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
Ezju Ezju is offline Offline
Newbie Poster

Re: How do I open a web page with several layers to a spacific layer?

  #8  
Jun 15th, 2005
Originally Posted by peter_budo
Nice work, I like it.
However there is one thing you may consider and that is colour of your fonts because if any image layer displayed the text in front of it is usually unreadable.
(Just suggestion, nothing serious) Once more well done.
Peter,

Are you refering to something you are seeing in the site I built or just in general?

Ezju
Reply With Quote  
Join Date: Dec 2004
Posts: 1,589
Reputation: tgreer is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 34
Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: How do I open a web page with several layers to a spacific layer?

  #9  
Jun 15th, 2005
My point was simply, if you're posting a technical question in a web development forum, you have to use terminology that web developers use. The term "layer" means lots of things in lots of contexts. In the context of HTML development, "layer" was a proprietary element Netscape introduced, which was deprecated several years ago (considerably more than 5 minutes).

If you want to programmaticaly set the visibility of div elements, then it would make the most sense to ask "how do I set the visibility of a div element". People wanting to ask a similar question would be more likely to find this thread in the future, a key benefit to using a forum site.

Your originating link would contain a querystring:

<a href="myDestination.html?activeDiv=myDiv2">link</a>

The myDestination page would have an onload script which parsed the querystring, using location.search, to set the myDiv2 style visibility to "visible".

document.getElementById("myDiv2").style.visibility = visible;
Reply With Quote  
Join Date: Dec 2004
Location: London or Slovakia
Posts: 2,134
Reputation: peter_budo has a spectacular aura about peter_budo has a spectacular aura about peter_budo has a spectacular aura about 
Rep Power: 10
Solved Threads: 257
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: How do I open a web page with several layers to a spacific layer?

  #10  
Jun 15th, 2005
I'm referingthe to www.sharplogic.com , don't know if is your.
But yeah on that site, welcome page, when you roll over main menu, images are displayed and text in front of it (of image) is not readable.
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

If we helped you to solve your problem, answered your question please mark your post as SOLVED.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb JavaScript / DHTML / AJAX Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 11:17 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC