473,614 Members | 2,269 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Output/Refresh page

17 New Member
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 -->).
Nov 15 '06 #1
4 1514
LuisRibeiro
17 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>
Dec 18 '06 #2
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:

Expand|Select|Wrap|Line Numbers
  1. <html>
  2. <head>
  3. <script language="JavaScript" type="text/javascript">
  4. function addRowToTable()
  5. {
  6.     PageResult=window.open("","FTPResults");
  7.     PageResult.document.write("<u>RESULTS</u></b></p>");
  8.     PageResult.document.write("<p></p><b>FTP</b>");
  9.     HeaderFTPRow(PageResult);
  10.  
  11.     var tbl = PageResult.document.getElementById('TableFTP');
  12.     var lastRow = tbl.rows.length;
  13.     var iteration = lastRow;
  14.     var row=tbl.insertRow(1);
  15.     cell=row.insertCell(0);
  16.     cell.innerHTML="Number1";
  17.     cell=row.insertCell(1);
  18.     cell.innerHTML="123456789";
  19.     cell=row.insertCell(2);
  20.     cell.innerHTML="123";
  21.     return;
  22. }
  23.  
  24. function HeaderFTPRow(PageResult){
  25.     PageResult.document.write("<table id='TableFTP' border='2'>");
  26.     PageResult.document.write("<tr><td id='r0c1' width='150' align=center>Name</td>");
  27.     PageResult.document.write("<td id='r0c2' width='150' align='center'>Time (sec)</td>");
  28.     PageResult.document.write("<td id='r0c3' width='150' align='center'>Speed (Kbits/s)</td></tr>");
  29.     PageResult.document.write("</table>");
  30.     return; 
  31. }
  32.  
  33. </script>
  34. </head>
  35. <body>
  36. <input type="button" value="go" onclick="addRowToTable();" />
  37. </body>
  38. </html>
  39.  
It still isn't perfect and you should clean up what the code of that new window looks like, but this works.
Dec 18 '06 #3
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]
Dec 19 '06 #4
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.
Dec 20 '06 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

3
12911
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...
1
10852
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
5
1731
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...
2
23492
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
1
3109
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...
6
1305
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>
9
7729
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...
0
1676
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.
2
2454
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...
3
2101
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
0
8179
marktang
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...
0
8124
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,...
0
8621
Oralloy
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...
1
8272
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,...
0
7050
agi2029
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...
1
6087
isladogs
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...
0
5538
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();...
0
4119
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1421
bsmnconsultancy
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.