 |
| 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
|
|
|
|

November 19th, 2004, 07:47 AM
|
|
Authorized User
|
|
Join Date: Jul 2004
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|
|

November 19th, 2004, 08:04 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
|
|
Why not fix your JavaScript so that the parenthese match?
--
Joe ( Microsoft MVP - XML)
|
|

November 19th, 2004, 04:37 PM
|
|
Friend of Wrox
|
|
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
|
|
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!
|
|

November 21st, 2004, 09:34 AM
|
|
Authorized User
|
|
Join Date: Jul 2004
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

November 21st, 2004, 01:36 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
|
|
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)
|
|

November 21st, 2004, 11:32 PM
|
|
Authorized User
|
|
Join Date: Jul 2004
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|
|

November 22nd, 2004, 05:21 AM
|
|
Authorized User
|
|
Join Date: Jul 2004
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Ok guys! Used window.error and it seems to have solved the
problem temporarily. Thanks All!
Cheers..
Spacy...
|
|

November 22nd, 2004, 05:21 AM
|
|
Authorized User
|
|
Join Date: Jul 2004
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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...
|
|

November 22nd, 2004, 05:37 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
|
|
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)
|
|
 |