i'm loading a new window from another page. but when i do for some reason the page it was loaded from kindof reloads, and all you see at the top of the page is
[Object]
and the title has changed to a bit of this code i used to create the new window. also when i view source for the page that i loaded the new window from all it says is [object]. what am i doing wrong? here is the code i'm using to open the new window.
[CODE<a href="javascript:window.open ('details.asp?detail=<%=rsURL(0)%>', 'newwindow2', config='height=300, width=300, toolbar=yes, menubar=yes, scrollbars=no, resizable=no, location=yes, directories=yes, status=yes')"><img src="images/detail.gif" width="15" height="15" border="0" alt=""></a>[/CODE]
I have a datagrid displaying data. There's an "edit" button, which I use Javascript to create a popup window where I can change the information. There's a "save" button on the pop up window.
Currently, I have to click the save button, and the the close button to close the pop-up window, go back to the calling page and refresh it before the information is updated in the calling page.
I would like to be able to use the "save" button on the pop-up window to close the pop-up AND reload the parent page. Is that possible?
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:
Alright I have had two or three of my users report to me that when they log in they can't do anything after that because it kicks them back to the login screen! I have tried logging in as them in all of my browsers including the ones they said they use. Which is usually I.E. 6.
I have tried raising my security settings to as high as they go but I can't seem to duplicate this problem at all!
1. I have a form, with a textbox and a button. I have to enter a value in the text box and then i have to click the button, which opens a popup window. Here i want to pass the value of the text box which is entered in the parent window to popup window.
I have to use that value in the popup window's form_load event in the Code behind, and i have to take the values from the database using the value which i have entered in the parent window. Code:
I want to provide a lookup facility for users to select a code from a list. I want this to be done in a small popup window, which, when a code is selected, will close down and return the selected value to the main form. Can this be done ??
I'am not familiar wit ASP but I have to maintain an application. In a window there are some text selection fields and a search button. If you press on the search button record list is build according to what is filled in the selection fields. You can select a record and then a detailed window is shown or in another occasion a popup window is shown.
The request is now if the opened window or popup window is closed, then the opener window has to be opened with the same content (content selection fields + record list) as it was before the window or popup is opened.
Now I thought that I have read that every window which is opened gets an ID and that it is possible to call up that window by the ID from the cache again. Is that right? And if so? Or has somebody a better idea. Code:
I have a page and on submit it creates hidden fields that are populated with required data, but at the same time it creates another form below it and that form is to call some data from the hidden values.
I am wondering if there is a way to have the second form "resubmit" once it is created?
I am looking for some sample code. I have an ASP page that uses frames. I will call them Frame 1, Frame 2, Frame 3. Frame 2 has a three dropdown lists, I want to utilize Frame 3 based on what was selected in Frame 2. I kind of understand about the client/server thing, I think all I need to do is re-load the page somehow. Maybe onchange event with the passing of a variable or two.
I have a data entry page which allows a user to insert or edit values in a SQL-Server 2000 database. A section of the page also displays any existing values already in the database, and allows the user to delete them. Exisitng values and the cooresponding delete button are generated on the page dynamically, with one form created for each value to delete. JScript is used to submit the appropriate form.
On my test machine with NT4.0, PWS, and IE6.0, the delete function works fine, and the page is re-loaded with the deleted value removed. However, on the production environment, which is NT4.0, IIS4.0, and IE6.0, when the user deletes a value, the form seems to be re-loaded from the cache, and the 'deleted' value is still displayed. Refreshing the page manually, however, eliinates the deleted value.
So - the delete function is woking, but the page does not seemd to be refreshed in the production environment. Does this all make sense so far? Code:
I'm running a company intranet and the portion in question is the company message board. Its becoming a very integral part of company discussion on most of our projects. What I would like to be able to do is have it so that a user can leave the message board opened and minimized and have it alert him in some way when something new has been posted. Unfortunately i dont want to just keep auto-refreshing the page at certain intervals because i'm concerned about xp users (if it refreshes it'll start flashing at them even if there is no new data, this could get annoying).
Is there a way to alert the page when posts occur or have the page check the SQL database every so often without fully refreshing the page unless there is a change to the database? I'm currently working in vbscript with some javascript thrown in on some pages so an answer in either of these languages would work for me.
on my site, things update alot, and someone might not know something's changed if they come back in an hour...because of the cache. is there a object or something that can clear the cache? a good object would be:Code:
I have a database with clients. I have 3 types of clients.My table has the 3 categories of tables and in another table i have the properties of all the 3 different clients.I have a form now. The first field prompts the user to select the type of client he is. Depending on the category he inputs i want my form to reload and bring the exact properties to fill.how can i reload the form and bring the required fields each time the user selects a category.
We are viewing the same page on my server in New York. I submit or send something in to an ASP, and it returns to me an updated page. How do I get it to reload showing changes for you in Florida who is just sitting watching the page not touching anything?
I have a frames page setup. When I send in info, I have this code to show changes for me by an automatic reload. it works for me:
The page has Top frame (input) and bottom frame (result). The input html page send input to asp to generate result to bottom frame. The page works. But i wish to refresh bottom frame once i click the submit button to see the result by the java function
<script language =javascript> function button1_onclick() { window.parent.mainFrame.location.reload(); } </script>
But the bottom frame does not reload. is my logic wrong? is it conflicted with form action or method?
On my web page the user first views a list of items, then he goes to the next page and makes changes. Then he is sent back to the first page. But the page dose not show the changes unless the user reloads the page. Is there any way to force the page to be reloaded up on return? Either from the page that sends the user back or from the list page its self? Here is a sample of the code that sends the user back to the list page:
<center> <form> <input type="button" value=" Go back to listings " OnClick="javascript: history.go(-1)"> <p> </form> </center>
I've got a little shopping cart app which when you use all of the links on the pages, and buttons etc, things are good, the "shopping basket" on the left navigation updates and shows a sum of items and cost.
However, if you arrive at the home page for example, proceed to the products page, add an item and then click "back", you get a cached page.
I appreciate there are some lines of code I can use, both ASP and html to prevent the cachine, but what I dont want to incur instead is that error IE (and other browsers too I guess - how very Microsoft of me - shows when the page has expired, I think that would probably be worse than the cart not showing any items (or not showing the update) until a link was pressed.
Im building a site which has a login field on top of every page. When the user logs in it is currently set up to go to the default.asp page
My issue is this: since the login is on every page I only want the page to reload when the user logs in. (it must reload to remove the login fields and replace them with the user account menu). I want the user to stay where they are when they login and not be sent to the default page
is it possible to reload just one table row with out reloading the entire page? Or reloading just a table? i'm not thinking it's possible but if it is it's worth asking a qustion.
I cant get around this. Im working on a job interview scheduling system, and i wanna set my recordset to all the interviews scheduled from "tomorrow" and on.... so far I've got this query. Code:
"SELECT * FROM EVENTS WHERE SDATE > "&DateAdd("d", 1, Date)& " ORDER BY SDATE DESC"
this half works, since i dont get the dates from "today" but i do get results from "yesterday" or the day "yesterday" any suggestions?
I took some code reference form a site using reload form after getting data based on drop-down box value. I changed all parameters as per my db, page is loading properly but after select item from drop down box, it does not reload and output query data. Code:
I have an problem with Firefox. I'm using an username and password session in asp. And IE uses the sessions after i reload/refresh a page. But in Firefox i have to login again. It doesn't save the sessions for later use.
Does anybody know the sollution? Because I've searched everywhere.
I'm running Windows 2000 SP4 with the latest IIS and all its patches. I'm working on designing a shopping cart using ASP. The problem I'm running into is that I get random errors when I hit the reload/refresh button. Is this a common issue? The problem seems to stem from my use of the ODBC connection. I'm using a set of commands like this:
'Create command object and recordset Set cm = Server.CreateObject("ADODB.Command") Set rs = Server.CreateObject("ADODB.Recordset")
' Specify the system DSN path cm.ActiveConnection = "SpiritPOS"
cm.CommandText= "SELECT * FROM table_master"
Set rs = cm.Execute
'Clean up Set rs = Nothing
Does anyone see any apparent problems with this? I seem to get some errors stating there is a problem with ActiveConnection sometimes, too. Do I need to set this object to Nothing as well?
I am getting the following error when I try to reload a pop-up page
res://C:WINDOWSsystem32shdoclc.dll/http_500.htm#
in the URL path. This page calls for a javascript from which values are loaded and binded to a dropdown on the page. The code works fine in development environment but it is not working in the production environment. What I want to know is should there be some sort of a command that I should run for the first time for the scripts to load.
There are other similar pop-ups that work fine.Could someone tell me where to look at in solving this error.
when the senssion ends a message box pops up and alerts the customer that it has ended, but I would only know how to do it after they reload the page or soemthing to check if the session ended. Anyone know how to make a msgbox pop up as soon as the session ends? Also in IIS, is there a place where you can set the sesssion length?
I used to have thios bit of code and I have totally forgotton what is was. It set either an expiry for the page forcing the browser to download it from the server or it abandoned something. Anyway I want the page to always check its data and refresh from the server and not use the cache
On a heavily used page that pulls a lot of data from the SQL server and XMl files we would like to implement refresh of only one data grid control in order to improve performance.
Is there a way to refresh data grid control without (post back) reload of the hole page. Data refresh can be done on regular time intervals or on click on the button. Environment (ASP.NET and SQL Server 2000).