473,769 Members | 3,102 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

big javascript is creating problem for browser

Hi,

Kindly, look at the following problem.

Objective: To draw a message sequence chart (MSC) from given log file.

Input: Generated trace file (eg log.trace)

Output: log.trace.html

Strategy used:

Log file (input) --- (process with perl) --- generated html file
(output)

The perl will process input log file & it will generate a html file,
which we will open using any web browser.

Java script is being used, as html is unable to draw graphics. I am
using a java script library (wz_jsgraphics. js) which provide simple
line drawing, text display facility with appropriate size & color.

I am calling this library in my program (html file) to get the proper
output.

Problem: This program works fine for small number of messages. For
large number of message browser complaints:

A script of this page is causing Internet Explorer to run slowly. If it
continues to run, your computer may become unresponsive.

Do you want to abort the script?
Yes No
I tried it on FireFox but again FireFox complaints about size of
script, & it continuously asks user to abort or continue with this
script).

Improvement to problem: If I just shuffle around & minimize the
computational time (for example : priting all vertical lines in one
shot (since I know how many vertical lines are to be printed), Further,
if I group all the messages coming out from one layer/module & print
them performance enhances.

But such delta improvements were not enough as the input file might
contain more than 5k messages as a result, there are issues as
mentioned above.

kindly look into this issue & give me some pointers as to how to
proceed further ?

Thanks & Regards,
Raman

Oct 6 '06 #1
1 1558


raman wrote:

Log file (input) --- (process with perl) --- generated html file
(output)

The perl will process input log file & it will generate a html file,
which we will open using any web browser.

Java script is being used, as html is unable to draw graphics.
As you already use Perl on the server, have you considered to create the
graphics on the server and simply include it in a HTML document with an
img element e.g.
<img src="createGrap hics.pl" alt="whatever">
That way you do not depend on JavaScript in the browser.

As for those messages asking the user to allow or discontinue the
running of a script, you would have to break up your scripts into parts
and run the first part, then run the second part with setTimeout, and
have the second part use setTimeout again to run the third part and so on.

Another approach would be to generate the graphics using HTML and CSS as
on the server as I think the client-side library is not doing anything
different, it simply draws with lots of CSS positioned and colored layers.
--

Martin Honnen
http://JavaScript.FAQTs.com/
Oct 6 '06 #2

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

Similar topics

9
2112
by: Charlene Russ | last post by:
Learn on-line at your own in a user-centered format with plenty of interaction and personal attention. This is a basic level coursed designed to introduce the novice to intermediate computer user to the JavaScript language, and focuses on creating user interactivity on personal websites. This Object Oriented Language is known for creating a high level of interactivity with minimal coding, and is fairly simple to learn. We will begin...
53
5743
by: Cardman | last post by:
Greetings, I am trying to solve a problem that has been inflicting my self created Order Forms for a long time, where the problem is that as I cannot reproduce this error myself, then it is difficult to know what is going on. One of these Order Forms you can see here... http://www.cardman.co.uk/orderform.php3
6
1349
by: TJ | last post by:
Hello All, I posted a question a few days ago entitled "Select element with no selected options". Over the course of the discussion, RobG wrote: > This is just an example, it is not really suitable for the web since > without JavaScript it doesn't work at all and whilst I've stuck to > standards, it will be intolerant of some (particularly older) browsers > - but it is a bit of fun trying to do some of this stuff and create > ...
136
9447
by: Matt Kruse | last post by:
http://www.JavascriptToolbox.com/bestpractices/ I started writing this up as a guide for some people who were looking for general tips on how to do things the 'right way' with Javascript. Their code was littered with document.all and eval, for example, and I wanted to create a practical list of best practices that they could easily put to use. The above URL is version 1.0 (draft) that resulted. IMO, it is not a replacement for the FAQ,...
7
1934
by: phal | last post by:
Hi I think there are many different browsers to browse to the Internet, how can I write the javascript to identify different browser and display according to the users. Some browser disable the javascript by default or by the user, how can i solve this problem if the javascript is disable. thank you
5
2088
by: petermichaux | last post by:
Hi, Some servers return JavaScript as the response to an AJAX request. When the response JavaScript is eval'ed it calls other JavaScript functions already in the browser to update elements, etc. This seems like a good system because it allows so much freedom in creating the desired behavior in the browser. The required data doesn't have to be converted to XML or JSON on the server. The browser doesn't have to have templates for...
3
3649
by: Bateman27 | last post by:
Hi, don't know if this is the right place for this but wondered if anybody can help. When I try to open a picture on gettyimages, or a new chat window on MSN (either by clicking on the image, or on the MSN username) nothing happens. If, in gettyimages, I right click on the image and select to open in a new window a new browser launches starting with "javascript:OpenChildWindow" but comes up as page can not be displayed. I don't know if...
6
463
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - I have <a href="javascript:somefunction()"what .... ? ----------------------------------------------------------------------- Whatever the rest of your question, this is generally a very bad use of the javascript pseudo protocol. It was designed so that a function could return a new page. For example: ` javascript:"<p>Hello</p>" `. Using it simply to...
2
37697
Frinavale
by: Frinavale | last post by:
JavaScript in ASP.NET Using JavaScript in ASP.NET pages can make your application seem to work faster and prevent unnecessary calls to the server. JavaScript can be used to perform client-side functionality in the user's browser without having to make calls back to the server; thus, saving resources. The following example demonstrates how you can use an ASP.NET button to trigger a JavaScript call which modifies an ASP.NET TextBox. ...
24
2200
by: Aaron Gray | last post by:
From what I have been looking at for Javascript library development, browsers that support Javascript 1.5/ECMAScript 3/JScript 5.5 looks like the base level to pitch at. Anyone add anything ? Aaron
0
9589
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
9423
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
10222
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...
0
10050
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8876
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
7413
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
6675
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
5310
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
3967
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

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.