Posts o[firebase] get unique nodeID
Post
Cancel

o[firebase] get unique nodeID

1
2
3
4
5
6
7
8
9
10
			function getNewNodeKey(url) {
				var getNewKey4DB = new Firebase(url);
				var ret = "";

				$.when(getNewKey4DB.push().name()).done(function(x) {
					ret = x;
				});

				return ret;
			}

The id is unique across all paths; it doesn’t matter which path you request it for.</pre>

origin - http://www.pipiscrew.com/?p=714 firebase-get-unique-nodeid

This post is licensed under CC BY 4.0 by the author.
Contents

Trending Tags