Hello.
I have a web site that is used to do network performance tests. When a user performs a test, a results page is opened and the information shows inside a table.
What i'd like to do is if the user clicks on another test, on the results page, that is still opened, another line is added to the table with the results of this second test, and so on.
Is this possible?
To prevent that i get an ActiveX message everytime a page loads i'm using on every page a Mark of The Web (<!-- saved from url=(0014)about :internet -->).
4 1514
Hello.
I have a page that performs some operations and for each operation displays the results on another page.
The results page is created via JS code. This results page contains a table for the results and a header. The problem is that the new page opens and the table only displays if i right-click on the page and select Refresh. Anyone knows how can i do this automatically?
Another issue is that for each test a row is to be inserted on the table, but its not working. The inner text for the cells is only for test.
The code i'm using is the following:
<script language="JavaS cript" type="text/javascript">
function addRowToTable()
{
PageResult=wind ow.open("","FTP Results");
PageResult.docu ment.write("<u> RESULTS</u></b></p>");
PageResult.docu ment.write("<p> </p><b>FTP</b>");
HeaderFTPRow(Pa geResult);
var tbl = PageResult.docu ment.getElement ById('TableFTP' );
var lastRow = tbl.rows.length ;
var iteration = lastRow;
var row=tbl.insertR ow();
cell=row.insert Cell();
cell.innerText= "Number1";
cell=row.insert Cell();
cell.innerText= "123456789" ;
cell=row.insert Cell();
cell.innerText= "123";
}
function HeaderFTPRow(Pa geResult){
PageResult.docu ment.write("<ta ble id='TableFTP' border=2>");
PageResult.docu ment.write("<tr ><td id='r0c1' width=150 align=center>Na me<\td>");
PageResult.docu ment.write("<td id='r0c2' width=150 align=center>Ti me (sec)<\td>");
PageResult.docu ment.write("<td id='r0c3' width=150 align=center>Sp eed (Kbits/s)<\td><\tr>");
PageResult=wind ow.location.rel oad(true);
}
</script>
b1randon 171
Recognized Expert New Member
Hello.
I have a page that performs some operations and for each operation displays the results on another page.
The results page is created via JS code. This results page contains a table for the results and a header. The problem is that the new page opens and the table only displays if i right-click on the page and select Refresh. Anyone knows how can i do this automatically?
Another issue is that for each test a row is to be inserted on the table, but its not working. The inner text for the cells is only for test.
The code i'm using is the following:
<script language="JavaS cript" type="text/javascript">
function addRowToTable()
{
PageResult=wind ow.open("","FTP Results");
PageResult.docu ment.write("<u> RESULTS</u></b></p>");
PageResult.docu ment.write("<p> </p><b>FTP</b>");
HeaderFTPRow(Pa geResult);
var tbl = PageResult.docu ment.getElement ById('TableFTP' );
var lastRow = tbl.rows.length ;
var iteration = lastRow;
var row=tbl.insertR ow();
cell=row.insert Cell();
cell.innerText= "Number1";
cell=row.insert Cell();
cell.innerText= "123456789" ;
cell=row.insert Cell();
cell.innerText= "123";
}
function HeaderFTPRow(Pa geResult){
PageResult.docu ment.write("<ta ble id='TableFTP' border=2>");
PageResult.docu ment.write("<tr ><td id='r0c1' width=150 align=center>Na me<\td>");
PageResult.docu ment.write("<td id='r0c2' width=150 align=center>Ti me (sec)<\td>");
PageResult.docu ment.write("<td id='r0c3' width=150 align=center>Sp eed (Kbits/s)<\td><\tr>");
PageResult=wind ow.location.rel oad(true);
}
</script>
Okay, there were quite a few things wrong here. I'll give you my code but you'll need to understand that a) your ending tags used the wrong slash b)you need to use proper HTML with starting and ending html tags especially with tables in IE c)all those insertRow/Cell methods need to have an index argument. Here's the code: -
<html>
-
<head>
-
<script language="JavaScript" type="text/javascript">
-
function addRowToTable()
-
{
-
PageResult=window.open("","FTPResults");
-
PageResult.document.write("<u>RESULTS</u></b></p>");
-
PageResult.document.write("<p></p><b>FTP</b>");
-
HeaderFTPRow(PageResult);
-
-
var tbl = PageResult.document.getElementById('TableFTP');
-
var lastRow = tbl.rows.length;
-
var iteration = lastRow;
-
var row=tbl.insertRow(1);
-
cell=row.insertCell(0);
-
cell.innerHTML="Number1";
-
cell=row.insertCell(1);
-
cell.innerHTML="123456789";
-
cell=row.insertCell(2);
-
cell.innerHTML="123";
-
return;
-
}
-
-
function HeaderFTPRow(PageResult){
-
PageResult.document.write("<table id='TableFTP' border='2'>");
-
PageResult.document.write("<tr><td id='r0c1' width='150' align=center>Name</td>");
-
PageResult.document.write("<td id='r0c2' width='150' align='center'>Time (sec)</td>");
-
PageResult.document.write("<td id='r0c3' width='150' align='center'>Speed (Kbits/s)</td></tr>");
-
PageResult.document.write("</table>");
-
return;
-
}
-
-
</script>
-
</head>
-
<body>
-
<input type="button" value="go" onclick="addRowToTable();" />
-
</body>
-
</html>
-
It still isn't perfect and you should clean up what the code of that new window looks like, but this works.
AricC 1,892
Recognized Expert Top Contributor
Not sure if your problem is solved but here is a way to refresh a page with meta tags:
[html]<META HTTP-EQUIV=Refresh CONTENT="10; URL=http://www.google.com/">[/html]
b1randon 171
Recognized Expert New Member
Not sure if your problem is solved but here is a way to refresh a page with meta tags:
[html]<META HTTP-EQUIV=Refresh CONTENT="10; URL=http://www.google.com/">[/html]
AricC, he doesn't really need a page refresh. That was just his hack to get his content to show up. See my previous post. If he coded properly the page refresh isn't necessary.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Scott |
last post by:
I have a clickable graph that resides on page 1. If user clicks a data point
on the graph, the page runs again yeilding a 2nd graph that shows a more
detailed graph.
Problem is, I have a recordset table on the 2nd graph page and because the
user gets to it by clicking the graph, the page doesn't properly post to
render the recordset table. I can click "Refresh" on 2nd page and table
displays fine.
Is there an ASP refresh command that...
|
by: Marco Maroni |
last post by:
How to force image refresh on client browser ? Is ti possible to force the
refresh of the same image (tha was changed server-side) to the client,
without user press Contrl+F5 in IE ?
-
Marco
|
by: Brad |
last post by:
I created a base page class which sets a response filter and the filter
injects additional html into the response output stream. The filter works
fine and everything works as expected except for the following quirk:
When I navigate my browser to another url (a link in the page, a browser
favorite...it doesn't mater) and then use the browsers (IE 6) Back or
Forward buttons to go back to my filtered page the additional html I had
added...
|
by: Jeronimo Bertran |
last post by:
Hi,
I have a page with a very data intensive grid which needs to be
automatically refreshed constantly if a change is detected. In order to
not refresh the complete page so often, I created an iframe on my page
whose html has the refresh meta as follows :
<meta http-equiv="refresh" content="10">
The iframe is effectivelyh refreshed every 10 seconds without having the
|
by: francois |
last post by:
I have a ASPX form with a dropdownlist that makes a post back (to the same
page of course, just a normal asp.net postback)
That page also has an auto refresh javascript as it needs to refresh its
data automatically.
The problem is that when i click on the dropdownlist, i post back
information to the page, then after that the next refresh will brin me a
alert message populated by internet explorer saying:
"The page cannot be refreshd...
| |
by: Roy Chastain |
last post by:
I have the following simple aspx page hosted on a Win2k server with version 1.0 of the framework
<%@ Page Language="C#" debug="true" %>
<script runat="server" language="C#">
void Page_Load (object sender, System.EventArgs e)
{
Response.Write("value of email_return is " + ASP.global_asax.EmailReturn);
}
</script>
<HTML>
|
by: PK9 |
last post by:
I'm having an issue with the "Refresh" of an asp.net page. The refresh is
actually calling my last onClick event. I thought that asp.net was supposed
to be stateless in that it shouldn't remember that I clicked a button before
the refresh. Here is what is going on:
1) Page Loads
2) User enters some values, clicks the "Save" button
3) The onClick event handler for the save button saves the data to the
database and the page is...
|
by: Brad White |
last post by:
Overview:
I have a custom web app that has an 'Inbox' that refreshes every 30 seconds.
One user uses Outlook to host the web page.
Using IE, the refresh works fine. If the user is working in another window,
the
web page quietly refreshes in the background.
Hosted in Outlook, the refresh causes Outlook to come to the front on
every refresh. Or in XP, causes the toolbar icon to flash.
|
by: R-D-C |
last post by:
Can these two functions coexist?
We have a web site where the querystrings are removed using URL Rewriting.
Instead the page appears to be a html page with a long name (containing what
would be in the querystring).
I have tried switching on output caching and varying by a parameter and
using VaryByCustom but the caching simply does not work. Tested it by
adding the time to the bottom of the page and the time updates every time we...
|
by: Kevin |
last post by:
Hi guys,
I want to refresh some pages every 2 seconds.
however, these html pages are not in my site, they could be any pages from
yahoo.com or msn.com.
I can create a page, which redirect to public internet html page, but how
can I do this in a loop?
do I need to write a console application to make it work?
thanks
|
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: 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: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |