-
Replied To a Post in when to use innerHTML ?!!
Three reasons. One, you get an Ajax result that has preformatted html as the response, or a function that does the same. The second reason is laziness. And the third … -
Began Watching cant understand some code in this example about visibility property ...
http://jsfiddle.net/samertaha/Y2ULV/ kindly see the visibility sample up here , in the first rows of the javascript , they declared some variables , but i couldnt understand why they declared a … -
Replied To a Post in cant understand some code in this example about visibility property ...
It's easier to follow what they did in code. They easily could have made the entire anchor tag with innerHTML, but chose to be explicit for the sake of readability. -
Began Watching Password 101 (part 1): hashes and salts
**How do passwords work?** What a password isn't, or at least really shouldn't be, is some kind of secret word or phrase that is simply compared against a table of … -
Replied To a Post in Password 101 (part 1): hashes and salts
For a simple PHP example of this in "practice" have a look here: http://www.daniweb.com/web-development/php/threads/431052/how-to-have-a-password-security#post1847238 It never did get any comments for improvement or correction. It would be interesting to see … -
Began Watching Input field loses focus in android, causing onscreen keyboard to disappear.
I am baffled at this webform on my responsive site which works perfectly fine in all iOSdevices and android tablets. However on android smartphones, specifically samsung s3/s4 -when the text … -
Replied To a Post in Input field loses focus in android, causing onscreen keyboard to disappear.
You may have to look outside the form to figure out what is going on. I can image an on-resize firing, or the phone triggering an orientation change, when the … -
Began Watching Second form does not seem to do anything (working with multiple forms)
Hello guys, I need help about this, I have a PHP page, which searches for records, based on their first and last names, if sql finds the data then the … -
Replied To a Post in Second form does not seem to do anything (working with multiple forms)
On line 61 of edit.php you are looking for $_POST["submit"], and I don't think that exists. Try changing it to $_POST["search2"] or just drop the name of the submit button... -
Began Watching Why would Flash work in IE 9 but not in IE 11?
Hello Forum, Why would Flash work in IE 9 but not in IE 11? That is, why would Adobe Flash work with Microsoft Internet Explorer Version 9 and not work … -
Replied To a Post in Why would Flash work in IE 9 but not in IE 11?
It all depends on what your flash obeject is doing. IE9 flash is not the integrated Pepper flash, which is used in IE10/11. If you are doing something that the … -
Began Watching Get paid to answer questions
I'm thinking of going down the route where members can actually get paid to answer questions. Here's how I am thinking the concept might work, and you tell me if … -
Replied To a Post in Get paid to answer questions
The other issue- we solve many questions but they never get marked solved. Once the user implements the answer, what motivation do they have to mark it and pay for … -
Replied To a Post in Writing out the DOM List
It all depends on what your actual code looks like (including the HTML). Printing out [object nodelist] means the value you are passing into the function is an HTML Collection, … -
Replied To a Post in $_SERVER['DOCUMENT_ROOT'] on img src?
I do not believe SERVER_NAME includes the protocol (so, no, it should not show http://http://) -
Began Watching Writing out the DOM List
var acorn = document.getElementById("boxa"); var outputResults = acorn.childNodes; document.write(outputResults); My goal is to write all the child nodes within the id=boxa, that is not working ? -
Replied To a Post in Writing out the DOM List
this is a crafty way of doing it... http://stackoverflow.com/questions/1700870/how-do-i-do-outerhtml-in-firefox function outerHTML(node){ // if IE, Chrome take the internal method otherwise build one return node.outerHTML || ( function(n){ var div = … -
Began Watching $_SERVER['DOCUMENT_ROOT'] on img src?
Can i use $_SERVER['DOCUMENT_ROOT'] to put the path of a img? Why this wont work? $imgLocation = $_SERVER['DOCUMENT_ROOT'].'/images/logo.jpg'; echo '<img src="'.$imgLocation.'" alt="logo.jpg"'; -
Replied To a Post in $_SERVER['DOCUMENT_ROOT'] on img src?
I believe you are looking for: $_SERVER['SERVER_NAME'] DOCUMENT_ROOT will give you a local path on the host machine, which will begin with a drive letter and not a protocol (like … -
Created Help with concept
So... I would like to work on a program that will work on trilateration using wifi signals (as I understand it, much like Google does for indoor GPS fall-off). Sadly, … -
Began Watching Help with concept
So... I would like to work on a program that will work on trilateration using wifi signals (as I understand it, much like Google does for indoor GPS fall-off). Sadly, … -
Replied To a Post in error
according to http://www.php.net/mysql_query mysql_query will return false if the connection does not have permission to access the table. It would seem your user for the database may not have correct … -
Began Watching php error connection failed .. please help T-T
I'm hosting my php file in WAMPSERVER PHP Version 5.4.3 and my database is somewhere in the uni server I keep getting this error and I don't know why * … -
Replied To a Post in php error connection failed .. please help T-T
First, even though this is a student account you should probably get in the habit of not posting your connection data for databases (or any password, really). The error you … -
Began Watching error
<?php include 'connect.php';?> <?php include 'functions.php';?> <?php include 'header.php';?> <?php if(isset($_GET['user']) && !empty($_GET['user'])){ $user=$_GET['user']; }else{ $user=$_SESSION['user_id']; } $my_id = $_SESSION['user_id']; $username=getuser($user,'username'); ?> <h3> <?php echo $username; ?> </h3> <?php if($user … -
Replied To a Post in error
What are the errors you are gettings? From a cursory glance, it looks like you are getting a cursor error due to not freeing the resource after your initial query... -
Replied To a Post in using switch
good catch rtrethewey :) I guess it really does help to read all the words... :-/ -
Began Watching using switch
hi guys im a newbie on html java script,, im using switch statement but my final output always fall at my default statement need help.... here's my code... function finalgrade() … -
Replied To a Post in using switch
I would assume you are getting a NaN as a result of one or all of your parseInt() calls. A number & NaN is NaN which is a failure in … -
Began Watching kindly help ~php to javascript
if(document.form1.captcha.value != '$_SESSION["code"]'){ alert("Wrongwrong captcha \n"); return false; } hello ,i just want to ask why is it not running ?i decided to convert my php function to javascript . … -
Replied To a Post in kindly help ~php to javascript
You are not understanding the fundamental difference between javascript and php. PHP is run before the page loads, and has all of its output before the page loads. Javascript runs … -
Began Watching Making a game in JavaScript...
Hi, I need to make a game in JavaScript where a user moves an image (or anything) around a grid and if they hit a wall they lose a life … -
Replied To a Post in Making a game in JavaScript...
If you think of the screen as a grid, or even a DIV as a grid of pixels, you already have your grid in place. From there, your JS simply … -
Began Watching Block level scope of variable in Javascript
Till now I was expecting that there in no block level scope in Javascript. But after reading this article I came to know that block-scoped variables are introduced in javascript. … -
Replied To a Post in Block level scope of variable in Javascript
As I understand it, the ECMAScript that is the backbone of JavaScript is pretty standard among most major browsers. The type of scoping youre talking about should be pretty consistent … -
Began Watching mysqli_fetch_array confusing results
I'm an experienced ASP/MSSQL programmer trying to make the move to PHP/MYSQL and I've been able to wrangle my way up to now. I have a simple SQL query that … -
Replied To a Post in mysqli_fetch_array confusing results
I believe, since you did mysqli_fetch_array() you are getting a 0 index result. If you want to use the column name, use mysqli_fetch_assoc() instead, or change this line: `$xml+='<zip>' . … -
Began Watching find and replace Array using Javascript
i have a script for replace char that i want for URI in php. But now i need these result but using Javascript. i've try to change using Javascript but … -
Replied To a Post in find and replace Array using Javascript
Try this.. function seo_title(cIncoming) { var cNew = ""; cNew = cIncoming.replace(/[!@#$%^&*()_+=,\.<>\/\\\[\]\{\}]/g , ""); //build a regex for unwanted chars add whatever else you need... cNew = cNew.replace(/ /g, "-"); … -
Began Watching Syntax help
new to javascript so this is probably a stupid question. I have some code example below. what i'm trying to do is use the method i've created which takes a … -
Replied To a Post in Syntax help
Try bracket syntax instead. `processorStock[i]['vendor'] === processorStock[i].vendor;` You can then do really wonky and crazy stuff like.... var myVar = "vendor"; processorStock[i][myVar] === processorStock[i]['vendor'] === processorStock[i].vendor; -
Began Watching error in trigger
I wrote my first trigger and it giving error UES TRY GO CREATE TRIGGER cust_update ON TRY FOR UPDATE AS IF UPDATE (custno) BEGIN TRANSACTION RAISERROR('CUST NO CANNOT BE UPDATED',10,1) … -
Replied To a Post in error in trigger
Im gonna toss my 2cents out, and with fair warning Im not 100% sure, as I don't tend to handle the triggers for our DB, but as any good soldier, … -
Began Watching Looping through array of objects and collection of Divs
I have an array ob objects like this `[Object { cat="4", attr={"att1":"val1","att2":"val2","att3":"val3"}}, Object { cat="2", attr={"att1":"val1","att2":"val2","att3":"val3"}}, Object { cat="3", attr={"att1":"val1","att2":"val2","att3":"val3"}}, Object { cat="2",attr={"att1":"val1","att2":"val2","att3":"val3"}}, Object { cat="3", attr={"att1":"val1","att2":"val2","att3":"val3"}}]` and I have … -
Replied To a Post in Looping through array of objects and collection of Divs
First, your notation seems a bit.. off? If that is supposed to be a JSON object to be parse into javascript, it's broken the moment you put = in there. … -
Began Watching javascript:void(window.open...... opens two windows
I am using javascript:void(window.open('http://server1/test/...ate.php?matter="&Fields!matter.Value + "', '_blank', 'fullscreen=yes, scrollbars=auto'));" to launch a report from a SSRS 2008 report that is being viewed within an iFrame. This is done in the … -
Replied To a Post in javascript:void(window.open...... opens two windows
Im not sure I totally followed you, but Im assuming you are wrapping this all with an anchor tag, and using the href as "javascript:void...." If that is the case, … -
Replied To a Post in $_GET is Empty
Not after a reply has been made. You can flag it as a bad post, and an admin can change what you need changed. -
Began Watching $_GET is Empty
$_GET is empty and this is my code. I dont know what to do <?php session_start(); ?> <?php error_reporting(E_ALL); ini_set('display_errors', '1'); $hostname = "localhost"; $username = "xxxxx"; $password = "xxxxx"; … -
Replied To a Post in $_GET is Empty
What URL are you using to access this page?
The End.