Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Search Forums
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the 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
Showing results 1 to 25 of 238
Search took 0.04 seconds.
Search: Posts Made By: PeterPeiGuo
Forum: ASP.NET 3.5 Basics May 19th, 2010, 04:49 PM
Replies: 10
Views: 1,561
Posted By PeterPeiGuo
var pc = 10 / 3; ...

var pc = 10 / 3;
Console.WriteLine(pc.GetType());
Forum: BOOK: Beginning JavaScript and CSS Development with jQuery May 16th, 2010, 05:05 PM
Replies: 8
Views: 5,755
Posted By PeterPeiGuo
Thanks for your detailed reply, Richard! True,...

Thanks for your detailed reply, Richard!

True, I should have used 'this', otherwise the node is looked up again and it is bad for performance.

Talking about the logic, this is actually a typical...
Forum: BOOK: Beginning JavaScript and CSS Development with jQuery May 16th, 2010, 11:33 AM
Replies: 8
Views: 5,755
Posted By PeterPeiGuo
I thought to double check whether attr("checked")...

I thought to double check whether attr("checked") would return string if checked attribute is preset to a string, like "checked", "foo" or "bar", so I tried the following. The good news is that the...
Forum: BOOK: Beginning JavaScript and CSS Development with jQuery May 15th, 2010, 03:29 PM
Replies: 8
Views: 5,755
Posted By PeterPeiGuo
If you change that alert statement in my demo...

If you change that alert statement in my demo code to the following, you can observe the type of the return value, and it is straight boolean in all major browsers (IE7, IE8, Opera, Firefox, Chrome,...
Forum: BOOK: Beginning JavaScript and CSS Development with jQuery May 15th, 2010, 03:13 PM
Replies: 8
Views: 5,755
Posted By PeterPeiGuo
Richard thanks for your reply. I knew that some...

Richard thanks for your reply.

I knew that some people dealing with checkboxes your way, but the way in the original post is correct. You can verify that by running the following, and it worked fine...
Forum: BOOK: Beginning JavaScript and CSS Development with jQuery May 14th, 2010, 07:33 PM
Replies: 8
Views: 5,755
Posted By PeterPeiGuo
IE 7/jquery 1.4.2 checkbox issue

We have a web page that contains a set of check boxes that represent different taxes. There is logic between those taxes, for example, if you charge tax1, you must also charge tax2, etc., and we use...
Forum: BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143 May 11th, 2010, 09:59 PM
Replies: 2
Views: 829
Posted By PeterPeiGuo
The first thing you would look into, in this kind...

The first thing you would look into, in this kind of situation, is the value of $sql at the time you pass it to mysql_query(). If you need more help, please post the value of $sql.
Forum: ASP.NET 3.5 Professionals May 5th, 2010, 11:44 PM
Replies: 2
Views: 1,453
Posted By PeterPeiGuo
Thanks for your reply! I thought the same way...

Thanks for your reply!

I thought the same way and that's what I feared - this way, code is a bit messier than what I would like...

Another obvious option is to carry the data as URL parameters....
Forum: ASP.NET 3.5 Professionals May 5th, 2010, 07:51 PM
Replies: 2
Views: 1,453
Posted By PeterPeiGuo
How to use PostBackUrl in pages that currently rely on Response.Redirect (heavily)?

I am changing some existing ASP.Net pages. Those pages heavily rely on Response.Redirect. Now I need to carry data between pages, and one obvious option is to change each Response.Redirect to...
Forum: Visual Studio 2005 April 28th, 2010, 04:28 PM
Replies: 2
Views: 628
Posted By PeterPeiGuo
Take a look at .Net DateTime class. If you have...

Take a look at .Net DateTime class. If you have more specific questions, feel free to get back.
Forum: BOOK: Professional DotNetNuke Module Programming ISBN: 978-0-470-17116-5 April 27th, 2010, 11:03 AM
Replies: 5
Views: 9,117
Posted By PeterPeiGuo
Put either ToolkitScriptManager or ScriptManager...

Put either ToolkitScriptManager or ScriptManager on your web page, and both of them work with 3.5. ToolkitScriptManager gives you extra benefits such as combining javascript etc.
Forum: BOOK: Beginning ASP.NET 4 : in C# and VB April 26th, 2010, 10:47 PM
Replies: 2
Views: 851
Posted By PeterPeiGuo
The following works in both IE 8 and FF (if you...

The following works in both IE 8 and FF (if you still have issue, please post your entire html):

<!DOCTYPE html>
<html>
<head>
<script...
Forum: BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143 April 26th, 2010, 09:13 PM
Replies: 2
Views: 888
Posted By PeterPeiGuo
Post your code, and we can easily figure out the...

Post your code, and we can easily figure out the issue.

The code I have is (which works for FF):

<html>
<head>
<title>My First PHP Program</title>
</head>
<body>
<?php
Forum: C++ Programming April 25th, 2010, 01:51 PM
Replies: 2
Views: 1,205
Posted By PeterPeiGuo
Store exchange rate in an array, that makes the...

Store exchange rate in an array, that makes the code neat: (The following is good enough as a simple example. In real life you obviously need to validate the input etc.)

#include...
Forum: BOOK Beginning CSS: Cascading Style Sheets for Web Design, 2nd Ed; ISBN: 978-0-470-09697-0 April 24th, 2010, 12:50 PM
Replies: 10
Views: 3,766
Posted By PeterPeiGuo
I took a look at this in IE8 (both with and...

I took a look at this in IE8 (both with and without compatibility view), Firefox, Opera, Safari and Chrome on Vista. they all showing the same result, and all looked correct.
Forum: C# 2005 April 24th, 2010, 12:28 AM
Replies: 3
Views: 1,633
Posted By PeterPeiGuo
The following code only "new" the array, but not...

The following code only "new" the array, but not the individual element of the array:

XmlTextReader[] r;
r = new XmlTextReader [2];


To "new" an element, you do the following:

r[0] = new...
Forum: C# 2005 April 24th, 2010, 12:03 AM
Replies: 3
Views: 1,633
Posted By PeterPeiGuo
Take a look at the below examples. When you...

Take a look at the below examples. When you declare, you only declare that a variable is an array of some type, and you can decide its size in the same statement like the first example, or you can...
Forum: BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143 April 21st, 2010, 10:18 PM
Replies: 7
Views: 1,531
Posted By PeterPeiGuo
Search on-line for something like "windows set...

Search on-line for something like "windows set environment variable" (assume you use windows), some of the search results will for sure lead you to pages that show you how to set environment...
Forum: ASP.NET 3.5 Basics April 20th, 2010, 04:22 AM
Replies: 1
Views: 2,990
Posted By PeterPeiGuo
Believe it or not "object expected" is a very...

Believe it or not "object expected" is a very common error, especially during development.

Please post the script and also point out the line against which the error was reported. If you know how to...
Forum: ASP.NET 2.0 Professional April 20th, 2010, 01:03 AM
Replies: 1
Views: 1,494
Posted By PeterPeiGuo
There are several ways this can be set. For...

There are several ways this can be set. For example, you can append the following at the end your URL: ?Code=foo, which will set Request.Item("Code") to "foo".

Check the on-line document for...
Forum: PHP How-To April 18th, 2010, 04:17 PM
Replies: 2
Views: 2,257
Posted By PeterPeiGuo
From your command window, run echo %PATH% Take a...

From your command window, run
echo %PATH%
Take a look at the output, you should be able to find your PHP installation directory there.

Search online for something like "set windows environment...
Forum: Visual Basic 2008 Essentials April 17th, 2010, 01:56 PM
Replies: 2
Views: 676
Posted By PeterPeiGuo
Math.Floor can give you the integer part of the...

Math.Floor can give you the integer part of the double, and then a simple minus should give you the decimal part.
Module Module1

Sub Main()
Dim d As Double = 123.456
Dim i As...
Forum: BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143 April 16th, 2010, 11:13 AM
Replies: 8
Views: 1,686
Posted By PeterPeiGuo
Great to hear! Enjoy!

Great to hear! Enjoy!
Forum: BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143 April 15th, 2010, 09:15 PM
Replies: 8
Views: 1,686
Posted By PeterPeiGuo
Talking about installation, XAMPP is certainly...

Talking about installation, XAMPP is certainly easier.
Forum: BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143 April 15th, 2010, 12:20 PM
Replies: 8
Views: 1,686
Posted By PeterPeiGuo
Let's get to the bottom of this. More information...

Let's get to the bottom of this. More information needed in order to help you:
1) What is not working? Do you get any error? if so, What's the exact error?
2) Your sample code that's not working
3)...
Showing results 1 to 25 of 238

 


All times are GMT -4. The time now is 01:14 AM.


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