Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
|
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To 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 November 19th, 2004, 07:47 AM
Authorized User
 
Join Date: Jul 2004
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Default Display message in statusbar from child frame


I have two frames, top & bottom. The bottom frame is further divided into two frames, right & left. In the right frame, i display a html table with data coming from sql (depending on company selected).

My problem is that when i select a particular company, after the entire html table is displayed, an error icon is shown in the status bar with "Done" as the message. There is no problem with table output at all. On double-click of icon, it says "Expected ) "

Is there any way i can display a "Done" message on the status bar so that the error icon is not displayed? I have already tried "window.status" "parent.status" etc. No use!

Please help!!!!!

Cheers..
Spacy.




 
Old November 19th, 2004, 08:04 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Why not fix your JavaScript so that the parenthese match?



--

Joe (Microsoft MVP - XML)
 
Old November 19th, 2004, 04:37 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Where I suggest following Joe's solution, you can just put (I believe):

window.onerror = function(){return true};

hth

-Snib
Where will you be in 100 years?
Try new FreshView 0.2!
 
Old November 21st, 2004, 09:34 AM
Authorized User
 
Join Date: Jul 2004
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Default


Thanks Joe & Snib for the prompt reply.
But my problem is that i have already
tried handling this parentheses problem
through code. I tried replacing the
parentheses coming from sql data with
space. But still i get the same error.
Am not able to figure out where exactly
the problem arises. Is there any way i
can find this out???

Thanks

Cheers
Spacy


 
Old November 21st, 2004, 01:36 PM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Unfortunately my spider sense is failing me so without seeing an example of code that fails it's difficult to say :)
Can you show the code and describe how it is produced?


--

Joe (Microsoft MVP - XML)
 
Old November 21st, 2004, 11:32 PM
Authorized User
 
Join Date: Jul 2004
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Default


hi Joe!

Well..i had forgotten to tackle the parentheses in a
window.open statement. Now i no longer get the error.
But my problem is that am passing this data as a
querystring to another code. The parentheses is crucial
else it wont display the table in the new window.

Here is a part of the code for your reference:
Response.Write("<a href=# onclick=javascript:window.open(frmNextPage.aspx?cu stomer=" & System.Web.HttpUtility.UrlEncode(strCustName))>")

strCustName is the string with the parentheses replaced by space.

How do i get the parentheses in the next page? Please reply.

Thanks & Regards,
Spacy.
 
Old November 22nd, 2004, 05:21 AM
Authorized User
 
Join Date: Jul 2004
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Default


Ok guys! Used window.error and it seems to have solved the
problem temporarily. Thanks All!

Cheers..
Spacy...


 
Old November 22nd, 2004, 05:21 AM
Authorized User
 
Join Date: Jul 2004
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok guys! Solution given by Snib worked. Used window.error
and it seems to have solved the problem temporarily. Thanks All!
In between if anyone can tell me how to pass parentheses
through querystring...would b great!

Cheers..
Spacy...
 
Old November 22nd, 2004, 05:37 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Quote:
quote:Originally posted by spacy


hi Joe!

Well..i had forgotten to tackle the parentheses in a
window.open statement. Now i no longer get the error.
But my problem is that am passing this data as a
querystring to another code. The parentheses is crucial
else it wont display the table in the new window.

Here is a part of the code for your reference:
Response.Write("<a href=# onclick=javascript:window.open(frmNextPa ge.aspx?customer=" & System.Web.HttpUtility.UrlEncode(strCustName))>")

strCustName is the string with the parentheses replaced by space.

How do i get the parentheses in the next page? Please reply.

Thanks & Regards,
Spacy.
Depends what language you are using as to how to escape quote marks but in C#:
Code:
Response.Write("<a href=#  onclick=\"javascript:window.open('frmNextPage.aspx?customer=" & System.Web.HttpUtility.UrlEncode(strCustName)')\">")
--

Joe (Microsoft MVP - XML)





Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I display parent & child nodes if XML .... vishnu108mishra ASP.NET 2.0 Basics 0 November 17th, 2007 07:45 AM
WMSDK (How to display text on video frame) arun.sharma.kumar Visual C++ 0 February 14th, 2007 05:49 AM
offsite link to iframes index page and child frame raiderray Javascript How-To 1 January 3rd, 2006 05:01 PM
I cannot display an error message hdoldur Classic ASP Databases 1 April 7th, 2004 02:12 AM
Message display rodmcleay Forum and Wrox.com Feedback 1 June 5th, 2003 06:45 AM





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