Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: JavaScript 24-Hour Trainer
This is the forum to discuss the Wrox book JavaScript 24-Hour Trainer Jeremy McPeak; ISBN: 978-0-470-64783-7
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: JavaScript 24-Hour Trainer 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 14th, 2012, 05:04 PM
Registered User
Points: 31, Level: 1
Points: 31, Level: 1 Points: 31, Level: 1 Points: 31, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2011
Posts: 7
Thanks: 3
Thanked 0 Times in 0 Posts
Default Lesson 12

I'm having trouble implementing Lesson 12's Try It using IE 9 and Google Chrome using MS VWD Express and nothing came out. I didn't get an error thrown at me at page load.

Am I missing out something? I know that the frameset and frame tags are already depreciated.

Thanks
 
Old October 17th, 2012, 11:17 AM
jmcpeak's Avatar
Wrox Author
Points: 467, Level: 7
Points: 467, Level: 7 Points: 467, Level: 7 Points: 467, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2005
Location: , Texas, USA.
Posts: 87
Thanks: 0
Thanked 18 Times in 17 Posts
Default

Howdy, mrubin78.

I apologize for my delay in getting back with you. I'm afraid I cannot help you without seeing your code. Can you please copy and paste the code for each of the files, or upload the files to a web server and provide the URL?
The Following User Says Thank You to jmcpeak For This Useful Post:
mrubin78 (February 5th, 2013)
 
Old February 5th, 2013, 09:37 AM
Registered User
Points: 31, Level: 1
Points: 31, Level: 1 Points: 31, Level: 1 Points: 31, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2011
Posts: 7
Thanks: 3
Thanked 0 Times in 0 Posts
Default Resuming Lesson 12

The dust has finally settled in since October with lots of family happenings and holidays and now I'm back to resume my Javascript lesson.

Again I apologize as well.

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Frameset Page</title>
    <script type="text/javascript">
        function writeInB(message)
        {
            frmTop.frmB.document.write(message);
        }
    </script>
</head>
<body>
    <frameset rows="50%,*">
        <frame name="frmTop" src="frame_top.htm" />
        <frame name="frmBottom" src="frame_bottom.htm" />
    </frameset>
</body>
</html>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Top Frame</title>
     <script type="text/javascript">
         function callParentFunction()
         {
             parent.writeInB("Calling from frmTop");
         }
    </script>
</head>
<body>
    <frameset rows="50%,*">
        <frame name="frmA" src="frame_a.htm" />
        <frame name="frmB" src="frame_b.htm" />
    </frameset>
</body>
</html>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Bottom Frame</title>    
</head>
<body>
    <h1>Bottom Frame</h1>
</body>
</html>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Frame B</title>
    <script type="text/javascript">
        parent.callParentFunction();
    </script>
</head>
<body>
    <h1>Frame B</h1>
</body>
</html>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Frame A</title>
    <script type="text/javascript">
        top.frmBottom.document.write("Hello from frmA!");
    </script>
</head>
<body>
    <h1>Frame A</h1>
</body>
</html>
I will move forward and start lesson 13 until I hear back from you with issues on Lesson 12.

Again my apologies and looking forward to hearing from you soon.
 
Old February 8th, 2013, 09:58 AM
Registered User
Points: 31, Level: 1
Points: 31, Level: 1 Points: 31, Level: 1 Points: 31, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2011
Posts: 7
Thanks: 3
Thanked 0 Times in 0 Posts
Default

I forgot to add - right now I'm using VS 2010 Professional edition and using IE 8 (not 9) and Firefox 10.0.2. I won't be able to use Firefox because the Javascript have been disabled for security reasons which is beyond my control.
 
Old March 19th, 2013, 10:43 AM
Registered User
Points: 31, Level: 1
Points: 31, Level: 1 Points: 31, Level: 1 Points: 31, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2011
Posts: 7
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Waiting for your input please
 
Old June 21st, 2013, 10:01 AM
jmcpeak's Avatar
Wrox Author
Points: 467, Level: 7
Points: 467, Level: 7 Points: 467, Level: 7 Points: 467, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2005
Location: , Texas, USA.
Posts: 87
Thanks: 0
Thanked 18 Times in 17 Posts
Default

Apologies, mrubin78.

My spam filter caught the email alerting me to your reply. It looks like the issue is in the HTML for the frameset pages (main and top):

frameset_main:
HTML Code:
<body>
    <frameset rows="50%,*">
        <frame name="frmTop" src="frame_top.htm" />
        <frame name="frmBottom" src="frame_bottom.htm" />
    </frameset>
</body>
frame_top:
HTML Code:
<body>
    <frameset rows="50%,*">
        <frame name="frmA" src="frame_a.htm" />
        <frame name="frmB" src="frame_b.htm" />
    </frameset>
</body>
Remove the opening and closing body tags, and things should work for you.
The Following User Says Thank You to jmcpeak For This Useful Post:
mrubin78 (July 8th, 2013)




Similar Threads
Thread Thread Starter Forum Replies Last Post
Lesson 12 - Ping Pong Game won't run threads Scott.Ballenger BOOK: Java Programming 24-Hour Trainer by Yakov Fain 2 April 27th, 2013 10:21 PM
Lesson 4 Femi Sonuga BOOK: Knight's Microsoft Business Intelligence 24-Hour Trainer 0 November 25th, 2011 10:25 AM
Lesson 4 - Try It brookesmith BOOK: JavaScript 24-Hour Trainer 2 September 15th, 2011 05:40 PM
want to convert date from 01/12/07 to 12-Jan-2007 hurperl Perl 1 April 12th, 2007 05:47 AM
Errors on Chapter 12 example(12.8) sonnie ASP.NET 2.0 Professional 2 June 7th, 2006 10:55 AM





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