Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Search Forums
Password Reminder
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 500
Search took 0.03 seconds.
Search: Posts Made By: ChrisScott
Forum: XML May 31st, 2007, 10:55 AM
Replies: 2
Views: 1,835
Posted By ChrisScott
Hi Jason, responseXML returns a dom...

Hi Jason,

responseXML returns a dom containing the parsed response, you should be able to do something like...

Set oDom = objServerHTTP.responseXML
If oDom.parseError <> 0 Then
Response.Write...
Forum: Javascript May 24th, 2007, 09:31 AM
Replies: 1
Views: 2,377
Posted By ChrisScott
The following code creates an array of factorial...

The following code creates an array of factorial 1 to 5...

var facs = [1];
for(var i = 2; i < 6; i++){
facs[i - 1] = facs[i - 2] * i;
}

HTH,

Chris
Forum: Classic ASP Basics May 21st, 2007, 09:53 AM
Replies: 7
Views: 1,898
Posted By ChrisScott
You can use Execute() in ASP to generate...

You can use Execute() in ASP to generate variables:

For i = 1 To 5
Execute "var" & i & " = " & i
Execute "Response.Write var" & i & " & ""<br>"""
Next
Forum: MySQL May 11th, 2007, 10:39 AM
Replies: 5
Views: 1,527
Posted By ChrisScott
Hi David, This should do the trick... ...

Hi David,

This should do the trick...

SELECT listing.listingid FROM listing
WHERE listing.available = 1 AND
listing.listingid NOT IN(SELECT DISTINCT itemnumber FROM paypal_payment_info);
...
Forum: Classic ASP Professional February 12th, 2007, 06:04 AM
Replies: 6
Views: 3,005
Posted By ChrisScott
Hi Matt, I found that your sort method did...

Hi Matt,

I found that your sort method did not work correctly, replacing it with the following made the code work for me...

Function sortIt(ar)
For j = 0 To UBound(ar) - 1
For i = j + 1 To...
Forum: XML February 8th, 2007, 03:07 PM
Replies: 5
Views: 10,424
Posted By ChrisScott
Hi Manish, Have you tried setting the...

Hi Manish,

Have you tried setting the content type and charset in your asp page generating xml as well?

Response.ContentType = "text/xml"
Response.CharSet = "ISO-8859-1"

HTH,

Chris
Forum: Javascript How-To February 6th, 2007, 10:25 AM
Replies: 1
Views: 1,720
Posted By ChrisScott
(I3 * 12) + U3 + (S3 < 1 ? 0 : (S3 - K3) / 3) ...

(I3 * 12) + U3 + (S3 < 1 ? 0 : (S3 - K3) / 3)

HTH,

Chris
Forum: Classic ASP Databases February 1st, 2007, 06:26 AM
Replies: 5
Views: 1,014
Posted By ChrisScott
The result set will not be random, as if you run...

The result set will not be random, as if you run the query twice it will return the same result set. This may change as the data in your database changes as the db will just fetch the records and...
Forum: Classic ASP Databases January 31st, 2007, 06:47 AM
Replies: 5
Views: 1,014
Posted By ChrisScott
You are only ordering your query by total and not...

You are only ordering your query by total and not by ID in any way, therefore the order of the ID's returned will be unpredictable.

How do you want to order your results?

Cheers,

Chris
Forum: Classic ASP Basics January 30th, 2007, 01:42 PM
Replies: 3
Views: 797
Posted By ChrisScott
Hi Magen, You can use the Server.URLEncode...

Hi Magen,

You can use the Server.URLEncode method for this...

customerName = "bd&ef"
url = "http://test.com/my.asp?customername=" & Server.URLEncode(customerName)

HTH,

Chris
Forum: MySQL January 30th, 2007, 06:34 AM
Replies: 2
Views: 799
Posted By ChrisScott
Hi Mark, "desc" is a reserved word in MySQL...

Hi Mark,

"desc" is a reserved word in MySQL and therefore, IMHO not a very good choice for a column name.

You should be able to get the query working by surrounding desc with `, e.g. SET `desc`...
Forum: HTML Code Clinic January 10th, 2007, 08:05 AM
Replies: 3
Views: 563
Posted By ChrisScott
Yes, but they cannot be embedded within each...

Yes, but they cannot be embedded within each other.

HTH,

Chris
Forum: HTML Code Clinic November 29th, 2006, 08:16 AM
Replies: 2
Views: 13,523
Posted By ChrisScott
You can use the table-layout style attribute for...

You can use the table-layout style attribute for this...

<table style="table-layout: fixed;">
<tr>
<td style="width: 50px;">averylongwordthatstretchesthetable</td>
</tr>
</table>

HTH,
Forum: Classic ASP Databases November 14th, 2006, 02:09 PM
Replies: 2
Views: 1,149
Posted By ChrisScott
Try " Where Last_Name LIKE '%" & l_name & "%'...

Try
" Where Last_Name LIKE '%" & l_name & "%' "
HTH,

Chris
Forum: MySQL November 8th, 2006, 07:43 AM
Replies: 2
Views: 725
Posted By ChrisScott
UPDATE stats SET views = views + 1 WHERE id = 3; ...

UPDATE stats SET views = views + 1 WHERE id = 3;
HTH,

Chris
Forum: Ajax November 8th, 2006, 06:02 AM
Replies: 1
Views: 1,839
Posted By ChrisScott
IE7 native XMLHttpRequest object

Hi All...

IE7 now supports native xmlhttp which is very nice.

Does anyone know whether there is native support for creating doms e.g. like mozillas document.implementation.createDocument()?
...
Forum: Classic ASP Basics September 21st, 2006, 08:51 AM
Replies: 4
Views: 1,969
Posted By ChrisScott
Hi Chris, Just replace any apostrophes (')...

Hi Chris,

Just replace any apostrophes (') with two apostrophes ('').

HTH,

Chris
Forum: Classic ASP XML August 31st, 2006, 09:14 AM
Replies: 2
Views: 3,347
Posted By ChrisScott
Hi Melissa, Is their browser set up to...

Hi Melissa,

Is their browser set up to "script ActiveX controls marked safe for scripting"?

This setting can be found under tools -> internet options -> security -> custom level

HTH,

Chris
Forum: Javascript How-To August 2nd, 2006, 05:03 AM
Replies: 1
Views: 2,895
Posted By ChrisScott
window.opener.location.reload(); Should do the...

window.opener.location.reload();
Should do the trick.

HTH,

Chris
Forum: Ajax August 1st, 2006, 11:42 AM
Replies: 0
Views: 778
Posted By ChrisScott
Safari attribute names getting lowercased

Hello All, TIA of your help.

I am currently working on an existing AJAX project and am updating it to work with Safari.

Any attribute names I have in my XML documents get converted to lowercase...
Forum: Classic ASP Professional June 29th, 2006, 06:01 AM
Replies: 1
Views: 1,988
Posted By ChrisScott
You could create a variable to store the address...

You could create a variable to store the address and then compare the new address to it each time you loop...

Dim storeAddress: storeAddress = ""
Do Until rs.EOF
Dim address: address =...
Forum: Javascript June 29th, 2006, 03:02 AM
Replies: 1
Views: 11,627
Posted By ChrisScott
One way would be something like... ...

One way would be something like...

window.onload = new Function("myFunc('x', 'y', 'z');");

function myFunc(a, b, c){
alert(a + b + c);
}

HTH,
Forum: Classic ASP Basics June 27th, 2006, 07:09 AM
Replies: 3
Views: 844
Posted By ChrisScott
Hi Gandalf :-) No problem... Personally...

Hi Gandalf :-)

No problem...

Personally I would only allow that user to read / write files you really want them to be able to - locking this down to a minimum increases your security.

Best...
Forum: Classic ASP Basics June 27th, 2006, 05:12 AM
Replies: 3
Views: 844
Posted By ChrisScott
Have you assigned read / write permissions to the...

Have you assigned read / write permissions to the IUSR_[yourMachineName] account (you should be able to check this in windows explorer etc)?

HTH,

Chris
Forum: MySQL June 22nd, 2006, 08:43 AM
Replies: 1
Views: 971
Posted By ChrisScott
If you are using VBScript, you can use the...

If you are using VBScript, you can use the DateDiff() method.

HTH,

Chris
Showing results 1 to 25 of 500

 


All times are GMT -4. The time now is 09:42 PM.


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