Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > BOOK: ASP.NET 4 24-Hour Trainer
Password Reminder
Register
Register | FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old September 2nd, 2010, 07: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?
  #2 (permalink)  
Old September 3rd, 2010, 10: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
  #3 (permalink)  
Old September 4th, 2010, 10: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.
  #4 (permalink)  
Old September 18th, 2010, 12:28 AM
Registered User
 
Join Date: Sep 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

。。louzhujiayou
  #5 (permalink)  
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
  #6 (permalink)  
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>
  #7 (permalink)  
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/
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 09: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 04:46 AM
Hour Diff in javascript doen's work well gabrieldcr2 Javascript 1 April 3rd, 2008 01: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



All times are GMT -4. The time now is 05:35 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.