User Profile

Collapse

Profile Sidebar

Collapse
Nibbus
Nibbus
Last Activity: Apr 15 '08, 03:47 PM
Joined: Nov 22 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Nibbus
    replied to change struct values
    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...
    See more | Go to post

    Leave a comment:


  • Nibbus
    started a topic change struct values

    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" }
    when printing this.start.x it gives me " runtime error: 'this.start.x' is null or not an object". (IE7)

    finally, It might be handy to attrib those values through other vars, but I think I could do that if I managed to...
    See more | Go to post

  • Nibbus
    replied to remove IE6 mouse event
    Thanks, it seems to work ;)
    I kept the obj = null; at the end, I think that it brings no problem.

    Thanks again...
    See more | Go to post

    Leave a comment:


  • Nibbus
    started a topic remove IE6 mouse event

    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;
    }
    This works fine, and solves me the annoying thing of IE...
    See more | Go to post

  • Nibbus
    replied to refresh variables using other function
    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 you
    See more | Go to post

    Leave a comment:


  • Nibbus
    replied to How can i identify a label?
    Try labelName.setAt tribute('onclic k',"function(); ");...
    See more | Go to post

    Leave a comment:


  • Nibbus
    started a topic refresh variables using other function

    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)
    {
    ...
    See more | Go to post

  • Nibbus
    replied to canvas coordinates
    yes indeed!!!!! thank you very much, problem solved ;D
    you rock!!
    See more | Go to post

    Leave a comment:


  • Nibbus
    replied to canvas coordinates
    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...
    See more | Go to post

    Leave a comment:


  • Nibbus
    replied to canvas coordinates
    just ignore line 3, I forgot to erase it when I pasted the code here
    See more | Go to post

    Leave a comment:


  • Nibbus
    replied to canvas coordinates
    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,...
    See more | Go to post

    Leave a comment:


  • Nibbus
    started a topic canvas coordinates

    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
    See more | Go to post

  • Nibbus
    replied to Can I aggregate divs?
    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...
    See more | Go to post

    Leave a comment:


  • Nibbus
    replied to Can I aggregate divs?
    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...
    See more | Go to post

    Leave a comment:


  • Nibbus
    started a topic Can I aggregate divs?

    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...
    See more | Go to post

  • Nibbus
    replied to Drawing arrows in javascript
    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!
    See more | Go to post

    Leave a comment:


  • Nibbus
    started a topic Drawing arrows in javascript

    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
    See more | Go to post

  • Nibbus
    replied to How to disable Iframe resize???
    Hello,

    try setting the noresize attribute.

    ex :
    <frame name="hiddenFra me" scr="about:blan k" noresize="nores ize" />

    Hope this helps...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...