Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: *.wcs error

$
0
0
Re: *.wcs error
FoxInCloud
Re: *.wcs error
Jul. 15, 2013
09:32 am
3TZ0KGKN1Show this entire thread in new window
Gratar Image based on email address
From:FoxInCloud support
To:Rick Strahl
Rick,

original post was misplaced in the FoxInCloud section, I moved it to the 'wc5' section

This question was WC-only, found a weird behavior when using WC scripting

I use Sublime Text, which by default uses Unix line endings.
In this situation, .wcs produces the related error.

might be useful to test for chr(10) instead of chr(13)

Are you doing any browser detection based on the user agent string and using special handling for IE? If so, IE10 is DOM compliant so a lot of the things that required special handling in IE previous now work the same as they do in other browsers - things like selection, event hookups and a few others specifically.

Tuvia, what happens if you switch IE 10 into IE 9 compatibility mode with the F12 IE browser tools? Maybe it works then and that will give you a clue maybe as to what the problem is.

+++ Rick ---



Hi Rick,

Never used *.wcs before, found this strange error:

this source:

<!doctype html><html><head><title>OFUG, client static, server dynamic</title><styletype="text/css"> body {font-family: verdana;} /* document-level directive, applies to any contained element */ h1 {font-weight: bold;} /* header level 1 directive */ p.OFUG {font-style: italic;} /* directive for paragraph(s) having class="* OFUG *" */ h2{font-type:none;}</style></head><body><h1>My First Heading</h1><pid="par1">My first paragraph <b>with server Date-time: <%= DateTime()%></b>.</p><% SELECT TOP 3 *; from tastrade!customer; order by company_name; into cursor query scan %><p>- <%=trim(company_name)%></p><% endscan use %><p>My second paragraph.</p><p>My third paragraph.</p></body></html>

converts into:

LOCAL CRLF CRLF = CHR(13) + CHR(10) _out = [] Response.Write([<!doctype html>]+ CRLF +;[<html>]+ CRLF +;[ <head>]+ CRLF +;[ <title>OFUG, client static, server dynamic</title>]+ CRLF +;[ <style type="text/css">]+ CRLF +;[ body {font-family: verdana;} /* document-level directive, applies to any ] + ;[contained element */]+ CRLF +;[ h1 {font-weight: bold;} /* header level 1 directive */]+ CRLF +;[ p.OFUG {font-style: italic;} /* directive for paragraph(s) having class="* ] + ;[OFUG *" */]+ CRLF +;[ h2{font-type:none;}]+ CRLF +;[ </style>] + CRLF ) Response.Write([ </head>]+ CRLF +;[ <body>]+ CRLF +;[ <h1>My First Heading</h1>]+ CRLF +;[ <p id="par1">My first paragraph <b>with server Date-time: ]) Response.Write(TRANSFORM( EVALUATE([ DateTime()]) )) Response.Write([</b>.</p> ]) && /!\ syntax errorSELECTTOP 3 *;from tastrade!customer;order by company_name; into cursorqueryscan Response.Write([<p>- ]) && /!\ syntax error Response.Write(TRANSFORM( EVALUATE([trim(company_name)]) )) Response.Write([</p> ]) && /!\ syntax errorendscan use Response.Write([<p>My second paragraph.</p><p>My third paragraph.</p></body></html>]) && /!\ syntax error

any clue?




Thierry Nivelet (FoxInCloud)
Never explain, never complain (Queen Elizabeth II) - ban but and not


Viewing all articles
Browse latest Browse all 10393

Trending Articles