Search Results

Showing results 1 to 40 of 86
Search took 0.01 seconds.
Search: Posts Made By: sagedavis
Forum: PHP May 21st, 2008
Replies: 1
Views: 682
Posted By sagedavis
You are using a lot of shorthand stuff, and it makes it hard for those of us who don't use it to read.

(!$_GET['start']) ? $start = 0 : $start = $_GET['start'];

as an example.
so for those...
Forum: PHP May 21st, 2008
Replies: 3
Views: 4,228
Posted By sagedavis
Lifetalk,
textarea has nothing to do with PHP, that's html. But, to answer your question, yes, it's possible to pretty much do anything.

I assume that if you are asking about php, you must have a...
Forum: PHP Apr 7th, 2008
Replies: 12
Views: 7,337
Posted By sagedavis
You're welcome,
glad I could help.
sage
Forum: PHP Apr 4th, 2008
Replies: 0
Views: 583
Posted By sagedavis
Hey all,
ok, so, I am a bit weird in my questions but, that's just me. I have a fairly weird one for you.

I have been using RegExSearchReplace (A Java Program) to do this the um, tedious way,...
Forum: PHP Mar 30th, 2008
Replies: 12
Views: 7,337
Posted By sagedavis
the answer is that Pop is not defined. you are calling a function called POP in your onClick function and I see no javascript function (because it must be a function in order to use it). I do not see...
Forum: PHP Mar 29th, 2008
Replies: 3
Views: 1,769
Posted By sagedavis
ok, you still can't call a php function on a javascript event, which is what your code is trying to do.

What you need to do is use your php to print out the html code but make the onclick event...
Forum: PHP Mar 29th, 2008
Replies: 8
Views: 901
Posted By sagedavis
OK, I'm pasting the code you IMd me here, because there are others who may be able to help with this as well.

<script src="signupcheck.js" language="JavaScript" type="text/javascript">
</script>...
Forum: PHP Mar 28th, 2008
Replies: 8
Views: 901
Posted By sagedavis
java or javascript?

It's hard to tell, since you aren't showing us your javascript.... but,...
I would say your "Validate" is somehow over riding everything.
You may be trying to pass the...
Forum: PHP Mar 28th, 2008
Replies: 5
Views: 926
Posted By sagedavis
Great Matti,
I shall try this over the weekend.

The main reason for wanting to pass the var $sql as an arg, rather than type out the statement is because, there might be some dynamic stuff going...
Forum: PHP Mar 28th, 2008
Replies: 5
Views: 584
Posted By sagedavis
it could also be a .htaccess mod_rewrite

if you had hacked it to try to make
index.php?name=joe
look like
index/joe
instead, you could have done something weird with it (I've done that),...
Forum: PHP Mar 28th, 2008
Replies: 3
Views: 1,769
Posted By sagedavis
you can't call a php function with an onClick event.. onClick is a javascript/DHTML item.

You also don't even need any of the php opening and closing stuff.
Why cause php to print javascript and...
Forum: PHP Mar 28th, 2008
Replies: 5
Views: 926
Posted By sagedavis
Thanks for this tute, it's pretty good, although, I wouldn't recommend a beginning OOPer to read that right off the bat.

I've been working with PHP OOPing for only a short time, but, as it's a...
Forum: PHP Mar 27th, 2008
Replies: 3
Views: 2,156
Posted By sagedavis
just out of curiosity, would str_replace not have worked easier for this?
You have a string (as a variable at least) and you know what other string is inside of it (or could be inside of it), and...
Forum: PHP Mar 27th, 2008
Replies: 5
Views: 926
Posted By sagedavis
I am banging my head against the wall here.
I've tried everything that I can think of to get this to work.


class myData {
function myStuff($sql){
$result = @mysql_query($sql,$connection) or...
Forum: PHP Mar 27th, 2008
Replies: 12
Views: 1,067
Posted By sagedavis
I'm lost
Are you saying that your code currently returns # signs for all the text entered or are you saying that you would like it to return the # for your letters?

What are you wanting it to do,...
Forum: PHP Mar 27th, 2008
Replies: 1
Views: 2,344
Posted By sagedavis
you do not need to figure out the image actually..

Rather than thinking about what html tags you do not want to allow, just think about the ones that you do want to allow.

PHP has a native...
Forum: PHP Mar 27th, 2008
Replies: 12
Views: 7,337
Posted By sagedavis
OK, well, that's different, you are looking for something like an ajax, hidden div tag which reviels itself on the mousover of another?

Even though you will be using images, think of it more like...
Forum: PHP Mar 22nd, 2008
Replies: 5
Views: 664
Posted By sagedavis
oh, duh,
was it "count" that was the reserved word?
sage
Forum: JavaScript / DHTML / AJAX Mar 22nd, 2008
Replies: 3
Views: 952
Posted By sagedavis
Ok,
There's nothing wrong with this bit of load time. It only took about 2 seconds for the page to load, and that's fine. Go to myspace and look at how long that piece takes to download.

To...
Forum: JavaScript / DHTML / AJAX Mar 22nd, 2008
Replies: 3
Views: 2,372
Posted By sagedavis
I don't know how I found this but I did.

alert("Please select Advisor");
document.frmStudentInfo.lstF_ID.selectedIndex == 0;
return false;
}


there is no...
Forum: PHP Mar 22nd, 2008
Replies: 2
Views: 572
Posted By sagedavis
What Silviuks said.
No one is going to read through the whole code, let alone that entire thing of specs you have.

Your best bet is to tell us which part of the code is failing, even better yet...
Forum: PHP Mar 22nd, 2008
Replies: 5
Views: 664
Posted By sagedavis
hmmm,
first off, I don't know why your code isn't throwing an error to begin with.
you have an extra ";" at the end there... once you end a function } you don't need to use a ;

I think your...
Forum: PHP Mar 22nd, 2008
Replies: 12
Views: 7,337
Posted By sagedavis
adding 100 to the height and width, actually does not maintain the aspect ratio of the image (unless the image is already the same height and width.

If you use a multiplication instead, you should...
Forum: Java Mar 18th, 2008
Replies: 3
Views: 1,782
Posted By sagedavis
Great answer, you were right, it was "something like this". I only had to plug in the right names (I may have missnamed them in my explination), and poof, I had the popup.
There were a couple of...
Forum: Java Mar 15th, 2008
Replies: 3
Views: 1,782
Posted By sagedavis
Hi all,
I am fairly new to java, as well as netbeans, but I come from a VB background.
I am wanting to build platform independant aps and find the need to cross over into this world of Java, and...
Forum: PHP Mar 14th, 2008
Replies: 3
Views: 851
Posted By sagedavis
That's great information.
Unfortunately, converting to PDF first is not a viable way to go with this one. We use a PHP pdf generation system, but, as that is just as dynamic as the pages that our...
Forum: PHP Mar 12th, 2008
Replies: 3
Views: 620
Posted By sagedavis
Here is my mod rewrite, it should work for you, all you need to do is change mydomain.com to your actual domain, everywhere that you see it.

RewriteEngine on
RewriteRule ^([a-z0-9_]+)$ /$1/ [nc]...
Forum: PHP Mar 10th, 2008
Replies: 2
Views: 457
Posted By sagedavis
Shawn
This is perfect. Basically this is working with classes.

I'm not new to using PHP at all, but am new to using classes.
This was very helpful stuff.
Thanks
Sage
Forum: PHP Mar 10th, 2008
Replies: 8
Views: 837
Posted By sagedavis
You don't have a message in there. This could be stopping your email.

you posted that long code then later came back with another issue that you are having with the blank page.. I am assuming that...
Forum: PHP Mar 10th, 2008
Replies: 2
Views: 457
Posted By sagedavis
I know, this is a weird question, but...
I am working right now on an inherited project, and finding this quite a bit.

$objSomething -> $object

I have had it explained to me that this is...
Forum: Java Mar 4th, 2008
Replies: 8
Views: 2,994
Posted By sagedavis
Of course, if you really are wanting to make for lesser work for the user (which, I really don't think you need to do this, but, it can be done), create a self extracting install which will bundle...
Forum: Java Mar 4th, 2008
Replies: 6
Views: 1,523
Posted By sagedavis
I didn't really read your code, and I am a beginner with Java as well, but have done similar things in VB and in flash, as well as used similar concepts in javascript.

So, I can give you the...
Forum: PHP Feb 29th, 2008
Replies: 9
Views: 920
Posted By sagedavis
Those stats are great and I agree whole heartedly with Nav33 on his explination of what makes php so much more widely used.

The biggest problem that I have with asp in general is that it is not an...
Forum: PHP Feb 28th, 2008
Replies: 3
Views: 851
Posted By sagedavis
Hi all,
I have been working on a PHP based application where a user would be allowed to print out specific, yet dynamic information.

I am using a different style sheet for the print page, but I...
Forum: PHP Feb 28th, 2008
Replies: 9
Views: 840
Posted By sagedavis
um,

$this->_host = $host; $this->_user = $user; $this->_password = $password; $this->_database = $database; $this->_persistent = $persistent;


Up top you have

private $_user =...
Forum: Legacy and Other Languages Feb 28th, 2008
Replies: 4
Views: 6,401
Posted By sagedavis
Yeah, I know, that is the weirdest thing...
I bet you thought I typoed it, but, I didn't... LOL..
Forum: JavaScript / DHTML / AJAX Feb 28th, 2008
Replies: 9
Views: 7,211
Posted By sagedavis
IE also might not like the "" around your id in getElementById I'm not sure though
Sage
Forum: JavaScript / DHTML / AJAX Feb 28th, 2008
Replies: 9
Views: 7,211
Posted By sagedavis
this sounds like the way IE is handling your script.

Which event are you using as your trigger?
A lot of this works better by using prototype or mootools as these libraries have all of the...
Forum: JavaScript / DHTML / AJAX Feb 27th, 2008
Replies: 9
Views: 7,211
Posted By sagedavis
yeah, try using double quotes instead of single around the color...

if that doesn't work...
on line 3 and 4 call it filed2

Sage
Forum: JavaScript / DHTML / AJAX Feb 27th, 2008
Replies: 6
Views: 17,088
Posted By sagedavis
acutally, you can just use class, since class is the attribute, and I believe that newClass requires quote...

There are times where you have a hard time working with "this.id" use oneTd instead of...
Showing results 1 to 40 of 86

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC