Forum: PHP Sep 10th, 2008 |
| Replies: 12 Views: 1,686 Hi,
For debugging purposes I would do something like what Anthony is suggesting.
I would locate an image in the images directory, say G493075_101_12.jpg, and find it's database ID ... then in a... |
Forum: JavaScript / DHTML / AJAX Sep 8th, 2008 |
| Replies: 4 Views: 769 This is probably not what you're after, but I use the Error Console in Firefox and that's the only debugging tool I use for either JavaScript or CSS ...
Just a thought |
Forum: PHP Sep 8th, 2008 |
| Replies: 3 Views: 842 I would say that kkeith has got the answer here...look at what the browser is seeing
<?php
$var1 = array('this' => 'that');
?>
<...>
Looks like a tag to a browser ... even though it... |
Forum: JavaScript / DHTML / AJAX Sep 6th, 2008 |
| Replies: 7 Views: 3,066 I would like to help, but I guess I just don't understand what the real problem is ... my quickie write-up of you above code delivers both 1 and 0
What am I missing here?
<html>
<head>... |
Forum: PHP Sep 3rd, 2008 |
| Replies: 4 Views: 492 Last word ...
the "\n" is a newline-linebreak in scripting-lingo. It is like a soft carriage return.
In PHP the newline character \n must be in double-quotes to not be displayed literally, thus... |
Forum: PHP Sep 3rd, 2008 |
| Replies: 4 Views: 492 Aaak, use the CODE tags for your script code!
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta... |
Forum: PHP Sep 3rd, 2008 |
| Replies: 1 Views: 1,133 Okay, a couple things to think about ...
First, your multiline html text might be better created using PHP's heredoc format
print <<<ENDLINE
<td width="200">
<select name="hospital1">
... |
Forum: PHP Sep 3rd, 2008 |
| Replies: 4 Views: 1,100 I don't really do much PHP email stuff, but this should work for you. The 'headers' are the From line and optionally some other info too.
<?php
// php mail plain-text email example
$recipient... |
Forum: PHP Sep 3rd, 2008 |
| Replies: 4 Views: 1,100 Hi,
These are where you're getting the information passed in from your html form $_POST['subject'] and $_POST['message'], so since you have form-fields for name and email, you will want to also... |
Forum: JavaScript / DHTML / AJAX Aug 25th, 2008 |
| Replies: 2 Views: 926 Something like this ?
<html>
<head>
<style type="text/css">
body {
padding: 60px;
}
.hover { |
Forum: JavaScript / DHTML / AJAX Aug 25th, 2008 |
| Replies: 9 Views: 2,020 You're welcome,
For what it's worth, some people discourage this approach stylistically since it can obscure code, but technically it's sound and I prefer it over the following two examples (when... |
Forum: JavaScript / DHTML / AJAX Aug 25th, 2008 |
| Replies: 9 Views: 2,020 Hi Richard,
This line is shorthand and does two things at the same time
if ( node = document.getElementById(f) ) {
It assigns the value of document.getElementById(f) to the variable node which... |
Forum: PHP Aug 25th, 2008 |
| Replies: 2 Views: 1,062 I don't know what the problem was ...
This works
<?php
$recipient = 'seanlubbe@gmail.com'; // used my email for testing ...
$subject = 'Feedback Form Results';
$message =... |
Forum: PHP Aug 25th, 2008 |
| Replies: 2 Views: 1,514 Something like this should work
<?php
$aClip = array(
array(
Category => "Television",
Link => "vid/01.swf",
Img => "img/25.jpg",
Title => "A Lot in Common"
), |
Forum: JavaScript / DHTML / AJAX Aug 25th, 2008 |
| Replies: 9 Views: 2,020 Are you trying to do this?
<html>
<head>
<style type="text/css">
div {
display: none;
width: 200px;
height: 200px;
border: 1px solid indigo; |
Forum: JavaScript / DHTML / AJAX Aug 19th, 2008 |
| Replies: 5 Views: 2,676 Very cool, thank you for sharing ... I stuck that one in my library, wonder where it will come in handy?
Cheers |
Forum: JavaScript / DHTML / AJAX Aug 19th, 2008 |
| Replies: 5 Views: 1,344 Wow, it's looking a lot better ...
By the way, instead of using to format whitespace, you can use CSS declarations to specify the with of an element.
<html>
<head>
<style... |
Forum: JavaScript / DHTML / AJAX Aug 19th, 2008 |
| Replies: 12 Views: 8,082 Hi again,
I can't spend too much time on this today, but try this ...
child.html
<html>
<head>
</head>
<body> |
Forum: JavaScript / DHTML / AJAX Aug 19th, 2008 |
| Replies: 12 Views: 8,082 I think you can effectively target the parent window with the child form-action ...
parent.php (parent file name)
child.html
<head>
<script type="text/javascript">
window.onload =... |
Forum: JavaScript / DHTML / AJAX Aug 19th, 2008 |
| Replies: 12 Views: 8,082 I think I see what you're trying to do now.
parent.html
<html>
<head>
<script type="text/javascript">
// open your pop-up window ...
var pup = window.open('pup.html','pup'); |
Forum: JavaScript / DHTML / AJAX Aug 19th, 2008 |
| Replies: 12 Views: 8,082 That alert is basically stating that you submitted a form and by reloading the page you are going to resubmit the same data from the form (again).
This might work to not reload the page but reload... |
Forum: JavaScript / DHTML / AJAX Aug 19th, 2008 |
| Replies: 6 Views: 738 Yes, they would return the same thing and are effectively the same, but the .item(0) is the correct syntax for DOM node-collections, but the array access syntax is cross-browser supported.
... |
Forum: JavaScript / DHTML / AJAX Aug 19th, 2008 |
| Replies: 6 Views: 738 R0bb0b is correct ... item(0) accesses a node-collection
<script type="text/javascript">
arr = [];
arr[0] = 'one';
arr['two'] = 3;
alert( arr[0] );
alert( arr['two'] ); |
Forum: PHP Aug 18th, 2008 |
| Replies: 5 Views: 657 In PHP you would have to submit the child window with the parent window as the form action ...
<form aciton='parent.php" method="POST">
... and grab the submitted child form values in the parent... |
Forum: PHP Aug 18th, 2008 |
| Replies: 5 Views: 657 I think I know what you're talking about ...
The link you open is a new window and you have selections in that window ... when you click on a selection you want to populate the original (main)... |
Forum: PHP Aug 18th, 2008 |
| Replies: 9 Views: 1,773 If you removed the first mysql_fetch_row then stick to a while loop, if you left in that first fetch_row then do a do{}while() loop.
Ciao |
Forum: PHP Aug 15th, 2008 |
| Replies: 9 Views: 1,773 Ahhh, makes perfect sense. Thanks for the explanation.
Ciao |
Forum: PHP Aug 15th, 2008 |
| Replies: 9 Views: 1,773 I'm not arguing with you architact, but I'm wondering why use a do { ... } while () for database rows?
If I understand that will automatically perform the action at least once. So you should... |
Forum: PHP Aug 15th, 2008 |
| Replies: 5 Views: 656 I'm providing a lot of wrong information today, I guess I should shut it down for the night.
But first I did a little investigation into your problem -- and I guess you do use the var keyword in... |
Forum: PHP Aug 15th, 2008 |
| Replies: 5 Views: 656 Before taking a deeper look, it appears that there's been a mixup of PHP and JavaScript variable types ... fix this first and if it still doesn't work let us know.
var $email;
var... |
Forum: PHP Aug 15th, 2008 |
| Replies: 9 Views: 1,773 It appears that you've included $truedata = mysql_fetch_array() twice but not used it the first time (thus the probable cause of the loss of your first row).
Try it now and let me know if that was... |
Forum: JavaScript / DHTML / AJAX Aug 14th, 2008 |
| Replies: 5 Views: 2,516 Right-O,
It's not as handy as being able to use getElementById() but this sort of thing is working and can be used to get the same results.
var divs = respXML.getElementsByTagName('div');
for... |
Forum: JavaScript / DHTML / AJAX Aug 14th, 2008 |
| Replies: 5 Views: 2,516 I so lied !
I can't seem to get elements of the XML using javascript DOM methods in other ways than using getElementsByTagName('tag');
but I'm still working on it, will post back here with any... |
Forum: JavaScript / DHTML / AJAX Aug 14th, 2008 |
| Replies: 5 Views: 2,516 Okay, here's the situation ...
I thought this would be a handy thing to know and am planning on rebuilding my javascript ajax class soon anyway.
What you need to do is two-fold
1. On the... |
Forum: JavaScript / DHTML / AJAX Aug 14th, 2008 |
| Replies: 5 Views: 1,344 Okay, I downloaded your website zip file and ... to be honest, i don't want to sift through the 44 files to try and track down what is wrong with your page. So instead I will give you some idea how... |
Forum: JavaScript / DHTML / AJAX Aug 14th, 2008 |
| Replies: 3 Views: 3,503 Right, using it later in the same function ... easy enough
var active_href = this; // from above code.
Let me know if this is not what you meant or have any questions about this. |
Forum: JavaScript / DHTML / AJAX Aug 14th, 2008 |
| Replies: 3 Views: 3,503 Hi,
If you need to handle all links on the page this way, then use something like this ...
window.onload = function () { // wait until the page is loaded
var links =... |
Forum: PHP Aug 13th, 2008 |
| Replies: 17 Views: 1,219 I don't see them from the code you submitted earlier or my updates ... if you want to post your code in total again I'll sift through that for them.
Could they be coming from one of the include... |
Forum: PHP Aug 13th, 2008 |
| Replies: 11 Views: 3,171 I believe the html standard (if you want your code to validate: http://validator.w3.org/) is that a nested <li></li> must be inside a <ul> container ...
So this is not valid (If I remember... |
Forum: PHP Aug 13th, 2008 |
| Replies: 11 Views: 3,171 No problem, we all get into the plug-and-play mindset ...
Enjoy |