473,511 Members | 11,345 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Javascript within asp.net

HI Guys,

im wondering if someone with javascript skills can help me. Im trying
to run a piece of javascript from within asp.net. Unfortunately the
code is not working properly. I was wondering if someone could take a
look at it and let me know if im doing anything really stupid ie. case
or syntax

Any help appreciated - see code below

<script
language='javascript'>window.open('frm_EditNote.as px?Accountstatus=2&OldAccountStatus=1&Note=Proof
Of Bank Details
xcvxcv&AccountNo=QG285842:27', 'LookupAddress', 'width=600, height=400,
top=100, left=200, menubar=no, resizable=no')</script>

thanks

CG

Dec 15 '06 #1
1 1101
csgraham74 said the following on 12/15/2006 5:00 AM:
HI Guys,

im wondering if someone with javascript skills can help me. Im trying
to run a piece of javascript from within asp.net. Unfortunately the
code is not working properly. I was wondering if someone could take a
look at it and let me know if im doing anything really stupid ie. case
or syntax

Any help appreciated - see code below

<script
language='javascript'>window.open('frm_EditNote.as px?Accountstatus=2&OldAccountStatus=1&Note=Proof
Of Bank Details
xcvxcv&AccountNo=QG285842:27', 'LookupAddress', 'width=600, height=400,
top=100, left=200, menubar=no, resizable=no')</script>
Problems:
1) No spaces allowed in the URL.
2) No spaces allowed in the third parameter to window.open
3) Subject to popup blockers as it is not a user requested popup.
4) The language attribute is deprecated, use the type attribute.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Dec 15 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
7251
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7148
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7367
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
5673
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4743
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3230
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3217
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1581
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
790
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.