Hi,
I am trying to open one new window with some values.
The following is my code ..
<%@ page import="java.util.*" %>
<%@ page contentType="text/html; charset=x-SJIS" %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<TITLE></TITLE>
<SCRIPT LANGUAGE=javascript>
function openwindow1(){
strURL="test.jsp?value1=welcome&value2=25&value3=2 00";
handle=window.open(strURL,'test1','top=1,left=1,re sizable=No, width=770,height=690');
}
function openwindow2(){
strURL="test.jsp?value1=welcome%&value2=25&value3= 200";
handle=window.open(strURL,'test2','top=1,left=1,re sizable=No, width=770,height=690');
}
</SCRIPT>
</HEAD>
<BODY>
<FORM action="" method=POST id=form1 name=form1 >
<%
System.out.println("****************************** ***********");
System.out.println("[Value - value1] :: " + request.getParameter("value1"));
%>
<input type='button' value='test1' onclick='openwindow1()'>
<input type='button' value='test2' onclick='openwindow2()'>
</FORM>
<P> </P>
</BODY>
</HTML>
If I click on test1 button, value is coming correctly, but when I am clicking on second button, the value is not coming. null value is coming.
I am not getting, this is Java script problem or jsp problem.
Please check the same and get back to me, why I am getting like that output for changing the js value.
1 1908
Hi,
I am trying to open one new window with some values.
The following is my code ..
<%@ page import="java.util.*" %>
<%@ page contentType="text/html; charset=x-SJIS" %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<TITLE></TITLE>
<SCRIPT LANGUAGE=javascript>
function openwindow1(){
strURL="test.jsp?value1=welcome&value2=25&value3=2 00";
handle=window.open(strURL,'test1','top=1,left=1,re sizable=No, width=770,height=690');
}
function openwindow2(){
strURL="test.jsp?value1=welcome%&value2=25&value3= 200";
handle=window.open(strURL,'test2','top=1,left=1,re sizable=No, width=770,height=690');
}
</SCRIPT>
</HEAD>
<BODY>
<FORM action="" method=POST id=form1 name=form1 >
<%
System.out.println("****************************** ***********");
System.out.println("[Value - value1] :: " + request.getParameter("value1"));
%>
<input type='button' value='test1' onclick='openwindow1()'>
<input type='button' value='test2' onclick='openwindow2()'>
</FORM>
<P> </P>
</BODY>
</HTML>
If I click on test1 button, value is coming correctly, but when I am clicking on second button, the value is not coming. null value is coming.
I am not getting, this is Java script problem or jsp problem.
Please check the same and get back to me, why I am getting like that output for changing the js value.
Please paste the HTML/JS source not the JSP source. I can tell you if your JS is wrong when values are filled in, but I don't know what your JSP is going to fill in those blanks. You might even just see your problem in the HTML source. Give it a go.
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Paul |
last post by:
I link to a web site from an Excel spreadsheet. The page i link to is
getCookie.asp which sets a cookie then returns back some html which opens a
new window, to the same site but a different page...
|
by: Les |
last post by:
Hi,
I'd like to find out how to use the window.open() script in Fireworks MX. I have posted my question in the Fireworks forum but
didn't get any replies. Since it's javascript, maybe someone...
|
by: Marshall Dudley |
last post by:
When I do the following line in Netscape, the popup loads as it should,
but the parent window usually, but not always, reloads as well.
<a href="#"...
|
by: David McCulloch |
last post by:
The following code opens a new window, but the "resizeTo" doesn't resize it.
Why not?
(Don't ask why I simply did not open the window with the new size....my
original problem was how to open a...
|
by: Samir Pandey |
last post by:
Hello,
I am using the following javascript code to open a new window.
Somehow, IE always opens a new window. It doesn't open target url in
the window name given.
All i want is, if there is a...
|
by: NeverLift |
last post by:
But, if it's not open, I don't want to open it . . . using
window.open will open it if it doesn't exist, even if the url in that
open is null (the window is then empty -- but it's open).
The...
|
by: Larry R Harrison Jr |
last post by:
I have pull-down menus in javascript and I have the code for opening a link
in a new window. But I want it to open a full-sized window. I can't figure
out the syntax. What I have so far:
...
|
by: Dominic Tocci |
last post by:
I'm searching for a way to use window.open on my web page to open a window
in firefox that allows the sidebars to work (bookmarks, history, etc).
When I use the following:
var...
|
by: anthony.turcotte |
last post by:
Hi,
I've looked for a solution to this problem on google, read posts in
this newsgroup and I still haven't found anything that could help me.
Here's the scenario.
1. User accesses...
|
by: Geoff Fox |
last post by:
I am in the final moments of designing a new website. One of the pages
(http://www.auditionfactory.com/samples.php) has four links to show
sample work. I would like these links to open new...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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,...
|
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...
|
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,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |