Wrox Programmer Forums
|
BOOK: Beginning Dreamweaver MX/MX 2004 MX ISBN: 978-0-7645-4404-0; MX 2004 ISBN: 978-0-7645-5524-4
This is the forum to discuss the Wrox book Beginning Dreamweaver MX by Charles E. Brown, Imar Spaanjaars, Todd Marks; ISBN: 9780764544040
Please indicate which version of the book you are using when posting questions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Dreamweaver MX/MX 2004 MX ISBN: 978-0-7645-4404-0; MX 2004 ISBN: 978-0-7645-5524-4 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 January 16th, 2004, 07:17 AM
Authorized User
 
Join Date: Sep 2003
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default on error resume next

Hi Imar

me again - different issue this time... I have been trying to upload my footie project site to free space at Brinkster. All is fine until it comes to the events page and I get this message from them:

The improper use of 'on error resume next' was noted. Comment out the 'on error...' directive of the offending file and reupload it.

here is the code in that file [I get the same error message for the viewEventDetails file]

<SCRIPT runat=SERVER language=VBSCRIPT>
function DoDateTime(str, nNamedFormat, nLCID)
    dim strRet
    dim nOldLCID

    strRet = str
    If (nLCID > -1) Then
        oldLCID = Session.LCID
    End If

    On Error Resume Next

    If (nLCID > -1) Then
        Session.LCID = nLCID
    End If

    If ((nLCID < 0) Or (Session.LCID = nLCID)) Then
        strRet = FormatDateTime(str, nNamedFormat)
    End If

    If (nLCID > -1) Then
        Session.LCID = oldLCID
    End If

    DoDateTime = strRet
End Function
</SCRIPT>


Have you any idea why they would be objecting to this, and any ways to get around the problem?

Thanks again in advance
Anne
:)

 
Old January 16th, 2004, 08:14 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hmmm, they only reason I can think of is that they want to stop you from running bad scripts, that keep running without crashing.

Maybe it's to prevent attackers from executing loads of "bad code" without the script being ended.

However, to be sure, you should ask them ;)

I think you can just comment out the On Error line, as the error message suggested......


Cheers,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old January 16th, 2004, 08:16 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

http://www.brinkster.com/Articles/AS...ResumeNext.asp
 
Old January 19th, 2004, 08:15 AM
Authorized User
 
Join Date: Sep 2003
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default

many thanks, both Imar and Phil, for your help :-)

Anne






Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert Query Error & Run-Time Error 3022 DavidWE Access 1 July 31st, 2008 11:17 AM
Resume Uploading And Downloading sumith ASP.NET 1.0 and 1.1 Professional 0 May 24th, 2007 01:40 AM
the e of resume humayunlalzad BOOK: Beginning XML 3rd Edition 1 November 2nd, 2006 08:07 AM
what is "on error resume next" silver_cuts Classic ASP Basics 2 June 29th, 2004 04:38 AM
On Error Resume Next? jaucourt Beginning VB 6 1 July 10th, 2003 06:31 AM





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