474,042 Members | 2,499 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Some refresh question

Hi All,

I have an HTML form which contains A LOT of Javascript. When
submitted, a Perl/CGI program parses the form, processes the data, and
reposts the new data onto the screen.

Problem is, not all the data gets reflected. In the form I have the
following Javascript include:

<script language="JavaS cript1.2" src="$filename"
type="text/javascript"></script>

The file is updated by the Perl/CGI script. I've checked, and the file
is updated properly.

Also in the form is the following code:

<span onMouseOver="st m(Text[$i],Style[1])"
onMouseOut="htm ()">$subject[$i]</span>

Basically, when you move the mouse over the lines displayed on the
screen, a small popup displays. It basically works. If I hit F5 to
refresh, all of the items display properly when the mouse moves over
them.

If I add new data using the form, although the file on disk is updated,
and if I look at the page source the information is there, when I move
the mouse over the menu, the newest item does not get the popup. I
need to hit F5 in order to refresh that........

So, is there something about having Javascript includes, and not
refreshing properly or something???

Jan 26 '06 #1
3 1503
am****@iwc.net wrote:
I have an HTML form which contains A LOT of Javascript. When
submitted, a Perl/CGI program parses the form, processes the data, and
reposts the new data onto the screen.
The form is not parsed by it because the server-side program does not know
about any forms.
Problem is, not all the data gets reflected. In the form I have the
following Javascript include:

<script language="JavaS cript1.2" src="$filename"
type="text/javascript"></script>
Omit the `language' attribute, it is deprecated and the used value is
error-prone. And so what? Unless this client-side script generates some
form controls or sets some variables/properties used later, it has exactly
no meaning regarding the submitted data. Whether it does remains a mystery
until you post its code.
The file is updated by the Perl/CGI script. I've checked, and the
file is updated properly.
There is no file, if you are using it in this way, it is a generated
resource that is served, but a data stream that has no reflection in
a filesystem.
Also in the form is the following code:

<span onMouseOver="st m(Text[$i],Style[1])"
onMouseOut="htm ()">$subject[$i]</span>


This looks like server-side code, however you have a problem with
client-side scripting. (Or you did not tell about using JS/ECMAScript
server-side, too.)
PointedEars
Jan 26 '06 #2

Well, I'm not a Javascript programmer. So, tell me what you want me to
send you, or post, and I'll do that.

The scripts are rather lengthy, so posting them may be a bad
idea..........

What I want is that when the CGI script redraws the form, it also
refreshes the <script> data too.......

Jan 26 '06 #3
Well, I found a solution. Rather than including the script the way I
am doing, within the CGI script, I open the script file and print it to
the page within the <script> & </script> tags..........

Jan 26 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
6493
by: Conax | last post by:
Hi there, My boss is hoping that I can come up with a page that displays some information. The information will always be displayed on specific part of the page, with auto refresh. But he doesn't want the whole page to be refreshed so that buttons and images around the information do not get reloaded each time. Is this really possible? Other pages on this site don't use frames, so this page can't use frams too. Creating an ActiveX...
4
3204
by: Andrew Alger | last post by:
ok i have two forms. Customer.aspx and Parent_Searh.aspx. There is a button on Customer.aspx that when executed runs javascript code to open up parent_search as a popup. After the user searches for the parent and finds the proper parent in the datagrid they then click on the accept button in the grid. Then I populate a session variable with the parent ID. I then go back to the main page and have it refresh using: ...
2
1907
by: Peter Oliphant | last post by:
I now have graphics being drawn in the Paint event of my form (yeah, and it's very cool). Problem was that it only updated any changes to these graphics when Paint was called. So, I then made it so the Refresh() method of the form was called for each graphic object. In this case it drew just fine, but Paint was being called so often I lost control of the form (e.g., trying to close the form using the close 'x' in upper right corner...
2
23582
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
0
1694
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.
3
1174
by: Antoine | last post by:
What is considered best when doing an application that allows you to browse data eg by month? I've currently got an app working so it does a complete refresh when you change the month you are looking at, using a providers SDK tools. This is reasonably effective - but there is a few seconds on jumping between one month and the next (having optomised the rest of the app). However I could change it to only refresh on command, and catch...
10
23444
by: Fred Nelson | last post by:
Hi: I have a VB.NET web application and I need to find a way to cause a page refresh from within my application. Does anyone know how to force the browser to refresh the current page? Thanks very much for your help! Fred
10
2767
by: Bill Nguyen | last post by:
I would like to be able to get an active browser window to refresh the URL (reload) every 5 minutes. Is it possible in VB.NET? Thanks Bill
6
5428
by: =?Utf-8?B?TWFyaw==?= | last post by:
Hi - I'm having trouble refreshing a datagrid control bound to a dataset that was created from the New Data Source wizard. What is the code required to refresh the datagrid with data from the data source (sql db)? More Details: The application is C# Windows (VS 2005).
3
1820
by: =?Utf-8?B?cm9kY2hhcg==?= | last post by:
hi all, i betcha here's a question never asked before ;) i have a simple web form with a gridview and a button. the button doesn't do anything but a postback. i load up the gridview from the database, hit the button, then hit the refresh button and here's where my question occurs. I get a message saying that "it needs to resubmit/resend the data?" what is happening here and how do I resolve this undesired message?
0
10536
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
10335
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
11137
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
10303
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
8689
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
7862
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
6648
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
5405
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4937
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.