Querystring Exceeds Size Limit Using Window.open

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("wid")%>')"></body>
<%

<script language=javascript>
function myFunc(w2)
{
var args = "&wono=" + w2;

window.open("test_alert.asp?"+args,
null,'width=600,height=550,scrollbars=yes,resizabl e=yes,status=yes,top=10,left=50');

}
</script>

View Replies


ADVERTISEMENT

Size Limit For Cookies?

whats the max amount of data i can store in cookie?

View Replies View Related

255 Limit Of Field Size

I'm creating a database site and using access. I've created a number of
fields i.e date, time, description, cost
The only problem is that the description info is larger than the 255
character limit imposed by access. How can I solve this one?

View Replies View Related

Fso.GetFileVersion Size Limit?

We are using standard fso.GetFileVersion code in order to get the version number of the latest dll used to create some documents.

We normally loop through the files to get the latest version (and this works fine on all the DLL's). However in the example below I am hard-coding the file name. The error occurs either way. Code:

View Replies View Related

Field Entry Size Limit?

HOw can I prevent my users from entering more the a certain number of characters into a field? Could I get a similar example as I have a limitted knowdlege.

View Replies View Related

File Download Size Limit

I have a site that allows a person to log in and get a list of files to download for them. If the file size is under 65MB then everything is fine, they click the download button and the save box pops up. But if the file is larger than 65MB the page sits and processes until it times out. I can't figure it out becaus a 64MB file loads immediately for download while one slightly larger hangs up.

View Replies View Related

Can V Increase The Querystring Value Limit?

can v increase the Querystring value limit? right now if iam not wrong the querystring takes only 1024 characters. is there a way in the IIS to increase this value or is this browser depended? if its browser depended? can we write a code in asp to increase those value?

View Replies View Related

Specify Size Of New Window

I have a link which on clicking will go to a new page as in my example below. however i want to open it up in a new window and also specify the size of that new window. how can i do this in ASP? i dont wnat to use Javascript cause I have an ASP variable, strURL, and need to send that to the page. Code:

<a href="<A href="somepage.asp?link=<%=strURL%>">email this page</a>

View Replies View Related

Set Window Size

I have an VBScript in an ASP file which determines the dimensions of an image file on the server.

How can I set the correct window size before it becomes visible? I want to avoid displaying a window that visibly changes its size. I would rather set the correct window size before the window becomes visible. How do I do that?

View Replies View Related

Open A Window.

I would like to open a new window (Function is called NewWindow and is writtent in VBscript) when a user submits a form. All the samples I found on the web indicate something like the following: Code:

View Replies View Related

Open New Window

how can i open a new window with a if statment but still getting variables values?

tit=Request("title")
if x=1 then
something
else
Response.Redirect("<A href="http://www.test.com/lookup?q="&tit">http://www.test.com/lookup?q="&tit")
end if
I donīt mind using java, but i donīt know how

View Replies View Related

Open Window

I am working on a website and have a couple links that open up a new window. My webpage is .ASP as well as the windows I am opening. Currently the link open into a new window. However, I would like to be able to set the the size of the window that is opened.
This is the code I am currently using:

<p><a href="Search/search_owner1_form.asp" target="reportWindow" class="style2">OWNER 1</a></p>

View Replies View Related

Open In Another Window With Asp

I have an the following asp. How to have this asp to open in another
window when it is called?

<% something %>

View Replies View Related

Open New Window

I have a submit button that a form uses to submit the contents of that form to another page.

<input type="submit" class="input" onclick="this.form.action='checkname.asp';">

Is there any way to open a new window and perform the action in the onclick event?

View Replies View Related

Window.open

Is there any way to keep a window on top using window.open? I can't use a modal or window.focus onload b/c I have to get inputs

View Replies View Related

Open In New Window

I have an .Net project that has an ASP page, that has links. When a user clicks on one of the hyperlinks, it opens an Excel page, in IE. One of the cells in the Excel Workbook contains a link to a PDF document.

If the user clicks on the PDF link, it's opened in the current page. I'd like to know if it's possible to open the PDF in a new page. So it would basically be opening a PDF from the Excel document - that is opened in IE. Code:

View Replies View Related

Window.open

I have searched the web and books but so far I am drawing a big fat nada on this one.

I want to open a new window from an ASP page and everything I have found suggests to use JavaScript and not the server side VBScript. The problem is that the server side is what will decide were to send the user. Is there a way to exit or open a new window using JavaScript passing in variables fromVBScript server side then close the ASP page?

View Replies View Related

Open A New Window

the new window will be in the SAME session as the opening window.I don't want to abandon the session of the opening window, just have a new one for the new window.

View Replies View Related

Window.Open

I wish to open a window with this command
Window.OPen(meat/ServerLookup/ServerWindows.asp?ServerName=VarServerName)

It does not seem that the Window.Open can handle the ?ServerName=VarServerName part of the command? DO I need to add stuff to make this work like I want?

I had thought of using a session variable to pass the variable VarServerName to the next page ... but in this case using the ? function would be FAR more convenient... Any Ideas on how to make this work?

View Replies View Related

Window.open

i am facing a problem with opening a window from a webpage,

first i tried using window.showModalDialog() window.showModelessDialog() but in that case i can not detect window.opener so i reverted to window.open() but can i detect from the parent if i have any windows open ??

in other words, if i push the button to open a window, then the user pushed it again, i do not want to have two windows open at the same time... can i do that??

View Replies View Related

Window.open

using ASP 3.0 and IIS 5, can anybody tell me why the following code isn't working?

sub admin_onclick
window.open "http://sean/lonestar/lsf.asp"

end sub

It's about as straight-forward as you can get. Incidentally,the ASP that is referenced works.

View Replies View Related

Windwo.open Querystring Parameters

I have asp1 that posts to asp2 which uses request.form to get info
from asp1. How can I get the window.open function to process form
asp1's posted inputs? What I am trying to do is allow the user the
choice of viewing an asp in a frame, or in a full window. Either way,
I want it to open asp2 and have the request.form get the info. This
doesn't work for me using window.open, I assume, because form asp1
isn't being submitted, and it's action (which is the URL of asp2)
isn't used.

View Replies View Related

Cookie Not Sent With Window.open

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 (same folder).

The cookie is not received. Can someone explain why?

I worked around this by adding a cache-control header with a value of no-cache. This fixes the problem. Unfortunately that causes another problem with Internet Explorer that no-one can figure out (basically with friendly error messages turned on IE shows an error page for no reason - i posted a lengthy message about this to m.p.i.asp.general but no-one has a clue).

I have tried every combination of every cache busting header i can think of but no other one fixes this problem about the cookie not being received.

So basically i'm in a catch-22. If i put the cache-buster in then users will get a nasty error message from IE unless they have 'friendly' error messages off. If i leave out cache-buster code then the session cookie doesn't get returned which means the users cant access my site.

Example asp's are below. To recreate the problem simply create a hyperlink to getCookie.asp in excel then open it (after each attempt you need to shut down Excel). By the way everything works fine if you type the URL into IE directly... the problem is when opening from Excel.

----getCookie.asp------
<%
'cache code which makes next page work
'Response.CacheControl = "no-cache"
'send cookie back to client
Response.Cookies("PaulSessionID") = "PaulsCookie"
%>
<HTML>
<HEAD>
<SCRIPT>
window.open('useCookie.asp','newWin','resizable,sc rollbars,menubar,toolbar')
;
</SCRIPT>
</HEAD>
<BODY>&nbsp;</BODY>
</HTML>

-----useCookie.asp------
<%Response.CacheControl = "no-cache"%>
The cookie set by the previous page is:
"<%=Request.Cookies("PaulSessionID")%>"
---------------------------

View Replies View Related

Window.open Destroys

When a open an asp page from a modal window through window.open, my
session values of parent(the screen that invoked the modal window) are
lost.

View Replies View Related

Open Link In New Window

I want to disable the 'Open link in new window' option for hyperlink.

View Replies View Related

Open Popup Window

I want when an website opens then a popup window made in flash should be open automatically in a new window. How it is possible?

View Replies View Related

Open Window Function

how to modify a function like this to specify the new window size? I'm able to specify window dimensions easily using window.open in javascript, but am at a loss for how to do it using this vbscript method.The 'strtext' are ASP recordset values. The page the opens in a new window is a map service.

<SCRIPT RUNAT=SERVER LANGUAGE=VBSCRIPT>
function mapLink(strtext)
on error resume next
mapLink = "<a href=""http://planning/ims/tpViewer/?Query=SDE_ADMIN.TP_AREA.TIMEPOIN_1%20%3D%20%27" & strtext & "%27&MapUnits=FEET&ActiveLayer=0&QueryZoom=Yes&Tools=Yes"" target=""_blank"">Map</a>"
End function
</SCRIPT>

View Replies View Related

Java Open Window?

I'm using this Java code to open a window, trouble is when you hover your mouse over the link it does change to the hand? Code:

View Replies View Related

Restricting An Open Browser Window

Is there a way to keep an other application from opening a link in a
browser where I am running an ASP application?

For example, I have an ASP application open in a browser. If I click on
a link in an email message, Outlook "hijacks" the open browser and
opens opens the link in it. Is there a way to prevent this? To somehow
identifiy that browser window as "off limits" to another app?

View Replies View Related

Amateur Window.open Problem!

Im trying to do something that I thought would be fairly simple here - im pretty sure I know what Im doing wrong but I wonder if someone could put me on the right track.

I have a table with link in it displayed as text....ie.

<TD WIDTH=this ALIGN=that>http://localhost/porky.asp</TD>
<TD WIDTH=me ALIGN=you>http://forums.devshed.com</TD>

and so on.

The links are actually stored in a database so they are actually called using a recordset. Still - I wanted to turn them into links - which I can do - its just that I want them to open in a new browser window.

I used the line:

Response.write("<TD....blah>" & window.open(oRs("url")) & "</TD>")

I got the error: Object Required ".

Im pretty sure this means that I have to create the window object somehow, before I can open it.

Is there a command something like:

Server.CreateObject("window") or something that I could use?

View Replies View Related

Open Window Function (vbscript)

how to modify a function like this to specify the new window size? I'm able to specify window dimensions easily using window.open in javascript, but am at a loss for how to do it using this vbscript method. The 'strtext' are ASP recordset values. The page the opens in a new window is a map service.

<SCRIPT RUNAT=SERVER LANGUAGE=VBSCRIPT>
function mapLink(strtext)
on error resume next
mapLink = "<a href=""http://planning/ims/tpViewer/?Query=SDE_ADMIN.TP_AREA.TIMEPOIN_1%20%3D%20%27" & strtext & "%27&MapUnits=FEET&ActiveLayer=0&QueryZoom=Yes&Tools=Yes"" target=""_blank"">Map</a>"
End function
</SCRIPT>

View Replies View Related

Response.Write And Window.open Issue

I have an asp and a page with two frames. (constant, main)
I would like to show the page on a different frame. (main)
Here is what I have:

I am working in C#


void MYSelectedChangeEventHandlerFunction(DropDownList DD)
{
try
{
string address = DD.SelectedItem.Value;
//Response.Redirect("address");
Response.Write(" <script> window.open(address,main); </script> ")
}
catch(Exception ex)
{
DD.Items.Add("Dir Errors Found!");
}

}

What AM I doing wrong? Is there a better way to out put the page to a different frame within the function.

View Replies View Related

Window.open Interfering With Browser Navigation?

It looks like that when the window.open call is made, and a new window is
created - my users lose all the information they entered - if they navigate
backwards then forwards. If the second window was already created...
navigating backwards and immediately forwards, seem to behave 'normally'
(i.e. all their previous inputs are there on the screen.).

Is this normal? Is there some way to kick-off a new window without losing
the inputs previously entered at an earlier screen? There was an earlier
post about losing session info when opening a window - is this a similar
situation?

I suppose I don't really have to have two windows opened at the same time -
using a simple anchor link seems to work without the side-effect. It's just
not as snazzy and the work-flow is slightly more stilted.

While I've been toying around with some other work-arounds - I was wondering
if anyone else has ever run into this situation? Or am I missing some
critical piece of info?

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved