Hello,
I have a question regarding using variables. My environment is SQL Server 2005. I know the variable is set because it only breaks the query if I use it in certain areas. Can someone point out my error?
USE SampleCode
Declare @myTableName varchar(45)
Set @myTableName = 'TestTable';
IF...
You'll need to "open" the request first(before setting header):
<script type="text/javascript">
var xmlhttp
function loadXMLDoc(url)
{
// code for Mozilla, etc.
if (window.XMLHttpRequest)
{
xmlhttp=new XMLHttpRequest()
xmlhttp.open("POST",url,true)...
If you don't have conditions that you have to check after each
function you could create the array and then use setTimeout.
var myDel = 'f1|f2|f3';
function doFunctions(){
var tmp = new Array();
tmp = myDel.split("|");
tmp = tmp.join('();') + '()';
setTimeout(tmp, 50);
}
Thanks,
--Mark
Dave is dead on...
Change the method to "post" and it works fine.
I'm guessing that comment you're formatting is too much..
Good Job Dave.
Thanks,
--Mark
Unfortunately, I don't have time to complete the mission.
But I can pass on a waypoint:
If you comment this line it works:
function TestDataCheck(feedback) {
var pagecounter_passed = parseInt(document.uspsfeedback.pagecounter.value);
var pagecounter_passed = pagecounter_passed + 1...
This will make it work in both FF and IE:
Add these classes to your style sheet:
.hide_quote {
display: none;
}
.show_quote {
display: block;
position: absolute;
top: 18px;
left: 10px;
width: 125px;
height: 70px;
border: 1px solid #000;
background-color: #ffe;
color...
I can tell you one thing that I've run across with the
combination of IE and XMLHttpRequest is a cache issue.
Nothing may be wrong with your code, IE may be stubbornly denying the new request.
Check out this FAQ and especially the "wiki" link at the end.
AJAX
I don't see where you are setting...
...mkSel.html
<html>
<head>
<title>AJAX Example</title>
<script type="text/javascript">
//global variable
var selArr = new Array();
/*** from http://jibbering.com/2002/4/httprequest.html an article by Jim Ley***/
var xmlhttp
/*@cc_on @*/
/*@if (@_jscript_version >= 5)
try...
Hi Slippenos,
If you notice there is no form field 'EstimateStatusB' in the above example.
That is what the first part of our 'if' does.
(Makes sure there is a form field with that name before testing the value.)
if(form.elements['EstimateStatusB'] &&
form.elements['EstimateStatusB'].value...
...padding: 0px;
margin: 0px;
}
</style>
<script type="text/javascript" SRC="js/ajax.js"></script>
<script type="text/javascript">
<!--
/* simpleFindObj, by Andrew Shearer
Efficiently finds an object by name/id, using whichever of the IE,
classic Netscape, or Netscape 6/W3C DOM methods is...
Is there any reason you can't use the element name like so:
<script type="text/javascript">
function ckForm(form){
if(form.elements['EstimateStatus'] &&
form.elements['EstimateStatus'].value == 'Nothing'){
alert('Your Note');
return false;
}
if(form.elements['EstimateStatusB'] &&...
Do your form fields have their own id's?
Are they unique?
You are pretty close with the above attempt:
<script type="text/javascript">
var arr = ['t1','t2'];
function ckFields(){
for(var j = 0; j < arr.length; j++){
if(document.getElementById(arr[j]) != undefined)...
Maybe this will give you a start:
<?php
$str = "This is a sting with a br tag.<br />And then we have a <p> tag and a </p> tag.";
$str = str_replace("<br />", "\n", $str);
$str = str_replace("<p>", "\n\n", $str);
$str = str_replace("</p>", "\n\n", $str);
echo "<pre>";
echo $str;
echo "</pre>"...
litton1,
The body "onload" event will work for this:
<html>
<head>
<title></title>
<script type="text/javascript">
function loadImg(){
var loadedImg = new Image();
loadedImg.src = "http://www.google.com/intl/en/images/logo.gif";
var Img = document.getElementById('pic');
Img.src =...
Form's have an "onreset" event handler.
Add this to your opening form tag:
onreset="initForm()"
And this function:
function initForm(){
var trows = document.getElementsByTagName('tr');
allBoxes = 0;
for(var j = 0; j < trows.length; j++){
(trows[j].className == 'picked')...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.