nym-ph's Profile
Reputation: 4
Apprentice
- Group:
- Members
- Active Posts:
- 27 (0.03 per day)
- Joined:
- 18-December 10
- Profile Views:
- 816
- Last Active:
Jul 23 2012 12:32 PM- Currently:
- Offline
Previous Fields
- Dream Kudos:
- 0
Posts I've Made
-
In Topic: Question Adding a .delay() to every for loop iteration with jQuery
Posted 19 Jun 2012
exiles.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) }) }); -
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) -
In Topic: Why is JSON.stringify adding backslashes to a string?
Posted 7 Jun 2012
GunnerInc, 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! -
In Topic: Function Call to Web Services server only returns integers?
Posted 6 Jun 2012
-
In Topic: Get parameters with an asterisk in Argv[], passed in command line
Posted 18 May 2012
sepp2k, 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.
|
|


Find Topics
Find Posts
View Reputation Given
|
Comments
brunoA.
26 Sep 2011 - 09:08A 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