Search:
Type: Posts; User: Christophe27
Search :
Search took 0.03 seconds.
Hmm, that does work but doesn't seem the correct way to do it :)
There must be a simple explanation, anybody?
Thanks for the support refreezed!
Christophe
Yes, that's exactly what I'm doing. I use encodeURIComponent() to encode URL's but like said, the encoding itself works fine, but when I paste the following url in the webbrowser (i use chrome) the...
I think this is a basic question, however, for some reason my small and simple script won't work ..
Since my framework don't allow special characters, I have to encode an url. So for example...
Hi,
I'm struggling with a problem for quite some time and would be happy to finally find a solution. I use JS on the front and backend (Node).
I store all my functionallity for the backend in...
And at the moment I use this mess:
var ns = params.namespace.split(' ');
params["clientIP"] = socket.handshake.address.address;
if( typeof ns[1] === 'undefined' ) {
...
Hi Gray,
Thanks for your reply!
Your result gave: [['this']['is']['a']['namespace']], not the desired structure I was hoping for ...
I'm setting up a node server using socket.io. On the...
Anybody? Help is very appreciated!
Yes, I know, but that will create an one array with four properties. I need a an array, in an array, in an array .... ;)
split() will create ['this', 'is', 'a', 'namespace'] instead of...
Hello,
Does anybody knows an efficient way to go from ...
var ns = this is a namespace
... to this ...
var ns = ['this']['is']['a']['namespace']
Hi,
Can anyone help me with this one. I'm not a master in regex :(
I would like to filter the following string from ...
'123||Hi there'
... into ...
Hi,
I have a function which renders templates for my single page application. The function gets its data via socket.io.
function renderTemplate() {
var result;
...
Hi,
I can't find an error event which is triggered when the initial connection with the server over socket.io failed or lost after for example 10 minutes?
Does anybody know a workarround?
...
Hi,
We ran into a problem. Imagine you have 5 users with a socket.io connection to a Node server. When the 'onchange' event gets triggered, all clients will be notified. But what if you have these...
Using the array notation works fine for me! thanks!
I'm not sure if you understand me (or if I understand your reply)
I try to achieve the following:
// I try to write some code like ...
GLOBAL.foo.bar.variable
// Instead of ...
Hello,
Can any of you guys help me out with the following string transformation pls? :)
/hi/guys/id/from/page
... has to become ...
hi.guys.id.from.page
Hi,
Does anybody know how I can use a variable in a namespace?
var variable = 'bar';
new GLOBAL.hi.there.variable();
Hi,
Is it possible to capture the language of a users web browser with JavaScript? If not, is it possible with PHP or Node?
Thanks! :)
Christophe
Thank you for your response! :)
Hi,
I wonder what the difference is between appending a constructor to a variable or not.
So what is the difference between the following code?
var foo = new bar();
new bar();
Since I have lots of ajax calls to the server, I want to create one function which makes the call dynamically.
function ajaxcall(url, param, type) {
var result;
$.ajax({
url: url,
...
Just tested it, works great! thanks!
So simply insert a script tag in the html, set the source and the file will be loaded and executed on the fly?