Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old August 22nd, 2005, 08:35 AM
Friend of Wrox
Points: 8,019, Level: 38
Points: 8,019, Level: 38 Points: 8,019, Level: 38 Points: 8,019, Level: 38
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jan 2005
Location: Mauchline, East Ayrshire, Scotland
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default hide the <div>

I have this div inside frame2.

<div id="warning">
Please set rule permissions before setting Mini-Rules
When i click a checkbox in frame1, how can i hide the warning div?



Ayrshire Minis - a Mini E-Community
Old August 22nd, 2005, 09:43 PM
Registered User
Join Date: Aug 2005
Location: , , Canada.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

Assuming that the frame has a name="frame2" in it then this should do it:

onclick="top./frames['frame2']document.getElementById('warning').style.display=' none';

But if it works at all it will probably be for IE only because the code is invalid and standards compliant browsers will not have a clue what you are referring to no matter how you approach it.

Invent a better mouse trap and a new improved mouse will come along and steal the cheese.

Similar Threads
Thread Thread Starter Forum Replies Last Post
hide/show <div> saban ASP.NET 2.0 Basics 3 November 21st, 2006 09:53 AM
Javascript with <div> aware Javascript How-To 3 August 25th, 2005 05:57 AM
<style> tags in a <body> vs. <div> bcat BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 1 March 27th, 2005 08:50 AM
sizeable <div> johnjohn Javascript How-To 1 December 8th, 2004 08:28 PM
<A><DIV><TABLE></DIV></A> anshul HTML Code Clinic 2 July 17th, 2004 02:17 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.