-
Edited jQuery question getElementById
Hi all, just a quick question. I believed that `$('#value')` was a jQuery function equivalent to `document.getElementById('value')` however, in the code below, only the second function gives the desired result. … -
Edited jQuery question getElementById
Hi all, just a quick question. I believed that `$('#value')` was a jQuery function equivalent to `document.getElementById('value')` however, in the code below, only the second function gives the desired result. … -
Created jQuery question getElementById
Hi all, just a quick question. I believed that `$('#value')` was a jQuery function equivalent to `document.getElementById('value')` however, in the code below, only the second function gives the desired result. … -
Began Watching jQuery question getElementById
Hi all, just a quick question. I believed that `$('#value')` was a jQuery function equivalent to `document.getElementById('value')` however, in the code below, only the second function gives the desired result. … -
Replied To a Post in AJAx forms
After looking at the code for many hours now, I can't understand why it's not working... Is the Ajax form plugin incompatible with my version of jQuery? -
Replied To a Post in AJAx forms
I was just hosting the site locally, but I'll keep it up here for a small time: http://form.overheard.co.nz I've only just added it to the DNS records, so it may … -
Marked Solved Status for Javascript fade in + zindex
Hi all, I have two square <div> containers one under the other. When I click a button, I would like the second <div> to fade on top. Because the top … -
Replied To a Post in Javascript fade in + zindex
Ah cross fade, clever. That solves it. Cheers! -
Created AJAx forms
Hi all, I'm having some serious issues with AJAX forms. I'm currently using jQuery 2.2.0 and the jQuery Form plugin. I have a simple php file: <?php if(isset($_POST)): print_r(json_encode($_POST)); endif; … -
Began Watching AJAx forms
Hi all, I'm having some serious issues with AJAX forms. I'm currently using jQuery 2.2.0 and the jQuery Form plugin. I have a simple php file: <?php if(isset($_POST)): print_r(json_encode($_POST)); endif; … -
Created Javascript fade in + zindex
Hi all, I have two square <div> containers one under the other. When I click a button, I would like the second <div> to fade on top. Because the top … -
Began Watching Javascript fade in + zindex
Hi all, I have two square <div> containers one under the other. When I click a button, I would like the second <div> to fade on top. Because the top … -
Replied To a Post in Object Iteration
If I extend the foreach to the below: foreach($response as $statuses) { foreach($statuses as $s) { foreach($s as $key => $a) { echo '<pre>'; var_dump($key); echo '<pre>'; //Store all IDs … -
Edited Object Iteration
Hi all, I have an array of objects that looks like this: object(stdClass)[2] public 'statuses' => array (size=97) 0 => object(stdClass)[3] public 'metadata' => object(stdClass)[4] public 'iso_language_code' => string 'en' … -
Created Object Iteration
Hi all, I have an array of objects that looks like this: object(stdClass)[2] public 'statuses' => array (size=97) 0 => object(stdClass)[3] public 'metadata' => object(stdClass)[4] public 'iso_language_code' => string 'en' … -
Began Watching Object Iteration
Hi all, I have an array of objects that looks like this: object(stdClass)[2] public 'statuses' => array (size=97) 0 => object(stdClass)[3] public 'metadata' => object(stdClass)[4] public 'iso_language_code' => string 'en' … -
Marked Solved Status for Array Struture
hi all, I am trying to make an array that looks like this: Array ( [status] => [MERGE0] => removed@email.address [merge_fields] => Array ( [MERGE1] => James [MERGE2] => doe … -
Replied To a Post in Array Struture
Thanks for the replies. I ended up doing something quite simple. Instead of: `$mergeField[] = ['MERGE'.$i.'' => $d];` I did: `$mergeField[$field] = $d;` And that worked nicely. Might be a … -
Created Array Struture
hi all, I am trying to make an array that looks like this: Array ( [status] => [MERGE0] => removed@email.address [merge_fields] => Array ( [MERGE1] => James [MERGE2] => doe … -
Began Watching Array Struture
hi all, I am trying to make an array that looks like this: Array ( [status] => [MERGE0] => removed@email.address [merge_fields] => Array ( [MERGE1] => James [MERGE2] => doe … -
Replied To a Post in while loop php
`< 180 `is the limit on the for loop. `180 - 1 `is the value of $i on the last loop. The purpose of setting time() is to have a … -
Created while loop php
Hi all, I am trying to get a for loop to cycle through, sleep, and then keep going until a specified time. I'm running into memory errors and unsure whether … -
Began Watching while loop php
Hi all, I am trying to get a for loop to cycle through, sleep, and then keep going until a specified time. I'm running into memory errors and unsure whether … -
Created Nginx + php mail
Hi all, I'm using nginx to host multiple servers on one terminal through virtual hosts. Each one needs to be able to send emails, but I am unsure how to … -
Began Watching Nginx + php mail
Hi all, I'm using nginx to host multiple servers on one terminal through virtual hosts. Each one needs to be able to send emails, but I am unsure how to … -
Marked Solved Status for php redirect and callbacks
hi all, I have been coding a payment gateway using a company called SwipeHQ. Using their APIs I have programatically created products from my website and make sure they stay … -
Replied To a Post in Php multi array
Thanks guys, some really great answers! -
Gave Reputation to invisal in Php multi array
Why don't you do something like this? for($i = 0; $i < count($response); $i++) { $ph[$response[$i]] = array('quantity' => $iteminfo[$i][1]); } -
Gave Reputation to jkon in PHP objects & arrays
I have no idea why any plugin would return an anonymous object stdClass , it doesn't make any sense , but you wrote that this plugin that you use does … -
Created php redirect and callbacks
hi all, I have been coding a payment gateway using a company called SwipeHQ. Using their APIs I have programatically created products from my website and make sure they stay … -
Began Watching php redirect and callbacks
hi all, I have been coding a payment gateway using a company called SwipeHQ. Using their APIs I have programatically created products from my website and make sure they stay … -
Marked Solved Status for Php multi array
Hi all, I am aiming to create an array with the same structure as this: Array ( [798D25C0DEABD] => Array ( [quantity] => 1 ) [40B2B0FA3D222] => Array ( [quantity] … -
Replied To a Post in Php multi array
Ah, I discovered a new function! `$ph = call_user_func_array('array_merge', $ph);` Compacted everything nicely. Very slow though, so if someone has a better solution please let me know :) -
Created Php multi array
Hi all, I am aiming to create an array with the same structure as this: Array ( [798D25C0DEABD] => Array ( [quantity] => 1 ) [40B2B0FA3D222] => Array ( [quantity] … -
Began Watching Php multi array
Hi all, I am aiming to create an array with the same structure as this: Array ( [798D25C0DEABD] => Array ( [quantity] => 1 ) [40B2B0FA3D222] => Array ( [quantity] … -
Replied To a Post in PHP objects & arrays
Well, without really understanding what happened, I managed to resolve the issue I had. To make things simpler, I used json_decode(value, true) to turn all the objects into arrays, and … -
Replied To a Post in PHP objects & arrays
What I don't understand is when the object I get from $order->get_items looks like: stdClass Object ( [356] => stdClass Object ( [name] => steel wool 3 [qty] => 1 … -
Replied To a Post in PHP objects & arrays
Hi jkson, thanks for getting back to me. The first stdObject I get is from a wordpress plugin. `$order->get_items` returns the first standard object array. The first foreach code I … -
Created PHP objects & arrays
Hi all, Been really trying to get a grips with objects in PHP. I think my lack of understanding isn't helping here! Basically, with the help of another user here … -
Began Watching PHP objects & arrays
Hi all, Been really trying to get a grips with objects in PHP. I think my lack of understanding isn't helping here! Basically, with the help of another user here … -
Marked Solved Status for php array string issue
Hi all, I have a fairly limited understanding of how objects work exactly, but basically I have: `$response[] = $html->data->identifier;` Which I would think stored the values as an array, … -
Replied To a Post in php array string issue
Ah, nvm. Simple change to `$iteminfo[$i] = $value;` fixed this. Thanks! -
Replied To a Post in php array string issue
Thanks, that seems to have helped. Just one more question though. I modifed the code a little to filter out the values I want: foreach ($itemsArray as $key => $obj2) … -
Replied To a Post in php array string issue
Here is the result I get: Array ( [0] => stdClass Object ( [374] => ) ) -
Replied To a Post in php array string issue
Yeah, it definitely is. I'm going to expand on this a bit more. I first start with an object when I go: `$itemsArray = $order->get_items();` This gives me something that … -
Created php array string issue
Hi all, I have a fairly limited understanding of how objects work exactly, but basically I have: `$response[] = $html->data->identifier;` Which I would think stored the values as an array, … -
Began Watching php array string issue
Hi all, I have a fairly limited understanding of how objects work exactly, but basically I have: `$response[] = $html->data->identifier;` Which I would think stored the values as an array, … -
Created msmtp php mail
Hi all, So I've never really understood the php mail function, but I've tried to set up msmtp after failing a bit with postfix. The problem I get now is … -
Began Watching msmtp php mail
Hi all, So I've never really understood the php mail function, but I've tried to set up msmtp after failing a bit with postfix. The problem I get now is … -
Marked Solved Status for nginx caching
Hi all, my understanding was that Nginx doesn't do any caching unless you tell it to. However, for some reason, all my filles are being cached, and so the website …
The End.