Thanks in advance for any help. I am attempting to pass a large number
of ID's using window.open in javascript. The number of the ID's exceeds
the querystring length. Therefore, I would like to somehow use the POST
method to submit. (or another method without rewriting the ASP page!)
Please review the code below before submitting since this can be easily
done but I am not sure how using <body onload... >.
%>
<body onload="myFunc( '<%=request("wi d")%>')"></body>
<%
<script language=javasc ript>
function myFunc(w2)
{
var args = "&wono=" + w2;
window.open("te st_alert.asp?"+ args,
null,'width=600 ,height=550,scr ollbars=yes,res izable=yes,stat us=yes,top=10,l eft=50');
}
</script> 8 6583
Ben wrote: Thanks in advance for any help. I am attempting to pass a large number of ID's using window.open in javascript. The number of the ID's exceeds the querystring length. Therefore, I would like to somehow use the POST method to submit...
This is not really an ASP question, but...
<form method="post"
action="test_al ert.asp"
target="windowN ame"
onsubmit="windo w.open('','wind owName','width= 600,height=550. ..')">
--
Dave Anderson
Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.
"Ben" <bc*******@yaho o.com> wrote in message
news:11******** **************@ i40g2000cwc.goo glegroups.com.. . Thanks in advance for any help. I am attempting to pass a large number of ID's using window.open in javascript. The number of the ID's exceeds the querystring length. Therefore, I would like to somehow use the POST method to submit. (or another method without rewriting the ASP page!) Please review the code below before submitting since this can be easily done but I am not sure how using <body onload... >.
%> <body onload="myFunc( '<%=request("wi d")%>')"></body> <%
<script language=javasc ript> function myFunc(w2) { var args = "&wono=" + w2;
window.open("te st_alert.asp?"+ args,
null,'width=600 ,height=550,scr ollbars=yes,res izable=yes,stat us=yes,top=10,l e
ft=50'); } </script>
Changing to POST method WILL require some changes to the page.
Since the data for the Test_alert.asp page is already on the server why not
store it somewhere and just send a tag for the data to the client.
The Test_alert can use the tag to retrieve the actual data.
Anthony.
Thanks, but this page is being posted back to itself so there are many
different ways to submit. You are right... more javascript than an ASP
post. Sorry about that.
I was trying to stay away from Session Variables but it looks like I
need to use them. Thanks.
[Please quote what you are responding to]
Ben wrote: Thanks, but this page is being posted back to itself so there are many different ways to submit.
I think you are missing the point. If you want to POST a form into a popup
window, use the TARGET attribute of the FORM element and ensure that target
is opened. I don't care how you implemented it -- my example was meant to
illustrate the use of TARGET.
Besides -- "posted back to itself" is inconsistent with passing "a large
number
of ID's using window.open". Are you saying that each successive instance of
the script will opsn another copy of itself into yet another popup window?
--
Dave Anderson
Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.
"Ben" <bc*******@yaho o.com> wrote in message
news:11******** **************@ y43g2000cwc.goo glegroups.com.. . I was trying to stay away from Session Variables but it looks like I need to use them. Thanks.
A session variable is one way of doing it but not the only way. You could
use a table in an DB as an alternative.
Dave wrote: I think you are missing the point. If you want to POST a form into a popup window, use the TARGET attribute of the FORM element
Thanks Dave... I appreciate your help. Maybe I should be getting away
from <body onload...
Anyway, below is my lastest attempt... opens the new window but no data
submitted to new window. Can you see the problem?
<form name="frmTemp" action="wor_ale rt.asp" method="POST"
target="newWin" >
<input type="hidden" name="wono"
value="<%=reque st("wono")%>">
</form>
<body onload="myFunc1 ();"></body>
function myFunc1() {
var newWin =
window.open("wo r_alert.asp","n ewWin","width=6 00,height=550,s crollbars=yes,r esizable=yes,st atus=yes,top=10 ,left=50");
newWin.document .frmTemp.submit ();
}
Ben wrote: Anyway, below is my lastest attempt... opens the new window but no data submitted to new window. Can you see the problem?
Yes: window.open("wo r_alert.asp","n ewWin","width=6 00...");
That should be:
window.open("", "newWin","width =600...");
--
Dave Anderson
Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Fredrik/Sweden |
last post by:
Hi folks !
got this problem...
i have a table 'Accounts' in my database, which contains a bunch of
users. From the main menu i choose "edit user" and all users in the db
are presented in a table. The first column 'Pnr' is a unique ID for
each user that i made appear as a link. clicking on one userID should
present a form where the picked users userdata is already filled in so
i can easily edit it and then move on to submit the form to...
|
by: George |
last post by:
VS.NET 2002/VB
Is it possible to retrieve HTML form variables that are hidden input types using
Request.QueryString() and/or Request.Form()?
I have tried various ways of using those, but to no avail. My HTML form method is set to POST, and I
thought I had read somewhere that this could be done.
If it is not possible, is there any way to retrieve HTML form variables into my .aspx page?
|
by: Jensen bredal |
last post by:
Hello,I lunch a popup window from an aspx file .
The javascript uses window.open .
The problem is that the height parameter appears to have a limit and i
cannot go below that limit.
code below:
function Openwindow( postBack)
{
|
by: Praveen Chandra |
last post by:
Hi
I was trying to call the webservice of MS Project server (ProjectCreate
interface of PDS) to create a new project. It works fine when the input XML
is small with a few task and allocations. It gives an error " The size of
the request exceeds the limit allowed by the server " when I have a lot of
tasks to be created.
How do I increase this size limit for the webservice.
Regards,
|
by: Praveen Chandra |
last post by:
Hi
I was calling a third party webservice ( WSDL ) which is accepting some xml
as input parameter. it works fine when the xml size is small but starts
giving error when the xml size reached about 400KB.
Error Description : The size of the request exceeds the limit allowed by the
server.
I changed the maxRequestLength in machine.config file to accept 40MB but
this did not help
| |
by: murali.trichy |
last post by:
hi,
according to browser Querystring values are vary, for eg. IE - 2,083
Characters.
In my application I'm transfering data from Javascript to Asp.Net
through Query string.
Eg:
var http = new ActiveXObject("Msxml2.XMLHTTP");
|
by: fox |
last post by:
Hi,
Lacking javascript knowledge, I just realized why my project has a bug.
I am using ASP to loop through a set of records while it creates URLs
with a querystring that has a single value pair. This URL needs to open
in a floating window if clicked. (this is for an administrator and so
opening a small floater gives them more efficient access to the data that
will be displayed). I now understand that because the ASP executes first,
that...
|
by: chrisj |
last post by:
I'm using freeASPupload and got some assistance integrating to a Member script. It works successfully.
In this modified version there are two groups that use this upload script. Members of one group get automatically re-directed after uploading.
However, this member group never gets the benefit of knowing if they've uploaded an incorrect file size or incorrect file extension.
Members from the second group do see the "exceeds max file...
|
by: =?Utf-8?B?ZGlzcGxheW5hbWU=?= |
last post by:
I have an ASP page with a button and other things.
When the button is clicked, it executes a javascript function which does:
document.Form1.method = 'post';
document.Form1.action = "AnotherASPpage.asp?p1=" + allFields1 + "&p2=" +
allFields2 + "&p3=" + bVar;
document.Form1.submit();
allFields1 represents all the fields in category 1 that user has selected.
The fields are delimited by comma.
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |