212
I Use This!
Very Low Activity

News

Analyzed about 1 hour ago. based on code collected about 1 hour ago.
Posted almost 14 years ago by Romaric
Hi everybody Nice function, I've used it a lot, but encountered a few issues : - it seems unable to decode YYYYMMDD format (not really bad, just use a regex) - in French, there are accented chars in month names. But when using short names, it will ... [More] truncate the html char, i.e. AO& instead of AOÛ. I came up with this fix, using html_entity_decode (you may want to apply it to week days, too) : M: function () { // Shorthand month name; Jan...Dec // Romaric : using html_entity_decode to avoid bugs with accented chars var _month = f.F(); _month = html_entity_decode(_month); return _month.slice(0, 3); }, [Less]
Posted almost 14 years ago by Ralkekaltep1976
Posted almost 14 years ago by marco
@Brett: Hi, Have you had a look at the function I sent you?
Posted almost 14 years ago by Brett Zamir
I assume the compiler might be looking for the text "function_name", so I changed that variable name in the function as a workaround. See if that works...
Posted almost 14 years ago by Bug in function_exists
Hi guys Firstly thanks for a great little script! I am a php programmer and having phpjs is great! I downloaded the latest version of phpjf and found a bug with the function_exists() function. When it is compiled the function definition looks like ... [More] this function_exists: function (_name: function) { which causes an error. I don't think its an actual bug in the code, its just in the compilation of the package :) Thanks again guys Have a great day [Less]
Posted almost 14 years ago by Kolink
My I suggest, intead of return encodeURIComponent(str).replace(/!/g, '%21').replace(/'/g, '%27').replace(/\(/g, '%28'). replace(/\)/g, '%29').replace(/\*/g, '%2A').replace(/%20/g, '+'); The simpler: return ... [More] encodeURIComponent(str).replace(/[!'\(\)\*]/g, function(a) {return '%'+a.charCodeAt(0).toString(16);}).replace(/%20/g, '+'); be used instead? [Less]
Posted almost 14 years ago by Bemjuple2008
Posted almost 14 years ago by Brett Zamir
@marco: I got it, thanks! Super busy with deadlines, but if i don't remember by Sunday, feel free to remind me again...
Posted almost 14 years ago by marco
@Brett: hi i'm the one who has sent you the token_get_all function some time ago. Now i've rewritten it and sent it to you by email. Let me know if you don't receive the email.
Posted almost 14 years ago by Fabricio
Ótimo, foi de grande utilidade, alias, todas as funções são úteis.