473,465 Members | 1,962 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

wz_jsgraphics.js and frames

I'm trying to use the graphics library wz_jsgraphics.js from
http://www.walterzorn.com (I've tried emailing the author but as yet
I've not received a reply).

I've loaded the external library into the top of a frameset and then
within one of the frames I have this code:

....
<link rel="stylesheet" href="fra.css" type="text/css" />
<script language="JavaScript" type="text/javascript">
window.onload = function() {
var jg = new top.jsGraphics("myCanvas");
jg.setColor("#ff0000");
jg.setStroke(3);
jg.drawLine(20,50,453,40);
jg.paint();
}
</script>
</head>

<body>
<div id="myCanvas" style="position:absolute; left:100px; top:100px;
width:100px; height:100px; z-index:1"></div>
....

but it keeps giving me unspecified errors. If I do this instead:

....
<link rel="stylesheet" href="fra.css" type="text/css" />
<script language="JavaScript" type="text/javascript"
src="scripts/wz_jsgraphics.js"></script>
<script language="JavaScript" type="text/javascript">
window.onload = function() {
var jg = new jsGraphics("myCanvas");
jg.setColor("#ff0000");
jg.setStroke(3);
jg.drawLine(20,50,453,40);
jg.paint();
}
</script>
</head>

<body>
<div id="myCanvas" style="position:absolute; left:100px; top:100px;
width:100px; height:100px; z-index:1"></div>
....

then it works. Is it possible, though, to get it working the first way
i.e. with the library loaded in the top of a frameset?

Andrew Poulos
Jul 23 '05 #1
2 7626
For anyone that's interested I found this snippet of information on
their web site that solved my problem:

"Can draw to different frames, or even windows generated by JavaScript.
To accomplish this, the constructor function jsGraphics() optionally
accepts a second parameter which must be a reference to the desired
frame/window."

Sorry for hassling,
Andrew Poulos
I'm trying to use the graphics library wz_jsgraphics.js from
http://www.walterzorn.com (I've tried emailing the author but as yet
I've not received a reply).

I've loaded the external library into the top of a frameset and then
within one of the frames I have this code:

...
<link rel="stylesheet" href="fra.css" type="text/css" />
<script language="JavaScript" type="text/javascript">
window.onload = function() {
var jg = new top.jsGraphics("myCanvas");
jg.setColor("#ff0000");
jg.setStroke(3);
jg.drawLine(20,50,453,40);
jg.paint();
}
</script>
</head>

<body>
<div id="myCanvas" style="position:absolute; left:100px; top:100px;
width:100px; height:100px; z-index:1"></div>
...

but it keeps giving me unspecified errors. If I do this instead:

...
<link rel="stylesheet" href="fra.css" type="text/css" />
<script language="JavaScript" type="text/javascript"
src="scripts/wz_jsgraphics.js"></script>
<script language="JavaScript" type="text/javascript">
window.onload = function() {
var jg = new jsGraphics("myCanvas");
jg.setColor("#ff0000");
jg.setStroke(3);
jg.drawLine(20,50,453,40);
jg.paint();
}
</script>
</head>

<body>
<div id="myCanvas" style="position:absolute; left:100px; top:100px;
width:100px; height:100px; z-index:1"></div>
...

then it works. Is it possible, though, to get it working the first way
i.e. with the library loaded in the top of a frameset?

Andrew Poulos

Jul 23 '05 #2
Moataz Amer
1 New Member
hello there i need to know what was the solution for that problem. Please post me the link or the url
May 16 '06 #3

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

Similar topics

2
by: les | last post by:
Hello, I just wonder what are the implications to use frames to build portal. I've seen some sites that are quite fast with frames but I just wonder if there are hidden "costs". I've tried to...
40
by: JohnnyCJohnny | last post by:
Is it pretty safe to say that almost all web surfers now use browsers that are Frames compatible? What are most people using these days? IE? Thanks
7
by: David Hayes | last post by:
I tried finding an answer on http://www.quirksmode.org/ without success. I am attempting a complicated Frames structure. I have made it work in IE, but not Netscape. I begin with three...
95
by: Neal | last post by:
Of course, every frame site I've ever seen has reduced usability and all. We've been through this before. But as frameset is still a part of HTML, there must be some legitimate use for it, hmm?...
25
by: Steal | last post by:
Hi at all I try to validate this page using the link: http://validator.w3.org/ but it return that this is not a valid HTML 4.01 page please where is it error? Steil <!DOCTYPE HTML PUBLIC...
5
by: Dfenestr8 | last post by:
Hi. I'm designing a site, and I'm trying find a way of browsing it without using frames, so I can test the <noframes> </noframes> tags. I use a linux mandrake 10 system, with KDE 3.2. Is there...
7
by: dj Bass | last post by:
simple, they don't like things that restrict the server-side controls... and when it comes to frames, you need client side stuff and that stuff's up the asp.net strategy. right or wrong?
9
by: guciccon | last post by:
I'll try to use wz_jsgraphics.js library. Is it possible to associate the instruction "onclick" in the tag div generates to construct the design ? I have tried, works on FireFox but not on IE. ...
56
by: Deepan HTML | last post by:
Hi All, Currently i am working in a framed environment where i have divided the window as 20% and 80% and the 20% is used for navigation purpose and right frame for displaying the orignal content....
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...
0
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.