nym-ph's Profile User Rating: -----

Reputation: 4 Apprentice
Group:
Members
Active Posts:
27 (0.02 per day)
Joined:
18-December 10
Profile Views:
1,005
Last Active:
User is offline Jul 23 2012 12:32 PM
Currently:
Offline

Previous Fields

Dream Kudos:
0
Icon   nym-ph has not set their status

Posts I've Made

  1. In Topic: Question Adding a .delay() to every for loop iteration with jQuery

    Posted 19 Jun 2012

    View Postexiles.prx, on 19 June 2012 - 05:07 PM, said:

    Look into using javascripts setInterval() or setTimeout() functions. Then you can call your function every X seconds and pass the element which needs its percentage updated. The the percentage will then update every X seconds.



    I was actually trying to avoid using them, because I thought it would be a more complicated then needed solution. But I saw your recommendation and got hands to work. And it wasn't that complicated after all. =)

    Thank you Sir!



    
    //100 / number of elements that will be downloaded
    var elements_count = 100/$('#preload_imgs').children().size();
    
    //for every element in preload_imgs
    $('#preload_imgs').children().each(function(){
    	//when loaded
    	$(this).load(function() {
    		//iterate every 30ms
    		var i=0; var timer = setInterval(
    		function() { 
    			$('#load').html( parseInt($('#load').html())+1);
    			if(++i >= elements_count)
    				clearInterval(timer);
    		},30)	   		
    	})
    });
    
  2. In Topic: splice() not returning the removed element in the array

    Posted 8 Jun 2012

    This code, was actually working... It just happens that it's returning an Array! And show be treated has such after that.

    I was not accessing the returned element the right way.

    This did trick,

    var returnedElement = books.splice(i, 1);
          alert(returnedElement[0].isbn)
    
    
  3. In Topic: Why is JSON.stringify adding backslashes to a string?

    Posted 7 Jun 2012

    View PostGunnerInc, on 07 June 2012 - 07:04 PM, said:

    the backslash character is an escape character which allows your double quotes to be displayed properly/not throw an error.


    I'll have to encode in JSON on the server side then, right? But, wouldn't it be more efficient do it on the client side to offload the server?

    Thank you GunnerInc! It was helpful!
  4. In Topic: Function Call to Web Services server only returns integers?

    Posted 6 Jun 2012

    View PostDormilich, on 06 June 2012 - 03:34 AM, said:

    did you change the WSDL definition to reflect the change in the return type?


    Ahah! Fantastic! That was it! Thank you so much for your help Dormilich! =) It's working now.
  5. In Topic: Get parameters with an asterisk in Argv[], passed in command line

    Posted 18 May 2012

    View Postsepp2k, on 18 May 2012 - 04:26 PM, said:

    Glob patterns are substituted by the shell if there is at least one match for them. Since this happens before your application even starts, there's nothing your application can do to prevent that.

    The only thing you can do is to escape or quote the glob in the shell, i.e. invoke your application with ./ls directory '*.txt' or ./ls directory \*.txt.

    It should also be mentioned that the original ls does not treat * as a special character. It leaves handling of globs entirely to the shell.


    Thank you so much for your quick reply! Exactly what I needed to know!

    Thank you!!

My Information

Member Title:
New D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

Contact Information

E-mail:
Private

Friends

nym-ph hasn't added any friends yet.

Comments

Page 1 of 1
  1. Photo

    brunoA. Icon

    26 Sep 2011 - 09:08
    Caro Nym-ph,
    A SAFIRA é uma consultora tecnológica criada em 1997 e que desenvolve soluções de BPM, Decision Management e Enterprise Search, para “top tier costumers”.
    O seu perfil surgiu e revela-se interessante face às oportunidades.
    Caso seja do seu interesse contacte-me.
    Obrigado
    Bruno Ambrósio
    Safira
Page 1 of 1