|
|
 |
| ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the ASP.NET 2.0 Professional section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
|
 |

April 27th, 2007, 05:57 AM
|
|
Authorized User
|
|
Join Date: Jul 2006
Location: Mumbai, , India.
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Javascript Not working
Sir,
I have a Website and in that I'm using JAVASCRIPT to open New window as under:
Response.Write("<script>window.open('frmPurchase_O rder.aspx', 'Purchase','status=yes,scrollbars=yes,toolbar=no,m enubar=no,location=no,resizable=0, maximize=yes, height=518, width=800,top=0,left=0')</script>")
In 1 company there r 2 Computers Both r having InternetExplorer.
From 1 Computer Javascript is working n user is able to open new window on button click.
But from second computer New window is not opening (javascript doesnot work). Actually nothing happens when button is clicked, user is on the same page.
Sir Pls. advise me what setting i should make in browser or in js.
Awaiting ur kind reply,
Sohrab
|

April 27th, 2007, 09:17 AM
|
 |
Friend of Wrox
Points: 16,368, Level: 55 |
|
|
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,394
Thanks: 0
Thanked 2 Times in 2 Posts
|
|
Aside from the fact that you shouldn't be using "Response.Write()", it sounds like you need to trouble shoot the browsers. Does one have javascript turned off? Are there security settings preventing javascript from running?
You should consider using the ClientScriptManager.RegisterStartupScript Method instead of "Response.Write()" for putting scripts onto the page.
- Peter
|

April 29th, 2007, 11:59 PM
|
|
Registered User
|
|
Join Date: Apr 2007
Location: Mexico DF, , Mexico.
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I agree with planoie. It sounds like one of the browsers has javascript turned off (in internet explorer you can activate javascript under internet options in the "advanced" tab (look for "scripting"). If all you want is to open a new window then ClientScriptManager.RegisterStartupScript will be overkill, just alter the html button so that its "onclick" attribute will execute the javascript code to be called written inside. Inside the button's html tag, you need an attribute that looks like onclick="window.open('frmPurchase_Order.aspx', 'Purchase', 'status=yes, scrollbars=yes, toolbar=no, menubar=no, location=no, resizable=0, maximize=yes, height=518, width=800, top=0, left=0')"
|

May 5th, 2007, 07:04 AM
|
|
Authorized User
|
|
Join Date: Jul 2006
Location: Mumbai, , India.
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
If Google Toolbar is instaled on the client computer. it blocks popups.
how should i open new window when popups are blocked.
|

May 5th, 2007, 01:42 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Location: Capital Federal, , Argentina.
Posts: 1,994
Thanks: 5
Thanked 37 Times in 36 Posts
|
|
mmm.. that's not all the work from the blocker?? to prevent opening windows???
HTH
Gonzalo
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |