Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 25 of 500
Search took 3.31 seconds.
Search: Posts Made By: Beagle
Forum: JavaScript programming 08-16-2010, 03:52 PM
Replies: 3
Views: 624
Posted By Beagle
Because PHP runs on the server, not the client....

Because PHP runs on the server, not the client. So when index.php is run on the server, it runs the mail function. If you want Javascript to trigger mail sending, you'll have to have javascript use...
Forum: Ajax and Design 08-16-2010, 06:49 AM
Replies: 8
Views: 1,727
Posted By Beagle
Well, first you posted in Ajax and Design, but...

Well, first you posted in Ajax and Design, but your code relies on jQuery, so you might get some help there.

I hate jQuery's .load. I find it's way too inefficient, especially for chat. There's no...
Forum: PHP 08-16-2010, 06:40 AM
Replies: 7
Views: 816
Posted By Beagle
Wildreason, here's some simple answer. Speed...

Wildreason, here's some simple answer.

Speed is not efficiency. Your program won't scale the way you imagine it to because speed is not efficiency. Multiplying your input (n) by 100 won't multiply...
Forum: JavaScript programming 08-16-2010, 06:32 AM
Replies: 2
Views: 1,770
Posted By Beagle
If you want to do this, you can't leave the files...

If you want to do this, you can't leave the files on their local machine. They could just open the files directly and you'd never know. All you need is a simple source control product (there are many...
Forum: JavaScript programming 08-16-2010, 06:27 AM
Replies: 2
Views: 667
Posted By Beagle
In the for loop, i is equal to 0, 1, 2 and 3, in...

In the for loop, i is equal to 0, 1, 2 and 3, in order.

thumbs is an array of pointers to DOM elements.

image is a pointer to one of the DOM elements that is being pointed to in thumbs.
...
Forum: General web building 08-04-2010, 04:13 PM
Replies: 6
Views: 1,594
Posted By Beagle
If you give out the link as "example.com" that's...

If you give out the link as "example.com" that's the link that will show.


If you give out the link as "uniquecustomer.subdomain.com", that's the link that will show.
Forum: MySQL 08-04-2010, 04:11 PM
Replies: 5
Views: 1,325
Posted By Beagle
You should also consider adding an index to any...

You should also consider adding an index to any column that you regularly filter on.
Forum: PHP 08-04-2010, 04:09 PM
Replies: 10
Views: 1,028
Posted By Beagle
Also, instead of doing string concatenation,...

Also, instead of doing string concatenation, which uses up memory and CPU, echo can take a variable number of arguments separated by commas:


echo $e, $f, $g;
Forum: General web building 08-03-2010, 02:13 AM
Replies: 24
Views: 4,343
Posted By Beagle
There's a free .Net compiler?

There's a free .Net compiler?
Forum: PHP 08-02-2010, 05:59 PM
Replies: 4
Views: 574
Posted By Beagle
$str = "Euro Invoice (generated)"; echo...

$str = "Euro Invoice (generated)";
echo stripos($str,'euro');

Prints "0" for me. So it works. You're doing something wrong.
Forum: General web building 08-02-2010, 05:54 PM
Replies: 24
Views: 4,343
Posted By Beagle
I'm a long time developer, making a lot of money,...

I'm a long time developer, making a lot of money, and getting many job offers, and I work mostly in PHP. And there are a TON of PHP jobs in my area. Usually, ASP.Net jobs seem to thrive in areas with...
Forum: PHP 08-02-2010, 05:37 PM
Replies: 2
Views: 725
Posted By Beagle
Well, think about the problem. First, what do you...

Well, think about the problem. First, what do you intend subTemplates() to return. I imagine you want it to return an array of strings.

But what does it actually return? Just 1 string.

So...
Forum: PHP 08-02-2010, 05:31 PM
Replies: 2
Views: 578
Posted By Beagle
As Phil Jackson demonstrated, you must return a...

As Phil Jackson demonstrated, you must return a single value that itself contains multiple values. You can return an array, as in the example Phil Jackson gave. You can also return an object, a...
Forum: Computer Programming 08-01-2010, 04:13 AM
Replies: 2
Views: 5,744
Posted By Beagle
Well, in that function, z is a pointer to an int....

Well, in that function, z is a pointer to an int. But your function is expecting to return an int, and not a pointer to an int. So, if you want to return the int, dereference z. if you want to return...
Forum: JavaScript programming 07-29-2010, 02:28 PM
Replies: 8
Views: 1,523
Posted By Beagle
Hey, .bind()! Great idea, will save me much...

Hey, .bind()!

Great idea, will save me much cruft!
Forum: JavaScript programming 07-29-2010, 07:00 AM
Replies: 8
Views: 1,523
Posted By Beagle
The problem is that the fadeIn function you are...

The problem is that the fadeIn function you are using in the timeout needs an argument (elem) but setTimeout doesn't provide it. Try this:

timeIn = setTimeout(function() {fadeIn(elem);}, 100);

...
Forum: Java and JSP 07-29-2010, 06:55 AM
Replies: 12
Views: 3,135
Posted By Beagle
Thanks for the correction. I haven't actually...

Thanks for the correction. I haven't actually implemented compareTo in a while and forgot this.
Forum: HTML & CSS 07-29-2010, 02:32 AM
Replies: 4
Views: 673
Posted By Beagle
Name the file "whatever.css.php" and at the...

Name the file "whatever.css.php" and at the beginning of the file place this:

<?php
header("Content-type: text/css");
?>


Then proceed as though you were in a CSS file that you can use PHP...
Forum: PHP 07-29-2010, 02:27 AM
Replies: 11
Views: 982
Posted By Beagle
Also, please post the relevant lines in your...

Also, please post the relevant lines in your config file that enable mysql and mysqli.
Forum: JavaScript programming 07-29-2010, 02:26 AM
Replies: 2
Views: 587
Posted By Beagle
If you're going to use an iframe and it's going...

If you're going to use an iframe and it's going to load a page, you're best bet is to define a function on that page that makes the change you want, then name the iframe, then in the parent window...
Forum: Java and JSP 07-29-2010, 02:23 AM
Replies: 12
Views: 3,135
Posted By Beagle
your compareTo method needs to take another of...

your compareTo method needs to take another of these objects as a parameter.

Then, you need to do the comparisons you just detailed to us: if this.grade == that.grade, if this.lastName =...
Forum: PHP 07-23-2010, 06:03 AM
Replies: 3
Views: 685
Posted By Beagle
It's not an error. This is expected and standard...

It's not an error. This is expected and standard behavior. The button is a form element with a name and a value. When you click the button to submit the form, that name/value pair is added to the...
Forum: PHP 07-22-2010, 03:27 PM
Replies: 9
Views: 748
Posted By Beagle
Don't name your submit button 'submit' though. IE...

Don't name your submit button 'submit' though. IE loves to make things stupid when you do that.
Forum: PHP 07-22-2010, 03:26 PM
Replies: 4
Views: 758
Posted By Beagle
$texts = array('hello', 'hi', 'sup'); $ddrnumb...

$texts = array('hello', 'hi', 'sup');
$ddrnumb = rand(0,2);
$ddrmix = $texts[$ddrnumb];
Forum: General web building 07-22-2010, 08:09 AM
Replies: 8
Views: 1,546
Posted By Beagle
PHP is certainly not simply HTML with a database...

PHP is certainly not simply HTML with a database and changing data. You can do PHP with any HTML at all.

PHP is a 3rd-generation programming language. HTML, CSS, and SQL and 4th-generation...
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT +1. The time now is 09:01 AM.