Search:
Type: Posts; User: Malgrim
Search :
Search took 0.01 seconds.
Well, since you use
COUNT(*)
there should always be exactly one record returned, the record containing the number of matches. That number may well be zero, but you have to check the actual...
Maybe you can work with that
var str = '<div class="main" id="content"></div><div class=\'sub\' name=\'subcontent\'></div>';
var pattern =...
All relevant browsers support AJAX, the question is rather how many users serf the internet with javascript disabled.
if(details.shipFirstName.value=="")
{
alert("Please complete First Name field.");
details.shipFirstName.focus();
return false;
}
Well, there's a number of things, that strike me as odd in your code.
For one thing discount +=(itemprice * 0.01) sets the discount to 1% not 10%.
discount +=(itemprice - 100) adds all but 100...
shouldn't it be
re.test(value)
It should match @s as long as they're neither at the beginning nor the end of the word, i.e. it should match email addresses like 'someone@example.com'.
If you're trying to match something else,...
document.forms['form'+str1].elements['comment'+str1].value...
Well, you could use
SELECT * FROM messages WHERE message RLIKE '[[:<:]]$something[[:>:]]'
but querying against a regular expression will not exactly boost performance.
Sorry, but there's too much amiss to simply correct it. I'd suggest something like the following, maybe you can work based on that
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
Remove the comma after the first inner join.
EDIT: Oh, and by the way, never ever allow user data to get passed on unchecked!
You need a server side programming language, like
* ASP/ASP.NET (*.asp/*.aspx)
* ColdFusion Markup Language (*.cfm)
* Java via JavaServer Pages (*.jsp)
* PHP (*.php)
* Perl...
<?php
$file = 'some.xml';
$dom = new DOMDocument();
$dom->load($file);
$xml = simplexml_import_dom($dom);
$i = 0;
foreach ($xml->games->game as $game) {
?>
...
IDs have to be unique throughout the whole page. If your radio buttons have the same ids, then only the first element found with that id will be addressed, i.e. only those in the first row. You...
Well, it does exactly what it seems to be supposed to do (at least in my Browser): If you check A1, then also B2 gets checked, if you check A2, B1 get's checked.
Does this not work in your...
replace the first line with the following;
function getObject(obj){if(document.getElementById(obj)){return document.getElementById(obj);}else{if(document.all[obj]){return document.all[obj];}}}
<?php
$file = 'some.xml';
$dom = new DOMDocument();
$dom->load($file);
$xml = simplexml_import_dom($dom);
?>
<p>
Title: <input type="text" name="title" value="<?php...
If it's only the background-color you're worried about, you could simply inclose your whole page in two additional <div>s
<div style="background-color:blue; padding:0px; margin:0px;">
<div...
Not having read everything, this strikes me as a potential source of the problem:
obj.style.width = myImg.height+'px';
I'm not quite following you.
The line simply takes the width of the new picture (in pixels) and applies it to the containing div-element, whether this used to be larger or smaller doesn't matter....
The height get's adjusted automatically, so just remove the height property from the style. As for the width, this should work
<script type="text/javascript">
function changeIt(imageName,objName)...
Do you pass the value on to the form's onsubmit event, i.e.
onsubmit="return ver()"
If you don't want vertical spaces, I'd suggest getting rid of all the
<p class="BoxCsubheadersnotes"> </p>
lines or include them in the <div>s so they are hidden as well and probably adjust...
It's
tr.altrow td {
background-color: blue;
}