Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

jBinfo

Members
  • Joined

  • Last visited

  1. Hi This is a great web site for compress css and js files using yahoo ui compressor: http://q.gs/OdDw click the button yellow on top. Thank's.
  2. Hi everybody this is a trick to create a custom loop in javascript to loop through the arrays, the full code of our custom loop: // create a global object jBinfo var jBinfo = { /* create a function foreach under the object jBinfo this function have two parameters table an array and callback it's a function */ foreach : function(table, callback) { // loop the array "table" for (item in table) { /* if the callback have one parameter then I call the function "callback(table[item])" and I pass juste the value "table[item]"; if callback have more parameters then I pass the index and the value "callback(item, table[item])"*/ if (callback.length == 1) { callback(table[item]); } else if (callback.length > 1) { callback(item, table[item]); } } } }; // Example 1: var my_array_1 = new Array('0000', '1111', '2222', '3333'); jBinfo.foreach(my_array_1, function(index, value) { console.log('index: ' + index + ', value: ' + value); }); /* the output of example 1: index: 0, value: 0000 index: 1, value: 1111 index: 2, value: 2222 index: 3, value: 3333 */ // Example 2: Associative Arrays var my_array_2 = new Array(); my_array_2['a'] = 'aaaa'; my_array_2['b'] = 'bbbb'; my_array_2['c'] = 'cccc'; my_array_2['d'] = 'dddd'; jBinfo.foreach(my_array_2, function(index, value) { console.log('index: ' + index + ', value: ' + value); }); /* the output of example 2: index: a, value: aaaa index: b, value: bbbb index: c, value: cccc index: d, value: dddd */ the callback in my examples is this: function(index, value) { console.log('index: ' + index + ', value: ' + value); } Thank's
  3.    WBC reacted to a post in a topic: PHP redirect not working in IE
  4. jBinfo replied to fadia123's topic in Frontend
    Hi Normally must one id identifier in full web page, if you want the same identifier to refer to the same element use class="limit" and get it by this function javascript var elt = document.getElementsByClassName('limit'); getElementsByClassName return an array of elements you must doing a boucle for .. in to check all element. thank's
  5. Hi you can make a redirect by using javascript: <?php echo '<script>top.location.href = "ftp://ip_addess_goes_here";</script>'; ?> thx
  6. Hi, your code: mysql_connect($dbhost, $dbuser, $dbpass) or echo(mysql_error()); mysql_select_db($dbname) or die("MySQL Error: " . mysql_error()); Solution $link = mysql_connect($dbhost, $dbuser, $dbpass) or echo(mysql_error()); mysql_select_db($dbname, $link) or die("MySQL Error: " . mysql_error()); be given a link connection to select the database, thank's
  7. jBinfo replied to k3rt90's topic in Frontend
    Hi, $('Selector of li element').width(); or $('Selector of li element').css('width');

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.