No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
11 Posted Topics
Hey, is there any way to get this: `$(document).on('keyup', "*[data-field='quantity'],*[data-field='price']", function(e){` to run whenever there's a change the whole table? At the moment it only changes on the keyup in the [data-field='quantity'] and [data-field='price']. But thing is I have a button to delete a row, and once ones deleted it … | |
Hey guys, I have this forloop reading an array: $data = $_POST['data']; foreach ($data as $array) { foreach ($array as $key=>$prices) { $message .= ''.$prices.' '; } $message .= '<br>'; } It currently displays like this: item1 item2 item3 item4 item1 item2 item3 item4 etc Is there any way to … | |
[http://jsfiddle.net/re2af/193/](http://jsfiddle.net/re2af/193/) Does anyonw know how I can add some pre-filled data to this table? I've commented what I'm trying to do but bascially: Click add item button > creates new row with prefilled data (eg test - test - 1 - 1 - £1) > adds the whole thing to … | |
Re: http://stackoverflow.com/questions/5393085/display-an-array-in-a-readable-hierarchical-format There's some good info on array data formatting i just used. I ended up using: $data = $_POST['data']; foreach ($data as $one) { foreach ($one as $key=>$two) { echo "$two" , "\n"; } echo "<br>"; } This will make it show the array like: item1 item2 item3 item1 item2 … | |
This code displays the contents of an array in the format: 1 2 3 4 1 2 3 4 etc... $data = $_POST['data']; foreach ($data as $tempone) { foreach ($tempone as $key=>$temptwo) { echo "$temptwo", "\n"; } echo "<br>"; } How can I get those results and use them in … | |
This script works fine, but there's a part I'm not sure if there's an easier / better way to do it. The part I'm talking about is commented in the script. Also any general advice on improvements if there are any to be would be cool. <?php if (isset($_POST['submit'])) { … ![]() | |
This script uses lazyloading images. However, it only works when you scroll to images that are off screen when the page loads. See here. Youll notice there's a heading first, and as you scroll to the images they begin to load. http://codepen.io/Chmood/pen/CHlGD/ If you load that script without the heading … | |
Delete, managed to fix. | |
This scrip changes images based on browser size. The medium to larger works fine, but does anyone know why you never get the smaller image even when the windows is smaller than 480px? It just sticks at medium. http://codepen.io/hugo/pen/gDKqG | |
I have this script which is calling 10 divs indavidually from an external file. HTML: <a id="load1" href="#" data-id="1" class="load"> <img> </a> <a id="load2" href="#" data-id="2" class="load"> <img> </a> Javascript: $(".load").click(function () { $("#projects").html(""); $("#loading").show(); $("#projects").load("projects.html #"+$(this).data('id'), function () { $("#loading").hide() }) }) If load1 is clicked, it loads div1 … | |
Hey guys, just joined the forum for a little advice! [Click Here](http://jsfiddle.net/Wa7Wm/) I have mocked up this grid that I'm wanting to create. Intially I was going to do this fluid images (like in this example), but I found the layout always shifted a couple of pixels at smaller sizes … |
The End.