Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: ASP.NET 4 24-Hour Trainer
This is the forum to discuss the Wrox book ASP.NET 4 24-Hour Trainer by Toi B. Wright; ISBN: 978-0-470-59691-3
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 4 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 September 2nd, 2010, 06:32 PM
Registered User
 
Join Date: Sep 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 1 javascript won't work

I entered the code exactly as in the book and on the dvd but when I press the SelectColor button, I get no result. What gives?
 
Old September 3rd, 2010, 09:48 AM
Authorized User
Points: 66, Level: 1
Points: 66, Level: 1 Points: 66, Level: 1 Points: 66, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2010
Location: Dallas, TX
Posts: 18
Thanks: 0
Thanked 1 Time in 1 Post
Default

Have you downloaded the solution file for that lesson? - http://www.wrox.com/WileyCDA/WroxTit...-DOWNLOAD.html

I hope this helps.

Regards,


Toi B Wright
 
Old September 4th, 2010, 09:03 AM
Registered User
 
Join Date: Sep 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Don't work in Firefox

I got it working in IE but it still don't work in firefox.
 
Old September 17th, 2010, 11:28 PM
Registered User
 
Join Date: Sep 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

。。louzhujiayou
 
Old January 17th, 2011, 12:55 PM
Registered User
Points: 11, Level: 1
Points: 11, Level: 1 Points: 11, Level: 1 Points: 11, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have the same problem - what is the workaround? If with a simple program there are browser problems what chances of getting something more complex to work
 
Old January 17th, 2011, 03:54 PM
Authorized User
Points: 66, Level: 1
Points: 66, Level: 1 Points: 66, Level: 1 Points: 66, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2010
Location: Dallas, TX
Posts: 18
Thanks: 0
Thanked 1 Time in 1 Post
Default Chapter 1 for FireFox

This is the corrected code that will work on all of the non-Microsoft browsers:

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>Hello World</title>
    <style type="text/css">
        h1
        {
            color: Blue;
        }
    </style>
    <script type="text/javascript">
        function ShowSelection() {
            alert('You have selected ' + document.getElementById("SelectColor").value);
            document.getElementById("BodyContent").style.backgroundColor = document.getElementById("SelectColor").value;
        }
    </script>
</head>
<body>
    <div id="BodyContent">
        <h1>
            Hello World</h1>
        <h2>
            Welcome</h2>
        This is my first web page.
        <hr />
        Please select a color:
        <select id="SelectColor">
            <option value="white">white</option>
            <option value="silver">silver</option>
            <option value="yellow">yellow</option>
        </select>
        <input id="ButtonSelect" type="button" value="Select" onclick="ShowSelection();" />
    </div>
</body>
</html>
 
Old January 31st, 2012, 08:18 AM
Sirajee
Guest
 
Posts: n/a
Default Best way to books shopping deals

The Nook Color Tablet from Barnes and Noble is one such e-reader that was one of the first in bringing technology to the world of books. This device has many features that make it a great buy, at a very competitive price.

http://shoppingfordealsonline.com/books/




Similar Threads
Thread Thread Starter Forum Replies Last Post
Javascript isnt work well on my aspx page msbsam ASP.NET 2.0 Professional 1 July 11th, 2008 08:00 AM
Chapter 1 Ctrl+F5 don't work, F5 does work? jimboak BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 7 June 29th, 2008 03:46 AM
Hour Diff in javascript doen's work well gabrieldcr2 Javascript 1 April 3rd, 2008 12:47 AM
javaScript function in asp.net not work in firefox rsanuj ASP.NET 1.x and 2.0 Application Design 1 February 8th, 2007 11:37 AM
Javascript fdoesnt work.. vanjamier Pro JSP 1 February 8th, 2005 05:53 PM





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