I would like to achieve the equivalent of a client side javascript alert popup from server side code. Any suggestion how I can do this? How can I cause a beep at clientside from serverside code?
I would like a popup with a message and checkbox, which the user checks when they agree with the message. Is this possible? I trawled the web to no avail.
I have a child window that has a button to close it. I would like the parent window to be refreshed (since action taken in the child would change the values in the parent). The code I have works, but I get that "Retry" popup... I would like to bypass that. Any suggestions? Code:
I have an ASP page that goes from part to part based off of a session variable. Is there any way to check for when the user clicks back so that I can change the variable. If not I will have to separate all of the pages out and that is just not fun.
So, when the user clicks back, the session variable gets changed. That is what I am looking for.
P.S. Is there a faster way to check if a variable is blank other than an If Bleh="" Then <some code> End If
P.P.S. When a submit button is clicked, I want to open a new window with a message like "Be sure to fill out this on page X"
I have a menu that I use on my Intranet app, and while I did try to replace it recently, I ended up going back to it. It's built entirely with javascript, and works great.
However, there are certain pages where I would like to be able to put an item into a querystring for a link. That is, I might have a link which is worded "Add to this ticket" and the hyperlink associated with that text is along the lines of "addtoticket.asp?ticketid=1000"
I am not able to figure out how to have an ASP variable into a link built by javascript. This is the main question. How can I have the ASP variable in a javascript?
Because it's Inranet, I don't have the page to show you. However, I have zipped up the two javascript files and placed them at www.middletree.net/js.zip
Also, in this case, IE-specific code will not be a problem. 100% of users are on IE5+
within the js file I create all of my menu's. Now I have a session variable set very early in the piece;
I want to see what the value of the seesion variable is in the javascript code to see if certain menu's should be setup or not. I have tried all sorts of variations of coding to see what the coding should be, and none seem to work. Code:
I have an asp page that is needing to validate data against database but to do so I need to pull in a key value from another web page. I can get the key value in ASP using the following javascript code:
<script> var main = opener.opener; var currQuote = main.document.forms[0].quotenum.value; </script>
My problem is trying to figure out how to use currQuote in the ASP code surrounding the script. There's got to be a way to do it - I'm just burnt out trying to figure it out.
I'm trying to take an ASP session variable and pass it into a javascript function with little success. As the page loads, the session variable is there and the javascript function is called as an include.
I've tried silly ideas like option explicit and using asp to write the javascript declaration of the variable.
I have a search function that is reading companies from a database via ASP and spitting out the results. I have various fields of each company in variables and I want to be able to create a link that uses Javascript to copy the address to the clipboard.
I know there is the javascript:window.clipboardData.getData(), but I can't get to parse the ASP variable through. Does anyone know how I can do this.
I have created a session in asp .net and transfer to an HTML page. I want to grant access to that html page depending on the content of that session object. Is there any way I can read that object using javascript in an html page?
I know that is wrong, but how do i do it? I am using hidden for fields in other places
The reason I want to place this one in a session is that what the code is doing is creating a form for the user and if it creates a hidden field it creates it outside the form. so i therefore have to use a session variable. Is this possible?
Until now I've only seen VBScript to handle application and session events (e.g. Application_OnStart, Session_OnStart). Is it possible to do this directly in JavaScript or do I have to write VBScript proxies?
I delete the files/cookies and clear history from the IE 6.0 browser and try to write in a text file use FSO but it dont write any thing in the file needs Code:
I'm trying to set a session variable after displaying a form, then capture the Session variable on postback. For some reason, the below code always returns the form, not the "Step 2" results part. What am I doing wrong? It's on a local network server, not on the web if that matters.
<% '* Step 2: Display results '********************************************** If Session("PageAction") = "view2" Then Response.Write "Results"
'* Step 1: Display form '**********************************************
I have created a session variable.... and i have to write code to check for this session for each ASP webpage in my website....Is there a alternative I do not want to repeat the same code for valid session.... in each page..
I first create a session variable 'client' in the login.asp file The login.asp file opens a file (xxx.asp) with an include file If I write <!--#include file="../../../data/" & session("client") & "/language_ger.inc"--> I have a message stating that the application can't find the file.
If I write the path without the variable (" & session("client") & ") <!--#include file="../../../data/eurovini/language_ger.inc"--> it works without any problem.
Question - is there is an error in the syntax? - is it possible to include this kind of variable in an include file. And if not, any idea to get the same result?
I'm new and I hope I explain this correctly.I have a products page which populate products dynamically with checkboxes. when the form is submitted, I check for selected boxes using the split(). My problem is, products page submits the form to client.asp, and within that page is client info. then the client page is submitted to confirmOrders.asp, which will display client info, and products selected. the split() works fine within the client.asp page. I'm trying to assign the checkboxs to a Session variable and use it on confirmOrder.asp. Then display the session variable on confirmOrders.asp page. I know I can do everything in one shot with confirmOrders.asp, but the client wants to display the client.asp page then the latter. hmm...hope this makes sense.
Is there a simple way to store session variable on the client-side javascript or retrieve the value of the session variable from the server-side session("variable") script onto the client-side script? I want to keep the value of user entry on the text field of an html form after refreshing.
The value of session variable is shown and the timeout value (60) shown as well. But immediately I get the error message "a timeout has been occurred, you have to log in again". If I make the highlighted sentence comment then I don't get the error.
Has somebody an idea why I receive immediately the timeout error?
A user field called 'Custom1' exists in my data base. This user field is used to hold a URL path to a custom download page for clients. Each client has their own unique URL which directs them to specific locations.What would the proper format be for the variable:
=Session("Cutstom1")
to be able to be displayed as a hyperlink with the label: "DOWNLOADS" while at the same time sending the current user to the 'value' / 'path' to which the Custom1 field contains? I am not an advanced coder and am just starting out with basics.
I assume that mostly,asp programmers use their own session variable to know whether a user is to be considered is-logged-on(together with a home-written log-on form web page).
However, I wonder if there is a convention for the name of such a variable?And does asp/iis have a built-in is-logged-on status variable? For example when IIS is to render a normal html page with an acl that invokes a basic authentication, can I as an asp programmer make use of that status variable, and can I write to it to force a logout programatically?
So, this is not about it there is a session as such, it is about beeing logge-on inside an asp-session. I've looked around but haven't found any good info on this.