Hi folks,
I have the following query that returns the unique rows from a couple of tables...
SELECT DISTINCT GameOptionsMap.Value, GameOptionsMap.PositionID FROM playergamepositionmap
INNER JOIN GameOptionsMap ON (playergamepositionmap.GameID = GameOptionsMap.GameID)
WHERE...
Hi there,
I am using an array of objects to simulate an associative array, it is declared as follows:
nan12h = { "0": { "count": "24", "name": "Cash in the Attic", "starttime": "11:30", "startstamp": "1218108600", "endtime": "12:15", "endstamp": "1218111300", "description": "Sheila Long\'s...
I have an array of data that contains a key [id], and also a list of extended information relating to the data stored in an object that contains the key [chanid]. What I would like to do is loop through one or the other and output all the information from both data sources. The only way I can...
Hi there, I am trying to build some error handling into my current application. I have read around try..catch and exceptions but I am struggling to get the examples I see to work in my real world environment.
Users are allowed to enter the IP address of a second server on the network which has...
Hi,
I am currently using a db class to handle my database functions, but I want to connect to the DB every time an instance of that class is created. I am currently doing this:
class db { // class for handling db access
var $dbc = array('host' => 'localhost', 'user' => 'root', 'pass' =>...
Hi all...
I am trying to use the exec command to ping a server on the local network through PHP. The problem I have is that the result of the ping is not being passed back to the PHP when the script is executed from a browser.
The command I am using is simply:
<?php echo exec('ping bbc.co.uk...
I am hoping to allow users access to certain parts of our main corporate server by using a basic PHP login to generate a menu of items they can access. On our server is a variety of PHP applications some open source, and some home written. At the moment we have our webmail, a wiki, a bug...
Hi guys.
Firstly, I know that AJAX does not allow async page requests to a different domain, and I understand why. My question relates to which domain is classed as the original domain. Is it the domain the pages is loaded from, or is it the page the JAVASCRIPT is loaded from. This may seem...
I am trying to build basic web browser functionality for a device that is not a PC and has a very basic web browser built in to the device. One of the things I have done on all pages is attached an event listener to the onkeypress function in order to attach certain functions to certain keys...
I have a contacts directory that works great in PHP and MySQL, what I want to do now it to generate pages of labels that can be printed out to enable us to mailshot our customers. I have a template in Word format that prints onto the labels perfectly. My first thought was to generate a PDF that...
I am trying to execute a function only if an element with that id exists on the document. I am trying something like:
if (divObj = document.getElementById("container")) {
Execute Function
}
But to no avail, am I treading the right path?
Thanks in advance,
G
-Geeeeeeeeeeeeeeeeeeeeeeee-
I have a page that consists of a menu at the top of the page, a nav to the left and then content to the right like this:
----------------------------
| Menu |
----------------------------
------ --------------------
| | | |
| N | | CONTENT |...
Does such a think exist as a firebug type plugin for IE6/7? My ajax type application works fine in Firefox but now I'm trying to get it working with IE I'm finding debugging a right pain! Thanks for any help.
G
-Geeeeeeeeeeeeeeeeeeeeeeee-
I'm trying to use the blue circle as my bullet image but align the text next to it more vertically centered. I've tried using padding-bottom and margin-bottom but it's driving me up the wall! vertical-align:center doesn't seem to help either. Any advise greatly received.
-Geeeeeeeeeeeeeeeeeeeeeeee-
Hi, I want to add an onblur event to a specific textbox. The textbox is created by a php class which is why I can't add the event into the html. I have the following:
document.getElementById('ink_colours_edit').onchange = showinks();
Where ink_colours_edit is the id of the textbox and...
Is there any way to restrict a function so that it can only be called from the class that it is declared in? This might not be very well explained so I will give an example...
class example {
function a () {
echo 'a!';
}
function b () {
echo 'b!';
$this->a();
}
}
So...
Hi guys again, basically I have 2 scripts that both need to attach event handlers to different events onload. On attaches to "onkeyup" whilest the other attaches to "onchange". The scripts initialise as follows:
window.onload = attachEditHandlers;
function attachEditHandlers() {
var objInput...
Hi, anyone who has read my posts will know I'm new to the whole JS scene and I just had a couple of questions...
I've been learning by following tutorials and dissecting others code. I noticed straight away that variable names have no prefix like they do in other languages, but when coding I...
I have the xml which is loaded in http.responseXML. The XML can either contain a node called "field" or a node called "error" depending on if the validation was successful. I want to check if there is a node called error so I am using the following code:
if...
Hi there, I'm trying to do an asynchrynous request to a php page and then update a div with the contents. I've done this sucessfully in the past but this script is driving me insane! Where should I place the onreadystatechange method in this script please:
var http = getHTTPObject();
var url =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.