I have the following javascript function that updates a scroll_list and
sends the updated entry (with its index) to a server script
( i.e. http://mkmxg00/cgi/confirmUpload.pl ) for further processing:
function saveText( scroll_list, t_area, listToBeUpdated ) {
scroll_list.options[scroll_list.selectedIndex].text = t_area.text;
scroll_list.options[scroll_list.selectedIndex].value= t_area.value;
var req;
var url = "http://mkmxg00/cgi/confirmUpload.pl";
if ( window.XMLHttpRequest ) {
try {
req = new XMLHttpRequest();
}
catch( e ) {
req = false;
}
}
else if ( window.ActiveXObject ) {
try {
req = new ActiveXObject( "Msxml2.XMLHTTP" );
}
catch( e ) {
try {
req = new ActiveXObject( "Microsoft.XMLHTTP" );
}
catch( e ) {
req = false;
}
}
if ( req ) {
req.onreadystatechange = processReqChange;
req.open( "POST", url, true );
// req.send( null );
req.send( "client side" );
req.send( "2nd piece of data from client side: " + i + "\n" );
}
}
}
function processReqChange() {
alert( req.readyState );
if ( req.readyState == 4 ) {
if ( req.status == 200 ) {
// process the response if successful
alert( "passed!" );
}
}
else {
alert( req.readyState + ", " + req.status );
}
}
I tried the following reference: http://www.xml.com/pub/a/2005/02/09/...p-request.html
My questions:
1) what caused the "unterminated string constant error"? I don't see any
', \r, etc in my javascript variables.
2) If I want to send() to the server the scroll_list option, and that
option's index to the server script http://mkmxg00/cgi/confirmUpload.pl
for further processing, am I using send() correctly? If not, please
correct by providing an example. 18 7302
William wrote: [...] if ( req ) { req.onreadystatechange = processReqChange; req.open( "POST", url, true );
XMLHttpRequest.prototype.open() is described to clear all event listeners,
so you should switch the order of the last two statements.
<URL:http://xulplanet.com/references/objref/XMLHttpRequest.html#method_open>
// req.send( null );
req.send( "client side" ); req.send( "2nd piece of data from client side: " + i + "\n" ); } [...] I tried the following reference: http://www.xml.com/pub/a/2005/02/09/...p-request.html
You better look at the source: see
<URL:http://msdn.microsoft.com/library/en-us/xmlsdk/html/7924f6be-c035-411f-acd2-79de7a711b38.asp>
and the URI above.
My questions: 1) what caused the "unterminated string constant error"? I don't see any ', \r, etc in my javascript variables.
The code you posted is syntactically correct. The error must be elsewhere.
Since you did not post how you call the saveText() method, it is possible
that the method call creates the problem.
<URL:http://jibbering.com/faq/#FAQ4_43>
2) If I want to send() to the server the scroll_list option, and that option's index to the server script http://mkmxg00/cgi/confirmUpload.pl for further processing, am I using send() correctly?
No. It does not make sense to make several independent asynchronous POST
requests to the same resource without changing the event listener. You
should get informed about HTTP; read RFC1945 and RFC2616.
If not, please correct by providing an example.
req.send(
"client side"
+ "2nd piece of data from client side: " + i + "\n");
BTW: This is the fourth thread started by you dealing with the same main
problem. I would appreciate it -- and I am sure I am not the only one here
-- if you would not start a new thread unless the main problem to be solved
changes significantly; instead please continue the existing thread (post a
followup). RT[fp]ineM or use a newsreader application that you can handle
instead.
PointedEars
On Tue, 24 Jan 2006, Thomas 'PointedEars' Lahn wrote: William wrote:
[...] if ( req ) { req.onreadystatechange = processReqChange; req.open( "POST", url, true ); XMLHttpRequest.prototype.open() is described to clear all event listeners, so you should switch the order of the last two statements.
I switched the order of the last 2 statements. Unfortunately I got the
same error. <URL:http://xulplanet.com/references/objref/XMLHttpRequest.html#method_open>
// req.send( null );
req.send( "client side" ); req.send( "2nd piece of data from client side: " + i + "\n" ); } [...] I tried the following reference: http://www.xml.com/pub/a/2005/02/09/...p-request.html You better look at the source: see
<URL:http://msdn.microsoft.com/library/en-us/xmlsdk/html/7924f6be-c035-411f-acd2-79de7a711b38.asp>
and the URI above.
i have already read this MSDN reference before posting. My questions: 1) what caused the "unterminated string constant error"? I don't see any ', \r, etc in my javascript variables.
The code you posted is syntactically correct. The error must be elsewhere. Since you did not post how you call the saveText() method, it is possible that the method call creates the problem.
saveText() was called in the following 2 places:
print $query->td(
$query->textarea(-name=>'BOFOTickers'),
$query->p,
$query->button(-name=>'ADD',
-value=>'Confirm Modifications',
-onClick=>"saveText( this.form.bo_fo_tickers,
this.form.BOFOTickers, this.form.bo_fo_tickers )"),
$query->button(-name=>'REMOVE',
-value=>'Edit Selected Entry',
-onClick=>"edit(this.form.bo_fo_tickers,
this.form.BOFOTickers)"));
print $query->td(
$query->textarea(-name=>'BOFOEmails'),
$query->p,
$query->button(-name=>'ADD',
-value=>'Confirm Modifications',
-onClick=>"saveText( this.form.bo_fo_emails,
this.form.BOFOEmails, this.form.bo_fo_emails )"),
$query->button(-name=>'REMOVE',
-value=>'Edit Selected Entry',
-onClick=>"edit( this.form.bo_fo_emails,
this.form.BOFOEmails)"));
<URL:http://jibbering.com/faq/#FAQ4_43>
also read this URL before posting; but the line number and character given
in the javascript error message is wrong - it refers to an unrelated place
in my source code file.
The error is intermittent - sometimes even when the page loads up, I got
the same javascript unterminated string constant error.
William wrote: On Tue, 24 Jan 2006, Thomas 'PointedEars' Lahn wrote: William wrote: [...] if ( req ) { req.onreadystatechange = processReqChange; req.open( "POST", url, true );
XMLHttpRequest.prototype.open() is described to clear all event listeners, so you should switch the order of the last two statements.
I switched the order of the last 2 statements. Unfortunately I got the same error.
It was a Good Thing anyway. [...] My questions: 1) what caused the "unterminated string constant error"? I don't see any ', \r, etc in my javascript variables.
The code you posted is syntactically correct. The error must be elsewhere. Since you did not post how you call the saveText() method, it is possible that the method call creates the problem.
saveText() was called in the following 2 places:
[probably server-side code]
Whatever this is, it is not JS/ECMAScript. Post client-side code if you
have a problem with client-side scripting, and post only JS/ECMAScript code
here. <URL:http://jibbering.com/faq/#FAQ4_43> also read this URL before posting; but the line number and character given in the javascript error message is wrong - it refers to an unrelated place in my source code file.
Of course it is wrong. It is referring to the generated (client-side) code,
not the generating (server-side) one.
PointedEars
On Wed, 25 Jan 2006, Thomas 'PointedEars' Lahn wrote:
[...] <URL:http://jibbering.com/faq/#FAQ4_43> also read this URL before posting; but the line number and character given in the javascript error message is wrong - it refers to an unrelated place in my source code file.
Of course it is wrong. It is referring to the generated (client-side) code, not the generating (server-side) one.
"unterminated string constant javascript error" occured on line 99,
character 5.
The client-side code would be the HTML page. But I tried view->source
from my brower, and my HTML code has only 48 lines. So where is this
"line 99, character 5" come from?
William said the following on 1/25/2006 10:36 AM: On Wed, 25 Jan 2006, Thomas 'PointedEars' Lahn wrote:
[...]
<URL:http://jibbering.com/faq/#FAQ4_43> also read this URL before posting; but the line number and character given in the javascript error message is wrong - it refers to an unrelated place in my source code file.
Of course it is wrong. It is referring to the generated (client-side) code, not the generating (server-side) one.
"unterminated string constant javascript error" occured on line 99, character 5.
The client-side code would be the HTML page. But I tried view->source from my brower, and my HTML code has only 48 lines. So where is this "line 99, character 5" come from?
Do you have any external .css files or .js files referenced? Those lines
of code will be included when counting line numbers. The same as if you
had not used external files but pasted the contents into the HTML file.
If not, then post a URL to a sample page that shows the error.
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
On Wed, 25 Jan 2006, Randy Webb wrote: William said the following on 1/25/2006 10:36 AM: On Wed, 25 Jan 2006, Thomas 'PointedEars' Lahn wrote:
[...]
> <URL:http://jibbering.com/faq/#FAQ4_43> also read this URL before posting; but the line number and character given in the javascript error message is wrong - it refers to an unrelated place in my source code file.
Of course it is wrong. It is referring to the generated (client-side) code, not the generating (server-side) one. "unterminated string constant javascript error" occured on line 99, character 5.
The client-side code would be the HTML page. But I tried view->source from my brower, and my HTML code has only 48 lines. So where is this "line 99, character 5" come from?
Do you have any external .css files or .js files referenced? Those lines of code will be included when counting line numbers. The same as if you had not used external files but pasted the contents into the HTML file.
No .css nor .js files referenced.
If not, then post a URL to a sample page that shows the error. http://mkmxg00/cgi/extra_desks_upload_list.pl
William said the following on 1/25/2006 11:00 AM: On Wed, 25 Jan 2006, Randy Webb wrote:
William said the following on 1/25/2006 10:36 AM: On Wed, 25 Jan 2006, Thomas 'PointedEars' Lahn wrote:
[...]
>> <URL:http://jibbering.com/faq/#FAQ4_43> > also read this URL before posting; but the line number and > character given > in the javascript error message is wrong - it refers to an > unrelated place > in my source code file.
Of course it is wrong. It is referring to the generated (client-side) code, not the generating (server-side) one.
"unterminated string constant javascript error" occured on line 99, character 5.
The client-side code would be the HTML page. But I tried view->source from my brower, and my HTML code has only 48 lines. So where is this "line 99, character 5" come from?
Do you have any external .css files or .js files referenced? Those lines of code will be included when counting line numbers. The same as if you had not used external files but pasted the contents into the HTML file.
No .css nor .js files referenced.
If not, then post a URL to a sample page that shows the error. http://mkmxg00/cgi/extra_desks_upload_list.pl
I get a Page Not Found for that URL.
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
William wrote: On Wed, 25 Jan 2006, Randy Webb wrote: William said the following on 1/25/2006 10:36 AM: On Wed, 25 Jan 2006, Thomas 'PointedEars' Lahn wrote: >> <URL:http://jibbering.com/faq/#FAQ4_43> > also read this URL before posting; but the line number and character > given in the javascript error message is wrong - it refers to an > unrelated place in my source code file. Of course it is wrong. It is referring to the generated (client-side) code, not the generating (server-side) one. "unterminated string constant javascript error" occured on line 99, character 5. The client-side code would be the HTML page. But I tried view->source from my brower, and my HTML code has only 48 lines. So where is this "line 99, character 5" come from? Do you have any external .css files or .js files referenced? Those lines of code will be included when counting line numbers. The same as if you had not used external files but pasted the contents into the HTML file.
No .css nor .js files referenced.
Is the generated source code valid markup (<URL:http://validator.w3.org/>)
Are there any other `link' or `script' elements in your client-side source
code? If yes, which ones? Which user agent(s) are you testing with (post
the name and version along with the value of navigator.userAgent)? If not, then post a URL to a sample page that shows the error.
http://mkmxg00/cgi/extra_desks_upload_list.pl
^^^^^^^
A _fully qualified_ domain name would have been helpful.
PointedEars
On Wed, 25 Jan 2006, Thomas 'PointedEars' Lahn wrote: William wrote:
On Wed, 25 Jan 2006, Randy Webb wrote: William said the following on 1/25/2006 10:36 AM: On Wed, 25 Jan 2006, Thomas 'PointedEars' Lahn wrote: >>> <URL:http://jibbering.com/faq/#FAQ4_43> >> also read this URL before posting; but the line number and character >> given in the javascript error message is wrong - it refers to an >> unrelated place in my source code file. > Of course it is wrong. It is referring to the generated (client-side) > code, not the generating (server-side) one. "unterminated string constant javascript error" occured on line 99, character 5. The client-side code would be the HTML page. But I tried view->source from my brower, and my HTML code has only 48 lines. So where is this "line 99, character 5" come from? Do you have any external .css files or .js files referenced? Those lines of code will be included when counting line numbers. The same as if you had not used external files but pasted the contents into the HTML file.
No .css nor .js files referenced.
Is the generated source code valid markup (<URL:http://validator.w3.org/>) Are there any other `link' or `script' elements in your client-side source code? If yes, which ones? Which user agent(s) are you testing with (post the name and version along with the value of navigator.userAgent)?
If not, then post a URL to a sample page that shows the error.
http://mkmxg00/cgi/extra_desks_upload_list.pl
^^^^^^^ A _fully qualified_ domain name would have been helpful. http://mkmxg00.cibg.tdbank.ca/cgi/ex...upload_list.pl
On Wed, 25 Jan 2006, Randy Webb wrote: William said the following on 1/25/2006 11:00 AM: On Wed, 25 Jan 2006, Randy Webb wrote:
William said the following on 1/25/2006 10:36 AM: On Wed, 25 Jan 2006, Thomas 'PointedEars' Lahn wrote:
[...]
>>> <URL:http://jibbering.com/faq/#FAQ4_43> >> also read this URL before posting; but the line number and character >> given >> in the javascript error message is wrong - it refers to an unrelated >> place >> in my source code file. > > Of course it is wrong. It is referring to the generated (client-side) > code, > not the generating (server-side) one.
"unterminated string constant javascript error" occured on line 99, character 5.
The client-side code would be the HTML page. But I tried view->source from my brower, and my HTML code has only 48 lines. So where is this "line 99, character 5" come from?
Do you have any external .css files or .js files referenced? Those lines of code will be included when counting line numbers. The same as if you had not used external files but pasted the contents into the HTML file.
No .css nor .js files referenced.
If not, then post a URL to a sample page that shows the error. http://mkmxg00/cgi/extra_desks_upload_list.pl
I get a Page Not Found for that URL.
my bad. please try: http://mkmxg00.cibg.tdbank.ca/cgi/ex...upload_list.pl
William said the following on 1/25/2006 11:48 AM: On Wed, 25 Jan 2006, Randy Webb wrote:
William said the following on 1/25/2006 11:00 AM: On Wed, 25 Jan 2006, Randy Webb wrote:
William said the following on 1/25/2006 10:36 AM: > On Wed, 25 Jan 2006, Thomas 'PointedEars' Lahn wrote: > > [...] > >>>> <URL:http://jibbering.com/faq/#FAQ4_43> >>> also read this URL before posting; but the line number and >>> character given >>> in the javascript error message is wrong - it refers to an >>> unrelated place >>> in my source code file. >> >> Of course it is wrong. It is referring to the generated >> (client-side) code, >> not the generating (server-side) one. > > "unterminated string constant javascript error" occured on line 99, > character 5. > > The client-side code would be the HTML page. But I tried > view->source from my brower, and my HTML code has only 48 lines. > So where is this "line 99, character 5" come from?
Do you have any external .css files or .js files referenced? Those lines of code will be included when counting line numbers. The same as if you had not used external files but pasted the contents into the HTML file.
No .css nor .js files referenced.
If not, then post a URL to a sample page that shows the error. http://mkmxg00/cgi/extra_desks_upload_list.pl
I get a Page Not Found for that URL.
my bad. please try: http://mkmxg00.cibg.tdbank.ca/cgi/ex...upload_list.pl
I still get a Page Not Found for that URL as well
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Thomas 'PointedEars' Lahn said the following on 1/25/2006 11:24 AM: Which user agent(s) are you testing with (post the name and version along with the value of navigator.userAgent)?
I don't see the wisdom in requesting the navigator.userAgent string when
it is widely known to be worthless for anything other than a place holder.
Browser name and version tells you more than the userAgent string could
ever be good for.
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Randy Webb said the following on 1/25/2006 12:00 PM: William said the following on 1/25/2006 11:48 AM: On Wed, 25 Jan 2006, Randy Webb wrote:
William said the following on 1/25/2006 11:00 AM: On Wed, 25 Jan 2006, Randy Webb wrote:
> William said the following on 1/25/2006 10:36 AM: >> On Wed, 25 Jan 2006, Thomas 'PointedEars' Lahn wrote: >> >> [...] >> >>>>> <URL:http://jibbering.com/faq/#FAQ4_43> >>>> also read this URL before posting; but the line number and >>>> character given >>>> in the javascript error message is wrong - it refers to an >>>> unrelated place >>>> in my source code file. >>> >>> Of course it is wrong. It is referring to the generated >>> (client-side) code, >>> not the generating (server-side) one. >> >> "unterminated string constant javascript error" occured on line >> 99, character 5. >> >> The client-side code would be the HTML page. But I tried >> view->source from my brower, and my HTML code has only 48 lines. >> So where is this "line 99, character 5" come from? > > Do you have any external .css files or .js files referenced? Those > lines of code will be included when counting line numbers. The same > as if you had not used external files but pasted the contents into > the HTML file.
No .css nor .js files referenced.
> If not, then post a URL to a sample page that shows the error. http://mkmxg00/cgi/extra_desks_upload_list.pl
I get a Page Not Found for that URL.
my bad. please try: http://mkmxg00.cibg.tdbank.ca/cgi/ex...upload_list.pl
I still get a Page Not Found for that URL as well
Have you tried testing the page in Mozilla? The error messages there
aren't as cryptic as IE Error Messages.
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
On Wed, 25 Jan 2006, Randy Webb wrote: Randy Webb said the following on 1/25/2006 12:00 PM: William said the following on 1/25/2006 11:48 AM: On Wed, 25 Jan 2006, Randy Webb wrote:
William said the following on 1/25/2006 11:00 AM: > On Wed, 25 Jan 2006, Randy Webb wrote: > >> William said the following on 1/25/2006 10:36 AM: >>> On Wed, 25 Jan 2006, Thomas 'PointedEars' Lahn wrote: >>> >>> [...] >>> >>>>>> <URL:http://jibbering.com/faq/#FAQ4_43> >>>>> also read this URL before posting; but the line number and character >>>>> given >>>>> in the javascript error message is wrong - it refers to an unrelated >>>>> place >>>>> in my source code file. >>>> >>>> Of course it is wrong. It is referring to the generated >>>> (client-side) code, >>>> not the generating (server-side) one. >>> >>> "unterminated string constant javascript error" occured on line 99, >>> character 5. >>> >>> The client-side code would be the HTML page. But I tried view->source >>> from my brower, and my HTML code has only 48 lines. So where is this >>> "line 99, character 5" come from? >> >> Do you have any external .css files or .js files referenced? Those >> lines of code will be included when counting line numbers. The same as >> if you had not used external files but pasted the contents into the >> HTML file. > > No .css nor .js files referenced. > >> If not, then post a URL to a sample page that shows the error. > http://mkmxg00/cgi/extra_desks_upload_list.pl
I get a Page Not Found for that URL.
my bad. please try: http://mkmxg00.cibg.tdbank.ca/cgi/ex...upload_list.pl
I still get a Page Not Found for that URL as well
Have you tried testing the page in Mozilla? The error messages there aren't as cryptic as IE Error Messages.
I don't get this javascript error in Firefox 1.0.7. -- Randy comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
On Wed, 25 Jan 2006, Thomas 'PointedEars' Lahn wrote: William wrote:
On Wed, 25 Jan 2006, Randy Webb wrote: William said the following on 1/25/2006 10:36 AM: On Wed, 25 Jan 2006, Thomas 'PointedEars' Lahn wrote: >>> <URL:http://jibbering.com/faq/#FAQ4_43> >> also read this URL before posting; but the line number and character >> given in the javascript error message is wrong - it refers to an >> unrelated place in my source code file. > Of course it is wrong. It is referring to the generated (client-side) > code, not the generating (server-side) one. "unterminated string constant javascript error" occured on line 99, character 5. The client-side code would be the HTML page. But I tried view->source from my brower, and my HTML code has only 48 lines. So where is this "line 99, character 5" come from? Do you have any external .css files or .js files referenced? Those lines of code will be included when counting line numbers. The same as if you had not used external files but pasted the contents into the HTML file. No .css nor .js files referenced.
Is the generated source code valid markup (<URL:http://validator.w3.org/>)
It did not. But I have trouble interpreting some of the error messages on http://validator.w3.org/check
e.g.
# Error Line 27 column 14: there is no attribute "NAME".
<frame name="banner" scrolling="no" noresize target="main"
marginwidth="0" mar
There *is* an attribute called "name".
Also, is
Error Line 46 column 6: end tag for "HTML" which is not
finished.
</html>
This is simply not true. View->Source gives: </html>
Are there any other `link' or `script' elements in your client-side source code? If yes, which ones? Which user agent(s) are you testing with (post the name and version along with the value of navigator.userAgent)?
script elements:
<SCRIPT LANGUAGE="JavaScript">
<!--
// Do this here to ensure that the last page to load is the secured.
// This will make sure that a login appears in case we need
authentication.
function refreshFrame() {
frames['main'].window.location.href = "/html/about.html";
}
-->
link elements:
if the user's brower does not support frames:
<p>This site uses frames, which, unfortunately are not supported by your
browser. For best results, please use:
<A HREF="http://www.microsoft.com/ie/">MS Internet Explorer</A>.
not really a link element, but a frame populated with another web page.
<frame name="navigation" target="main" marginwidth="0"
marginheight="0"
frameborder="no" src="/html/menus.html">
likewise:
<frame name="banner" scrolling="no" noresize target="main"
marginwidth="0" marginheight="0" frameborder="no" src="/jsp/banner.jsp">
and:
<frame name="main" frameborder="no" src="blank.html">
William wrote: On Wed, 25 Jan 2006, Thomas 'PointedEars' Lahn wrote: William wrote: On Wed, 25 Jan 2006, Randy Webb wrote: William said the following on 1/25/2006 10:36 AM: > "unterminated string constant javascript error" occured on line 99, > character 5. > The client-side code would be the HTML page. But I tried view->source > from my brower, and my HTML code has only 48 lines. So where is this > "line 99, character 5" come from? [...] Is the generated source code valid markup (<URL:http://validator.w3.org/>) It did not. But I have trouble interpreting some of the error messages on http://validator.w3.org/check
e.g. # Error Line 27 column 14: there is no attribute "NAME".
<frame name="banner" scrolling="no" noresize target="main" marginwidth="0" mar
There *is* an attribute called "name".
There is one for this element, declared in HTML 4.01 _Frameset_. Probably
your document does not include a DOCTYPE declaration before the root `html'
element, and so the Validator assumes HTML 4.01 Transitional in order to
continue validation tentatively. There is no `frame' element in the latter
HTML 4 variant, so no `name' attribute for that element.
Include
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
before
<html>
and Revalidate.
Also, is Error Line 46 column 6: end tag for "HTML" which is not finished.
</html>
This is simply not true. View->Source gives: </html>
The element is not considered finished because its content is not Valid.
Enable Verbose Output (check the checkbox and select Revalidate), read the
explanations and the FAQ they are pointing to. Are there any other `link' or `script' elements in your client-side source code? If yes, which ones? Which user agent(s) are you testing with (post the name and version along with the value of navigator.userAgent)? script elements:
Please always delimit new text from quoted text with an empty line, thanks.
<SCRIPT LANGUAGE="JavaScript">
Should be
<script type="text/javascript">
as the Validator also tells you.
<!--
Omit that, it is deprecated because it is no longer necessary (pre-3.2 HTML
is obsolete) and is error-prone. The Validator does not recognize this as
an error because it is properly delimiting a "comment declaration" in SGML.
However, a (disregarded) comment is not what you wanted the content of the
`script' element to be :)
// Do this here to ensure that the last page to load is the secured. // This will make sure that a login appears in case we need authentication. function refreshFrame() { frames['main'].window.location.href = "/html/about.html"; }
A bit more feature testing here is certainly a Good Thing:
function refreshFrame()
{
var f;
if (typeof window != "undefined"
&& (f = window.frames)
&& (f = f['main'])
&& f.location)
{
f.location = "/html/about.html";
}
}
-->
^
This is a syntax error. `--' is the decrement operator, a reference is
expected as its argument. Omit this line, see above.
link elements:
[...] <A HREF="http://www.microsoft.com/ie/">MS Internet Explorer</A>.
not really a link element, but a frame populated with another web page.
It is not "a frame populated with another web page" either. FYI, a `link'
element looks like this:
<link ...>
Although I doubt they can create this particular problem: Are there any
`style' elements?
<frame name="navigation" target="main" marginwidth="0" marginheight="0" frameborder="no" src="/html/menus.html">
likewise:
<frame name="banner" scrolling="no" noresize target="main" marginwidth="0" marginheight="0" frameborder="no" src="/jsp/banner.jsp">
and: <frame name="main" frameborder="no" src="blank.html">
It could also be code in either frame that is causing the error.
HTH
PointedEars
Thomas 'PointedEars' Lahn wrote: William wrote: <!-- Omit that, it is deprecated because it is no longer necessary (pre-3.2 HTML is obsolete) and is error-prone. The Validator does not recognize this as an error because it is properly delimiting a "comment declaration" in SGML.
While the latter is usually true, it does not apply here. In fact, the
content of the `script' element is CDATA, not PCDATA, in HTML. Which is
why the Validator's SGML parser is only looking for the End Tag Open
Delimiter </. It cannot recognize script syntax errors.
However, a (disregarded) comment is not what you wanted the content of the `script' element to be :)
Any SGML parser that regards this as a comment is broken. However,
any XML parser that regards this as a comment is working as designed.
Sorry for causing confusion.
PointedEars
William wrote: On Wed, 25 Jan 2006, Thomas 'PointedEars' Lahn wrote: William wrote: On Wed, 25 Jan 2006, Randy Webb wrote: William said the following on 1/25/2006 10:36 AM: > On Wed, 25 Jan 2006, Thomas 'PointedEars' Lahn wrote: If not, then post a URL to a sample page that shows the error. http://mkmxg00/cgi/extra_desks_upload_list.pl ^^^^^^^ A _fully qualified_ domain name would have been helpful.
http://mkmxg00.cibg.tdbank.ca/cgi/ex...upload_list.pl
| $ GET http://mkmxg00.cibg.tdbank.ca/cgi/ex...upload_list.pl
| 500 Can't connect to mkmxg00.cibg.tdbank.ca:80 (Bad hostname
| 'mkmxg00.cibg.tdbank.ca')
| $ host -v mkmxg00.cibg.tdbank.ca
| Trying "mkmxg00.cibg.tdbank.ca"
| Host mkmxg00.cibg.tdbank.ca not found: 3(NXDOMAIN)
| Received 100 bytes from 145.253.2.75#53 in 74 ms
BTW: Please trim your quotes.
PointedEars This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: noViagraHere |
last post by:
What do i need to add to the document line to stop getting an Unterminated
String Constant error?
itemtocheck = '1300';
document.writeln('<!--#include...
|
by: KathyB |
last post by:
Hi, this is the first lines of a function. Although it runs, it still
throws an "Unterminated string constant" error in the browser. It is
all in one line, just wouldn't fit here.
The error...
|
by: Jeff |
last post by:
Hi, does anyone know why this:
<a onclick="insertatcaret(window.opener.document.formname.fieldname,'<td
class="header">')">text</a>
returns a "Unterminated String Constant" error message in IE...
|
by: aroraamit81 |
last post by:
Hi,
I am facing a problem in javascript. strdata is a variable of
javascript and following is an assignment( hmmmmmmmmmmm a Huge one but
unfortunately its not mine code, I am just trying to...
|
by: Tav |
last post by:
this seems to be a very generic error message, and the fact that i have
no way of locating what causes the error is frustrating.
anyway, i'll be general with my problem. i have a div on my page...
|
by: polilop |
last post by:
When i open my page in IE it shows an error Unterminated string constant om
Line.....
When i look at the line it shows the line where the </SCRIPT> tag is ????
Moziila dose not see this error,...
|
by: Chrisjc |
last post by:
I Have no IDEA what this error code means on my page.. I have chech the lines listed and just doesnt add up.. here is the error
Line: 11
Char: 38
Error: Unterminated string constant
Code: 0...
|
by: rajuk |
last post by:
Hi i have following code,when i execute this code i got unterminated string constant error.any javascript guru can you look into this please.
raju
/* The link details */
var links = new Array...
|
by: hemantbasva |
last post by:
i have written a the following javascript code to copy data onto clipboard but i am getting error
Unterminated string constant
code in cs file
if (lblProcedureID != null)
...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |