473,406 Members | 2,619 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Function help

KL
I am writing this function and I think I messed up something cause it won't
work. Can someone help me see what I am doing wrong?? I have included the
function and the part where I call the function. Thanks.

<script language="JavaScript">
function rankme(form) {
var ans1 = eval(form.q1.value);
var ans2 = eval(form.q2.value);
var ans4 = eval(form.q4.value);
var ans5 = eval(form.q5.value);
var ans7 = eval(form.q7.value);
var ans8 = eval(form.q8.value);
var ans10 = eval(form.q10.value);
var ans11 = eval(form.q11.value);

var result = (ans1 + ans2 + ans4 + ans5 + ans7 + ans8 + ans10 + ans11) / 8;

if (result < 1.5 {
window.open("http://cassidygirls.com/2004/aparent.htm")
}
else {
if (result < 2.5 {
window.open("http://cassidygirls.com/2004/adoptee.htm")
}
else {
if (result < 3.5 {
window.open("http://cassidygirls.com/2004/bparent.htm")
}
else {
if (result < 4.5 {
window.open("http://cassidygirls.com/2004/pap.htm")
}
else {
if (result < 5.5 {
window.open("http://cassidygirls.com/2004/fac.htm")
}
else {
if (result < 6.5 {
window.open("http://cassidygirls.com/2004/sw.htm")
}
}
}
}
}
}
}

</script>

<input type=button name=score value="Tell me what I am!"
onClick="javascript:rankme(this.form)">

--

Kari-Lyn Bjorn
"You don't love someone because they are beautiful, they are beautiful
because you love them." - Anon.
Jul 23 '05 #1
14 1330
KL wrote on 12 dec 2004 in comp.lang.javascript:
<script language="JavaScript">
<script type="text/JavaScript">

// your way is 5 yeard outdated
function rankme(form) {
var ans1 = eval(form.q1.value);
var ans1 = 1*form.q1.value;

eval is evil, and probably unneccessary, but you don't show the form.

use the 1* for numerical conversion. However witout propper validating,
an input of "pfft" will error either the unary + or [see below]


var result = (ans1 + ans2 + ans4 + ans5 + ans7 + ans8 + ans10 + ans11)
/ 8;
without numerical conversion validation you will get

for inputs 24,4,6,8,pfft,99

a string like

26468pfft99, which will not be dividable by 8

for inputs 24,4,6,8,1111,99

a string like

26468111199, which will be dividable by 8,
but will not give the result you want, imho


if (result < 1.5 {
if (result < 1.5 ) { // THIS IS YOUR HARD ERROR forgetting ")"

window.open("http://cassidygirls.com/2004/aparent.htm")
}
else {
else
else {
else
if (result < 6.5 {
window.open("http://cassidygirls.com/2004/sw.htm")
}
// what if the result >= 6.5 ???

// do not use the below }}}}}}
the extra {}'s after the elses are unneccesary

}
} onClick="javascript:rankme(this.form)">


onClick="rankme(this.form);">

the "javascript:" is superfluous

====================================

Consequently, but untested:

<script type="text/JavaScript">

function validateme(x){
if (NaN(x)){error=true;return 0};
return 1*x;
};
function rankme(form) {
var error = false;
result = validateme(form.q1.value)+
validateme(form.q2.value)+
validateme(form.q4.value)+
validateme(form.q5.value)+
validateme(form.q7.value)+
validateme(form.q8.value)+
validateme(form.q10.value)+
validateme(form.q11.value);
if (error) return;
var result = result / 8;

if (result < 1.5 ) myfile = "aparent.htm"
else if (result < 2.5 ) myfile = "adoptee.htm"
else if (result < 3.5 ) myfile = "bparent.htm"
else if (result < 4.5 ) myfile = "pap.htm"
else if (result < 5.5 ) myfile = "fac.htm"
else if (result < 6.5 ) myfile = "sw.htm"
else return;

window.open("http://cassidygirls.com/2004/"+myfile);
};

</script>


--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 23 '05 #2
KL
I made those corrections as you so helpfully provided, but it still isn't
working. Can you take a look at the page and see if I haven't just honked
it up completely? I am trying to get this done before I go in for surgery
tomorrow.

http://cassidygirls.com/2004/index.htm

--

Kari-Lyn Bjorn
"You don't love someone because they are beautiful, they are beautiful
because you love them." - Anon.
"Evertjan." <ex**************@interxnl.net> wrote in message
news:Xn********************@194.109.133.29...
KL wrote on 12 dec 2004 in comp.lang.javascript:
<script language="JavaScript">


<script type="text/JavaScript">

// your way is 5 yeard outdated
function rankme(form) {
var ans1 = eval(form.q1.value);


var ans1 = 1*form.q1.value;

eval is evil, and probably unneccessary, but you don't show the form.

use the 1* for numerical conversion. However witout propper validating,
an input of "pfft" will error either the unary + or [see below]


var result = (ans1 + ans2 + ans4 + ans5 + ans7 + ans8 + ans10 + ans11)
/ 8;


without numerical conversion validation you will get

for inputs 24,4,6,8,pfft,99

a string like

26468pfft99, which will not be dividable by 8

for inputs 24,4,6,8,1111,99

a string like

26468111199, which will be dividable by 8,
but will not give the result you want, imho


if (result < 1.5 {


if (result < 1.5 ) { // THIS IS YOUR HARD ERROR forgetting ")"

window.open("http://cassidygirls.com/2004/aparent.htm")
}
else {


else
else {


else
if (result < 6.5 {
window.open("http://cassidygirls.com/2004/sw.htm")
}


// what if the result >= 6.5 ???

// do not use the below }}}}}}
the extra {}'s after the elses are unneccesary

}
}

onClick="javascript:rankme(this.form)">


onClick="rankme(this.form);">

the "javascript:" is superfluous

====================================

Consequently, but untested:

<script type="text/JavaScript">

function validateme(x){
if (NaN(x)){error=true;return 0};
return 1*x;
};
function rankme(form) {
var error = false;
result = validateme(form.q1.value)+
validateme(form.q2.value)+
validateme(form.q4.value)+
validateme(form.q5.value)+
validateme(form.q7.value)+
validateme(form.q8.value)+
validateme(form.q10.value)+
validateme(form.q11.value);
if (error) return;
var result = result / 8;

if (result < 1.5 ) myfile = "aparent.htm"
else if (result < 2.5 ) myfile = "adoptee.htm"
else if (result < 3.5 ) myfile = "bparent.htm"
else if (result < 4.5 ) myfile = "pap.htm"
else if (result < 5.5 ) myfile = "fac.htm"
else if (result < 6.5 ) myfile = "sw.htm"
else return;

window.open("http://cassidygirls.com/2004/"+myfile);
};

</script>


--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)


Jul 23 '05 #3
KL wrote on 12 dec 2004 in comp.lang.javascript:
I made those corrections as you so helpfully provided, but it still
isn't working. Can you take a look at the page and see if I haven't
just honked it up completely? I am trying to get this done before I
go in for surgery tomorrow.

http://cassidygirls.com/2004/index.htm


type=radio name="q3" value="mel1"

How would you ever expect to add numerically
string values like the above?

"mel1mel2" would error out if you try to devide it by 8.

===================

I think you overestimate your ability in attempting such a large page.

Try to debug a simple page by reading and understanding error messages
and inserting breakpoints like alert(validateme(form.q1.value))

First try a such simple page and exactly define for yourself what you
want to achieve. Perhaps later you will be able to more.

Sorry, programming is not just writing code, but minutely understanding
the code and the requirements of your page.

===================
a
and lastly, please do not toppost on usenet.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 23 '05 #4
KL
"Evertjan." <ex**************@interxnl.net> wrote in message
news:Xn********************@194.109.133.29...
KL wrote on 12 dec 2004 in comp.lang.javascript:
I made those corrections as you so helpfully provided, but it still
isn't working. Can you take a look at the page and see if I haven't
just honked it up completely? I am trying to get this done before I
go in for surgery tomorrow.

http://cassidygirls.com/2004/index.htm

type=radio name="q3" value="mel1"

How would you ever expect to add numerically
string values like the above?

"mel1mel2" would error out if you try to devide it by 8.


Yeah, I know that...those particular questions aren't included in the
figuring, they are trick questions and will link to a different webpage if a
certain answer is selected, otherwise I really don't use it for anything
else.
===================

I think you overestimate your ability in attempting such a large page.

Try to debug a simple page by reading and understanding error messages
and inserting breakpoints like alert(validateme(form.q1.value))

First try a such simple page and exactly define for yourself what you
want to achieve. Perhaps later you will be able to more.

Sorry, programming is not just writing code, but minutely understanding
the code and the requirements of your page.

===================
a
and lastly, please do not toppost on usenet.
I didn't mean to, really. My newsreader seemed to have a conniption this
morning. Or maybe it was me not being quite fully awake! Thanks again for
your help!

KL
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)


Jul 23 '05 #5
On Sun, 12 Dec 2004 10:44:14 -0600, KL <kl*******@aohell.com> wrote:
"Evertjan." <ex**************@interxnl.net> wrote in message
news:Xn********************@194.109.133.29...
KL wrote on 12 dec 2004 in comp.lang.javascript:
[snip]
<script type="text/JavaScript">
Although it's not really required, convention puts MIME types in all
lowercase.

[snip]
var ans1 = eval(form.q1.value);
var ans1 = 1*form.q1.value;


Using unary plus, rather than multiplying by one, is preferred.

[snip]
function validateme(x){
if (NaN(x)){error=true;return 0};
This will cause an error. However, the isNaN function generally isn't very
useful unless you intend to allow *any* form of number.
return 1*x;
};
return +x;
function rankme(form) {
var error = false;
This won't work. The validateme function creates a global variable, error.
This local variable will hide it so error will always be false.

[snip]
if (result < 1.5 ) myfile = "aparent.htm"


I'd recommend that braces are always included.

[snip]
I made those corrections as you so helpfully provided, but it still isn't
working.
The reason is that

form.q1

and the like will return a collection of elements that represent all of
the radio buttons with that name in that form. What you actually need to
do is search that collection for the selected element and return its value.

function getCheckedValue(form, group) {
group = form.elements[group];
for(var i = 0, n = group.length; i < n; ++i) {
if(group[i].checked) {return group[i].value;}
}
}

Combining this with rankMe, you'll get:

/* I've changed the function name just for my tastes.
* Change it back to rankme if you want to.
*/
function rankMe(form) {var fileName;
/* If the questions were sequential, this could become a loop,
* which would be must simpler:
*
* for(var i = 1, n = 8; i <= n; ++i) {
* result += getCheckedValue(form, 'q' + i);
* }
*
* You could also perform the error correction here, allowing you
* to easily state what the visitor missed:
*
* for(var i = 1, n = 8; i <= n; ++i) {
* result += getCheckedValue(form, 'q' + i);
* if(isNaN(result)) {
* // Error
* }
* }
*/
var result = (getCheckedValue(form, 'q1')
+ getCheckedValue(form, 'q2') + getCheckedValue(form, 'q4')
+ getCheckedValue(form, 'q5') + getCheckedValue(form, 'q7')
+ getCheckedValue(form, 'q8') + getCheckedValue(form, 'q10')
+ getCheckedValue(form, 'q11')) / 8;

/* getCheckedValue will return undefined if no values were
* checked. When this is converted to a number, it becomes NaN
* (Not a Number). If the expression below is true, the visitor
* missed an answer.
*/
if(isNaN(result)) {
/* If you want to show an error, do it here.
*
* For example:
* alert('Please answer all of the questions before proceeding');
*/
return;
}

if(result < 1.5) {fileName = 'aparent.htm';}
else if (result < 2.5) {fileName = 'adoptee.htm';}
else if (result < 3.5) {fileName = 'bparent.htm';}
else if (result < 4.5) {fileName = 'pap.htm';}
else if (result < 5.5) {fileName = 'fac.htm';}
else if (result < 6.5) {fileName = 'sw.htm';}
else {return;}

window.open('http://cassidygirls.com/2004/' + fileName, 'result');
}

[snip]
I am trying to get this done before I go in for surgery tomorrow.


I hope it goes well.

Mike
Please don't top-post.

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
Jul 23 '05 #6
KL wrote:
I made those corrections as you so helpfully provided, but it still isn't
working. Can you take a look at the page and see if I haven't just honked
it up completely? I am trying to get this done before I go in for surgery
tomorrow.

http://cassidygirls.com/2004/index.htm


function validateme(x){
if (NaN(x)){error=true;return 0};
return 1*x;
};

should be:

function validateme(x){
if (isNaN(x)){error=true;return 0};
return 1*x;
}
Mick
Jul 23 '05 #7
KL
"Michael Winter" <M.******@blueyonder.co.invalid> wrote in message
news:opsiwojpylx13kvk@atlantis...
On Sun, 12 Dec 2004 10:44:14 -0600, KL <kl*******@aohell.com> wrote:
"Evertjan." <ex**************@interxnl.net> wrote in message
news:Xn********************@194.109.133.29...
KL wrote on 12 dec 2004 in comp.lang.javascript:
[snip]
<script type="text/JavaScript">
Although it's not really required, convention puts MIME types in all
lowercase.

[snip]
var ans1 = eval(form.q1.value);

var ans1 = 1*form.q1.value;
Using unary plus, rather than multiplying by one, is preferred.

[snip]
function validateme(x){
if (NaN(x)){error=true;return 0};
This will cause an error. However, the isNaN function generally isn't very
useful unless you intend to allow *any* form of number.
return 1*x;
};
return +x;
function rankme(form) {
var error = false;
This won't work. The validateme function creates a global variable, error.
This local variable will hide it so error will always be false.

[snip]
if (result < 1.5 ) myfile = "aparent.htm"
I'd recommend that braces are always included.

[snip]
I made those corrections as you so helpfully provided, but it still isn't
working.
The reason is that

form.q1

and the like will return a collection of elements that represent all of
the radio buttons with that name in that form. What you actually need to
do is search that collection for the selected element and return its
value.

function getCheckedValue(form, group) {
group = form.elements[group];
for(var i = 0, n = group.length; i < n; ++i) {
if(group[i].checked) {return group[i].value;}
}
}

Combining this with rankMe, you'll get:

/* I've changed the function name just for my tastes.
* Change it back to rankme if you want to.
*/
function rankMe(form) {var fileName;
/* If the questions were sequential, this could become a loop,
* which would be must simpler:
*
* for(var i = 1, n = 8; i <= n; ++i) {
* result += getCheckedValue(form, 'q' + i);
* }
*
* You could also perform the error correction here, allowing you
* to easily state what the visitor missed:
*
* for(var i = 1, n = 8; i <= n; ++i) {
* result += getCheckedValue(form, 'q' + i);
* if(isNaN(result)) {
* // Error
* }
* }
*/
var result = (getCheckedValue(form, 'q1')
+ getCheckedValue(form, 'q2') + getCheckedValue(form, 'q4')
+ getCheckedValue(form, 'q5') + getCheckedValue(form, 'q7')
+ getCheckedValue(form, 'q8') + getCheckedValue(form, 'q10')
+ getCheckedValue(form, 'q11')) / 8;

/* getCheckedValue will return undefined if no values were
* checked. When this is converted to a number, it becomes NaN
* (Not a Number). If the expression below is true, the visitor
* missed an answer.
*/
if(isNaN(result)) {
/* If you want to show an error, do it here.
*
* For example:
* alert('Please answer all of the questions before proceeding');
*/
return;
}

if(result < 1.5) {fileName = 'aparent.htm';}
else if (result < 2.5) {fileName = 'adoptee.htm';}
else if (result < 3.5) {fileName = 'bparent.htm';}
else if (result < 4.5) {fileName = 'pap.htm';}
else if (result < 5.5) {fileName = 'fac.htm';}
else if (result < 6.5) {fileName = 'sw.htm';}
else {return;}

window.open('http://cassidygirls.com/2004/' + fileName, 'result');
}

[snip]


ARGHH! I am still getting an error when I select the first answer for all
applicable answers and then hit the "submit" button. I have looked and
looked and can't figure out what it wants. Ever get the feeling that your
scripts just go buggy to drive you mad? lol

I don't want to have to give up on this. I really want to know what I am
doing wrong and how to fix it.
I am trying to get this done before I go in for surgery tomorrow.


I hope it goes well.


Me too...this is my second back surgery in a year....blech!

KL
Mike
Please don't top-post.

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.

Jul 23 '05 #8
On Sun, 12 Dec 2004 12:36:54 -0600, KL <kl*******@aohell.com> wrote:

[snip]
function rankMe(form) {var fileName;
/* If the questions were sequential, this could become a loop,
* which would be must simpler:
*
* for(var i = 1, n = 8; i <= n; ++i) {
* result += getCheckedValue(form, 'q' + i);
result += +getCheckedValue(form, 'q' + i);
* }
*
* You could also perform the error correction here, allowing you
* to easily state what the visitor missed:
*
* for(var i = 1, n = 8; i <= n; ++i) {
* result += getCheckedValue(form, 'q' + i);
result += +getCheckedValue(form, 'q' + i);
* if(isNaN(result)) {
* // Error
* }
* }
*/
var result = (getCheckedValue(form, 'q1')
+ getCheckedValue(form, 'q2') + getCheckedValue(form, 'q4')
+ getCheckedValue(form, 'q5') + getCheckedValue(form, 'q7')
+ getCheckedValue(form, 'q8') + getCheckedValue(form, 'q10')
+ getCheckedValue(form, 'q11')) / 8;

var result = (+getCheckedValue(form, 'q1')
+ +getCheckedValue(form, 'q2') + +getCheckedValue(form, 'q4')
+ +getCheckedValue(form, 'q5') + +getCheckedValue(form, 'q7')
+ +getCheckedValue(form, 'q8') + +getCheckedValue(form, 'q10')
+ +getCheckedValue(form, 'q11')) / 8;

[snip]
ARGHH! I am still getting an error when I select the first answer for
all applicable answers and then hit the "submit" button.


Replacing all of your code with what I previously posted didn't produce
any errors, but it didn't do anything either. I forgot to coerce the
return value from getCheckedValue to number. The corrections above (the
last of which is the only important one) should solve it.

[snip]

Hopefully, that should be it.
Mike
Please trim quotes.

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
Jul 23 '05 #9
On Sun, 12 Dec 2004 10:44:14 -0600, KL <kl*******@aohell.com> wrote:

[snip]
http://cassidygirls.com/2004/index.htm


Not something you'll want to look at before your operation, but you might
want to consider validating your HTML. See <URL:http://validator.w3.org/>.

It's not really important for this page because it's just a bit of fun and
doesn't really *do* anything, but you should always try to write valid
HTML.

Mike

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
Jul 23 '05 #10
KL
"Michael Winter" <M.******@blueyonder.co.invalid> wrote in message
news:opsiwssvsxx13kvk@atlantis...
On Sun, 12 Dec 2004 12:36:54 -0600, KL <kl*******@aohell.com> wrote:

[snip]
ARGHH! I am still getting an error when I select the first answer for
all applicable answers and then hit the "submit" button.


Replacing all of your code with what I previously posted didn't produce
any errors, but it didn't do anything either. I forgot to coerce the
return value from getCheckedValue to number. The corrections above (the
last of which is the only important one) should solve it.

Well I am about to throw in the towel. Once I hit my 'submit' button I get
an error on like line 8 char 1 object expected. I don't get an error when I
first load the document, and I am beside myself trying to figure out what I
did wrong. I know it just must be something simple, but I can't see it.

KL
Jul 23 '05 #11
On Sun, 12 Dec 2004 13:28:20 -0600, KL <kl*******@aohell.com> wrote:

[snip]
I know it just must be something simple, but I can't see it.


If you don't show what you've done - by updating the page, for example -
it's difficult to say. :P

Replace the button with

<input type="button" name="score" value="Tell me what I am!"
onclick="rankMe(this.form);">

and replace the SCRIPT element, in its entirety, with this:

<script type="text/javascript">
function getCheckedValue(form, group) {
group = form.elements[group];
for(var i = 0, n = group.length; i < n; ++i) {
if(group[i].checked) {return group[i].value;}
}
}

function rankMe(form) {
var fileName,
result = (+getCheckedValue(form, 'q1')
+ +getCheckedValue(form, 'q2') + +getCheckedValue(form, 'q4')
+ +getCheckedValue(form, 'q5') + +getCheckedValue(form, 'q7')
+ +getCheckedValue(form, 'q8')
+ +getCheckedValue(form, 'q10')
+ +getCheckedValue(form, 'q11')) / 8;

if(isNaN(result)) {
alert('Please answer all of the questions before proceeding');
return;
}

if(result < 1.5) {fileName = 'aparent.htm';}
else if (result < 2.5) {fileName = 'adoptee.htm';}
else if (result < 3.5) {fileName = 'bparent.htm';}
else if (result < 4.5) {fileName = 'pap.htm';}
else if (result < 5.5) {fileName = 'fac.htm';}
else if (result < 6.5) {fileName = 'sw.htm';}
else {return;}

window.open('http://cassidygirls.com/2004/' + fileName, 'result');
}
</script>

and you should have no problems. If you still do, you'll need to let us
see the changes you've made somehow.

Mike

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
Jul 23 '05 #12
KL
"Michael Winter" <M.******@blueyonder.co.invalid> wrote in message
news:opsiwu78qrx13kvk@atlantis...
On Sun, 12 Dec 2004 13:28:20 -0600, KL <kl*******@aohell.com> wrote:

[snip]
I know it just must be something simple, but I can't see it.


If you don't show what you've done - by updating the page, for example -
it's difficult to say. :P

I have been updating the page each time I made a change to it. But most
importantly you helped spectacularly and it works! At least it did for the
first one....now off to check the other ones. Man am I releived. Although
I still wonder what I had done wrong in the first place lol

KL
Jul 23 '05 #13
On Sun, 12 Dec 2004 14:20:40 -0600, KL <kl*******@aohell.com> wrote:

[snip]
I have been updating the page each time I made a change to it.
Sorry. I must not have been forcing a reload.
But most importantly you helped spectacularly and it works!
I'm glad.

[snip]
I still wonder what I had done wrong in the first place lol


Well, if you kept copies of the versions that failed, you could always
upload them somewhere where they won't get viewed and post a link to them.

I did notice that with the first script suggested by Evertjan, you had
changed the return statement in his validateme function from

return 1*x;

to

return 1*x,

and that caused the syntax error that occurred when the page loaded. You
might have done something similar with the other versions. Problems like
that can be difficult to spot (which is why I didn't mention it in my
earlier posts :) ).

Once again, good luck for tomorrow, and I hope development on the rest of
your site goes well.

Mike

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
Jul 23 '05 #14
JRS: In article <opsiw1wmjex13kvk@atlantis>, dated Sun, 12 Dec 2004
22:21:38, seen in news:comp.lang.javascript, Michael Winter <M.Winter@bl
ueyonder.co.invalid> posted :

I did notice that with the first script suggested by Evertjan, you had
changed the return statement in his validateme function from

return 1*x;

to

return 1*x,

One reason for not using 1*x is that it looks rather like l*x, which is
what I first thought the problem must be on reading the above. Writing
+x seems safer.

--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://www.jibbering.com/faq/> JL/RC: FAQ of news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
Jul 23 '05 #15

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Edward King | last post by:
Hi! I am trying to achieve the following: I have a number of help pages (in the format help_nn.php where nn=helpid). I want to be able to open a particular help page by calling the function...
4
by: Joneseyboy | last post by:
Hi, I'm new to this so I could really do with some help! I am using VB.net to create a small game. basically there is a Textbox, a button and a listbox. The user enters a number into the...
2
by: Chuck Martin | last post by:
I am having a most frustrating problem that references, web searches, and other resources are no help so far in solving. Basically, I'm trying to design a pop-up window to be called with a funciton...
1
by: intl04 | last post by:
I'm trying to set up a query that will include a new field ('Days until completion') whose value is derived from the DateDiff function. I think I have the syntax correct but am not sure. Days...
7
by: Mike D. | last post by:
I have a problem with a dynamic library I am developing, but it is really more of a pointer issue than anything else. Hopefully someone here can lend me some assistance or insight into resolving...
4
by: George Durzi | last post by:
I created a simple user control which contains a hyperlink to link the user to a topic in a compiled help file. I named all my help topics to have the same name as the aspx they are for. So in...
7
by: Jimakos Bilakis | last post by:
Hi guys! I'm using the C++ Builder 6 Enterprise Edition where I create some tables in Paradox and with the help of a structure i pass my data from the form (Edit boxes) to the Paradox table with...
10
by: David Fort | last post by:
Hi, I'm upgrading a VB6 app to VB.net and I'm having a problem with a call to a function provided in a DLL. The function takes the address of a structure which it will fill in with values. I...
2
by: f rom | last post by:
----- Forwarded Message ---- From: Josiah Carlson <jcarlson@uci.edu> To: f rom <etaoinbe@yahoo.com>; wxpython-users@lists.wxwidgets.org Sent: Monday, December 4, 2006 10:03:28 PM Subject: Re: ...
1
by: Beamor | last post by:
function art_menu_xml_parcer($content, $showSubMenus) { $doc = new DOMDocument(); $doc->loadXML($content);//this is the line in question $parent = $doc->documentElement; $elements =...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.