thanks for your answer pronerd, but I still can´t work it out... even by object as you sugested (the array should work by I really wanted not to be by array).
the code I posted works in FF, that´s why I wanted to follow the same approach for IE7...
User Profile
Collapse
-
change struct values
Hello all the coders!
I´m trying to attrib a value to x and y, what am I doing wrong?
Code:this.start = { x:"hello1", y:"hello2" }
finally, It might be handy to attrib those values through other vars, but I think I could do that if I managed to... -
Thanks, it seems to work ;)
I kept the obj = null; at the end, I think that it brings no problem.
Thanks again...Leave a comment:
-
remove IE6 mouse event
Hi there!
I had some problems putting mouse events to work on IE6 some days ago. After googling a bit I found this solution:
Code:function addOnMouseOver(obj, id) { obj.onmouseover = function() { changeProcessOpacity(id); }; obj = null; }
-
I worked it around by removing var c and d from function1.
Don´t know if it´s working in the same way, but at least show´s me c and d values using objf2.c and objf2.d ...
Thank youLeave a comment:
-
-
refresh variables using other function
Hello,
I need a function to alter some variables of other function, how can I do that?
ex:
Code:function1 () { var a = 7; var b = 25; var c; var d; function2 (a, b); //Does a bunch of tests and refreshes c and d values alert(c); // --> should be 2 alert(d); // --> should be 1 } function2 (a, b) {
-
yes indeed!!!!! thank you very much, problem solved ;D
you rock!!Leave a comment:
-
Not quite... or better, I can make them work, but they don´t quite do what´s anounced... for example, I created a canvas with 100px width and 100px hight. As they use in the tutorial, I moved the cursor to (0,0) , using moveTo(0,0) and then drew a lineTo(100,100) . Because lineTo receives just the target coordinates of the line, this should draw a perfect diagonal across my canvas, but it doesn´t!!! if you just try these several lines lines I´m...Leave a comment:
-
just ignore line 3, I forgot to erase it when I pasted the code hereLeave a comment:
-
Hi acoder,
Everything I did so far I learnt on that page! :D
I have worked out that the coordinates do not start in (0,0) but they gain the global coordinates of the document. The problem now is that I´m getting the coordinates, drawing, but can´t move the cursor where I want. For ex, I want to draw from a start position to a finish position, positionate myslf in another start point and draw a line to another finish point,...Leave a comment:
-
canvas coordinates
Hi there,
I´m using <canvas> dhtml tag for drawing some lines . The problem is that I generate them in a loop and then I want to draw, but nothing is happening... the coordinates of the canvas are (0,0) always?? or when a canvas is generated it gets global coordinates and so I have to try catch them another way?
Thanks for your time -
Yes, they´re being created inside another div called "dropZone" .
I tried that option, but the divs created to the relations are not the only divs inside dropZone, the divs representing the entities are also inside. Even selecting them (entity divs) by class,I still can´t select the other ones which don´t have any id...
I´m so stuck in this that I´m getting bored... maybe I´ll...Leave a comment:
-
Hi acoder,
As far as I can tell, this lib uses the same method of other various drawing libs to draw a line. Pixels are painted by creating small background-colored layers (DIV elements), and arranging these to the desired pattern.
The reason I can´t count the divs created is because they´re created on the fly by the function drawLine(x1 , y1 , x2, y2), being in cache until paint( ) is called, function which actually...Leave a comment:
-
Can I aggregate divs?
Hi there,
I´m writting a program that simulates an ER model. I´ve managed to draw the entities and relations but I´m stuck now...
I drew the relations using "wz_jsgraphics. js" lib from http://www.c-point.com/javascript_vect or_draw.htm .
My problem now is that this lib draws lines by creating tons of divs and combining them together, fact that doesn´t meet my goals, because I wanted to turn the relation... -
thanks, that might be handy. I´ll continue looking for some nice functions of YUI libs, because I´m already using it for other things and it would be nice using the minimum libs possible. licences are also an issue... but if I turn up with empty hands again, I´ll try adapting that one for my needs.
More options are welcome.
Thanks!Leave a comment:
-
Drawing arrows in javascript
Hi there,
I´m trying to draw an arrow using YUI js libs, but I´m not finding pleasent functions... does anyone know any good drawing js lib, or know the correct functions to call in the YUI lib?
Thanks -
Hello,
try setting the noresize attribute.
ex :
<frame name="hiddenFra me" scr="about:blan k" noresize="nores ize" />
Hope this helps...Leave a comment:
No activity results to display
Show More
Leave a comment: