473,734 Members | 2,789 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Safari and form variables in html page

Hi,

I have a table with dynamic html that contains drop down select lists
and readonly text boxes. Dynamic calculations are done on change of a
value in one of the drop down select lists.

Using Safari,my first iteration the script works fine ( indicating that
there
are 33 form variables ). When trying another dropdown select value, the

form elements.length is shown as 33 ( as about ) BUT the script then
crashes with a 'null value' error. I cannot access any of the form
variables - this works in all other browsers and platforms.
Anyway ideas would be great appreciated...
Cheers
>my html page - SAVE AND RUN IN BROWSER>>
<HTML>

<HEAD>
<TITLE>GPA Estimator</TITLE>
<STYLE>
..ie {visibility:hid den}
..ns {visibility:hid e}
</STYLE>
<SCRIPT LANGUAGE="JavaS cript">

// grade object constructor
function grade(grade, honorPoints, creditAttempt, creditEarned,
creditGPA, showable, editable) {

this.grade = grade;
// String
this.honorPoint s = honorPoints; // float
this.creditAtte mpt = creditAttempt; // boolean
this.creditEarn ed = creditEarned; // boolean
this.creditGPA = creditGPA; //
boolean
this.showable = showable; //
boolean
this.editable = editable; //
boolean
}

gradeList = new Array();
gradeList[0] = new grade("No
grade", 0, false, false, false, true, true);
gradeList[1] = new grade("A", 4, true, true,
true, true, false);
gradeList[2] = new grade("A-", 3.7, true, true,
true, true, false);
gradeList[3] = new grade("B+", 3.3, true, true,
true, true, false);
gradeList[4] = new grade("B", 3, true, true,
true, true, false);
gradeList[5] = new grade("B-", 2.7, true, true,
true, true, false);
gradeList[6] = new grade("C+", 2.3, true, true,
true, true, false);
gradeList[7] = new grade("C", 2, true, true,
true, true, false);
gradeList[8] = new grade("C-", 1.7, true, true,
true, true, false);
gradeList[9] = new grade("D", 1, true, true,
true, true, false);
gradeList[10] = new grade("F", 0, true, false,
true, true, false);
gradeList[11] = new
grade("AU", 0, false, false, false, false,
false);
gradeList[12] = new grade("H", 0, true, true,
false, false, false);
gradeList[13] = new grade("J", 0, true, false,
false, false, false);
gradeList[14] = new grade("MG", 0, false, false,
false, true, true);
gradeList[15] = new
grade("NC", 0, false, false, false, false,
false);
gradeList[16] = new grade("P", 0, true, true,
false, false, false);
gradeList[17] = new grade("W", 0, true, false,
false, false, false);
gradeList[18] = new grade("X", 0, false, false,
false, true, true);
gradeList[19] = new grade("I", 0, false, false,
false, true, true);

function getHonorPoints( grade) {
for (var i = 0; i < gradeList.lengt h; i++) {
if ( gradeList[i].grade == grade) {
return gradeList[i].honorPoints;
}
}
}

function isCreditAttempt (grade) {
for (var i = 0; i < gradeList.lengt h; i++) {
if ( gradeList[i].grade == grade) {
return gradeList[i].creditAttempt;
}
}
}

function isCreditEarned( grade) {
for (var i = 0; i < gradeList.lengt h; i++) {
if ( gradeList[i].grade == grade) {
return gradeList[i].creditEarned;
}
}
}

function isCreditGPA(gra de) {
for (var i = 0; i < gradeList.lengt h; i++) {
if ( gradeList[i].grade == grade) {
return gradeList[i].creditGPA;
}
}
}

function isShowable(grad e) {
for (var i = 0; i < gradeList.lengt h; i++) {
if ( gradeList[i].grade == grade) {
return gradeList[i].showable;
}
}
}

function getSelect(suffi x,postedgrade) {
var select = "";
var selectName = "gradesList _" + suffix;
select += "<SELECT NAME='" + selectName + "'
onChange=update (this.form," + selectName + ")>";
for (var i = 0; i < gradeList.lengt h; i++) {
if (gradeList[i].showable) {
select += "<OPTION VALUE='" + gradeList[i].grade
+ "'";
// if (i == 0) {
if (gradeList[i].grade == postedgrade) {
select += " SELECTED";
}
select += ">" + gradeList[i].grade;
}
}
select += "</SELECT>";
return select;

var honorPointsPref ix = "honorPoint s_";
var gradePointsPref ix = "gradePoint s_";
var decplaces = 2;
var previousSemeste rs = "Previous Semesters";
var J_grade = false;

sem = new Array();
sem[0] = new semesterName("1 ", "SUMMER1");
sem[1] = new semesterName("2 ", "SUMMER2");
sem[2] = new semesterName("3 ", "FALL");
sem[3] = new semesterName("4 ", "SPRING");

courseList = new Array();

function getGradePoints( credits, points) {
return parseFloat (credits) * parseFloat (points);
}

function format (expr, decplaces) {
var str = "" + Math.round (eval(expr) * Math.pow(10,dec places))
while (str.length <= decplaces) {
str = "0" + str
}
// establish location of decimal point
var decpoint = str.length - decplaces
// assemble final result from: (a) the string up to the position
of
// the decimal point; (b) the decimal point; and (c) the balance
// of the string. Return finished product.
return str.substring(0 ,decpoint) + "." +
str.substring(d ecpoint,str.len gth);
}

function getTotalCredits (semester) {
var totalCredits = 0;
for (var i = 0; i < courseList.leng th; i++) {
if (isCreditGPA(co urseList[i].grade) && (
courseList[i].semesterCode
== semester || semester == null)) {
totalCredits +=
parseFloat(cour seList[i].credits);
}
}
return totalCredits;
}

function getTotalGradePo ints(semester) {
var totalGradePoint s = 0;
var honor;
for (var i = 0; i < courseList.leng th; i++) {
if (isCreditGPA(co urseList[i].grade) && (
courseList[i].semesterCode
== semester || semester == null)) {
honor = getHonorPoints( courseList[i].grade);
totalGradePoint s +=
parseFloat(cour seList[i].gradePoints);
}
}
return totalGradePoint s;
}

function getEarnedCredit s(semester) {
var credits = 0;
for (var i = 0; i < courseList.leng th; i++) {
if (isCreditEarned (courseList[i].grade) && (
courseList[i].semesterCode == semester || semester == null)) {
credits += parseFloat(cour seList[i].credits);
}
}
return credits;
}

function getGPA(semester ) {
var gpa = parseFloat(getT otalGradePoints (semester)) /
parseFloat(getT otalCredits(sem ester));
if (isNaN(gpa)) {
return 0;
} else {
return gpa;
}
}

function semesterName(co de,fullName) {
this.code = code;
this.fullName = fullName;
}

function fullSemesterNam e(semesterCode) {
var semester = "";
var year = semesterCode.su bstring(0, semesterCode.le ngth - 1);
temp = semesterCode.su bstring(semeste rCode.length - 1);
for (var i = 0; i< sem.length; i++) {
if (temp == sem[i].code) {
semester += sem[i].fullName;
break;
}
}
if (temp != "4") {
year = year -1;
}

return semester + " " + year;
// return temp + " " + year;
}

function assembleTable(s emester) {
var content = "";
// start assembling HTML for raw tabl
content += "<TABLE ALIGN='center' BORDER>";
// heads of each column
content += "<TR><FONT
SIZE=-1><TH>Course</TH><TH>Semester </TH><TH>Credits</TH><TH>Grade</TH><TH>Honor
Points</TH><TH>Grade Points</FONT></TH></TR>";
for (var i = 0; i < courseList.leng th; i++) {
if (courseList[i].semesterCode >= semester || semester
== null
|| courseList[i].grade == 'I' ||
courseList[i].grade == 'X'
|| courseList[i].grade == 'MG' ||
courseList[i].grade == 'No grade')
{
content += "<TR>";
content += "<TD><FONT SIZE=-1>" +
courseList[i].course +
"</FONT></TD>";
content += "<TD><FONT SIZE=-1>" +
courseList[i].semesterName +
"</FONT></TD>";
content += "<TD><FONT SIZE=-1>" +
courseList[i].credits +
"</FONT></TD>";
content += "<TD><FONT SIZE=-1>" +
getSelect(i,cou rseList[i].grade) +
"</FONT></TD>";
content += "<TD><FONT SIZE=-1><INPUT TYPE='text'
NAME='" +
honorPointsPref ix + i
+ "' value=" + courseList[i].honorPoints
+ " SIZE=10 DISABLED
onFocus=''></FONT></TD>";
content += "<TD><FONT SIZE=-1><INPUT TYPE='text'
NAME='" +
gradePointsPref ix + i
+ "' value=" + courseList[i].gradePoints
+ " SIZE=10 DISABLED
onFocus=''></FONT></TD>";
content += "</TR>";
}
}
content += "</TABLE>"
return content;
}
function assembleTablePr evious(semester ) {
var content = "";
// start assembling HTML for raw tabl
content += "<TABLE ALIGN='center' BORDER>";
// heads of each column
content += "<TR><FONT
SIZE=-1><TH>Course</TH><TH>Semester </TH><TH>Credits</TH><TH>Grade</TH><TH>Honor
Points</TH><TH>Grade Points</FONT></TH></TR>";
for (var i = 0; i < courseList.leng th; i++) {
if (courseList[i].semesterCode < semester) {
content += "<TR>";
content += "<TD><FONT SIZE=-1>" +
courseList[i].course +
"</FONT></TD>";
content += "<TD><FONT SIZE=-1>" +
courseList[i].semesterName +
"</FONT></TD>";
content += "<TD><FONT SIZE=-1>" +
courseList[i].credits +
"</FONT></TD>";
content += "<TD><FONT SIZE=-1>" +
courseList[i].grade +
"</FONT></TD>";
content += "<TD><FONT SIZE=-1>" +
courseList[i].honorPoints +
"</FONT></TD>";
content += "<TD><FONT SIZE=-1>" +
courseList[i].gradePoints +
"</FONT></TD>";
content += "</TR>";
}
}
content += "</TABLE>"
return content;
}

// course object constructor
function course (course, credits, grade, semesterCode, semesterName,
courseTitle) {
this.course = course;
this.credits = credits;
if (grade =="J") {
J_grade = true;
}
this.grade = grade;
if (grade == "" || grade =="J" || grade == "MG") {
if (grade == "") {
this.grade = gradeList[0].grade;
}
this.editable = true;
} else {
this.editable = false;
}
this.semesterCo de = semesterCode;
this.semesterNa me = fullSemesterNam e(semesterCode) ;
this.courseTitl e = courseTitle;
this.honorPoint s = getHonorPoints( this.grade);
this.gradePoint s = format(getGrade Points(this.cre dits,
this.honorPoint s),1);
}

var mess= "";
function isJGrade() {
if (J_grade) {
alert("You have a class with a 'J' grade. If you enter
a grade for
the second half of this 'J' grade class - the cumulative GPA estimation
will not be accurate.");
// J_grade = false;
}
}

function showResult(form ) {
// alert("I am " + navigator.userA gent.toLowerCas e());
// if (checkBrowser(' safari')) {
// alert("I am Safari");
// window.close();
// } else {
form.currentGra dePoints.value =
format(getTotal GradePoints(cur rentSemesterCod e), 1);
form.currentCre dits.value =
getTotalCredits (currentSemeste rCode);
form.currentGpa .value =
format(getGPA(c urrentSemesterC ode),
decplaces);
form.currentEar nedCredits.valu e =
getEarnedCredit s(currentSemest erCode);
form.totalGrade Points.value =
format(getTotal GradePoints(nul l), 1);
form.totalCredi ts.value = getTotalCredits (null);
form.gpa.value = format(getGPA(n ull), decplaces);
form.totalEarne dCredits.value = getEarnedCredit s(null);
// }
}

function update(form, select) {
var work = select.name.spl it("_");
//alert("kuku/" + work[1] + " form.elements.l ength==" +
form.elements.l ength);
courseList[work[1]].grade =
select.options[select.selected Index].value;
//alert("grade==" + courseList[work[1]].grade);
courseList[work[1]].honorPoints =
getHonorPoints( courseList[work[1]].grade);
//alert("honorPoi nts==" + courseList[work[1]].honorPoints);
courseList[work[1]].gradePoints =
format(getGrade Points(courseLi st[work[1]].credits,
courseList[work[1]].honorPoints), 1);
//alert("gradePoi nts==" + courseList[work[1]].gradePoints);

var formElements = document.GPAFor m.elements;
for (var i = 0; i < formElements.le ngth; i++) {

alert ("element name " +
document.GPAFor m.elements[i].name + "
element index " + i); // problem is here!!!!

if (form.elements[i] == null) {
alert("index=" + i + " I am null");
}

if (document.GPAFo rm.elements[i].name ==
(honorPointsPre fix +
work[1])) {
document.GPAFor m.elements[i].value =
courseList[work[1]].honorPoints;
}
if (document.GPAFo rm.elements[i].name ==
(gradePointsPre fix +
work[1])) {
document.GPAFor m.elements[i].value =
courseList[work[1]].gradePoints;
}
}
// form.reset();
showResult(docu ment.GPAForm);
}

function showTable(form) {
if (form.showAll.c hecked) {
prev_sem_expolr er.style.visibi lity="visible";
} else {
prev_sem_expolr er.style.visibi lity="hidden";
}
}

function checkBrowser(st ring)
{
place = navigator.userA gent.toLowerCas e().indexOf(str ing) + 1;
thestring = string;
return place;
}
courseList[0] = new course ("CASCH131", "4.0","A","2005 3","FALL
04","!title!" );
courseList[1] = new course ("CASMA123", "4.0","A","2005 3","FALL
04","!title!" );
courseList[2] = new course ("CASWR100", "4.0","B+","200 53","FALL
04","!title!" );
courseList[3] = new course ("ENGEK126", "4.0","A","2005 3","FALL
04","!title!" );
courseList[4] = new course ("CASCH102", "4.0","A","2005 4","SPRG
05","!title!" );
courseList[5] = new course ("CASLN212", "4.0","A","2005 4","SPRG
05","!title!" );
courseList[6] = new course ("CASMA124", "4.0","A","2005 4","SPRG
05","!title!" );
courseList[7] = new course ("CASPY211", "4.0","","20054 ","SPRG
05","!title!" );
courseList[8] = new course ("CASPY211", "4.0","A","2005 4","SPRG
05","!title!" );
courseList[9] = new course ("ENGEK130", "4.0","A","2005 4","SPRG
05","!title!" );
courseList[10] = new course ("CASAR100", "4.0","A-","20063"," FALL
05","!title!" );
courseList[11] = new course ("CASEC101", "4.0","B+","200 63","FALL
05","!title!" );
courseList[12] = new course ("CASMA225", "4.0","A","2006 3","FALL
05","!title!" );
courseList[13] = new course ("CASPY212", "4.0","A","2006 3","FALL
05","!title!" );
courseList[14] = new course ("ENGEK301", "4.0","A-","20063"," FALL
05","!title!" );
courseList[15] = new course ("ENGAM310", "4.0","","20064 ","SPRG
06","!title!" );
courseList[16] = new course ("ENGDR999", "16.0","","2006 4","SPRG
06","!title!" );
courseList[17] = new course ("ENGEK156", "2.0","","20064 ","SPRG
06","!title!" );
courseList[18] = new course ("PDPAQ101", "1.0","","20064 ","SPRG
06","!title!" );
courseList[19] = new course ("SMGAC221", "4.0","","20064 ","SPRG
06","!title!" );
courseList[20] = new course ("SMGAC222", "4.0","","20064 ","SPRG
06","!title!" );
courseList[21] = new course ("ENGSC311", "4.0","","20071 ","SUM1
06","!title!" );

var currentSemester Code = "20073";
var currentSemester Name = fullSemesterNam e("20073");

</SCRIPT>
</HEAD>

<BODY BGCOLOR=#FFFFFF LINK=#CC0000 TEXT=#330000 VLINK=#CC0000
ALINK=#FF0000 onLoad="isJGrad e();showResult( document.forms[0])">

<TABLE WIDTH=100% CELLSPACING=0 CELLPADDING=0>
<TR>

<TD><FONT SIZE=+1 COLOR=#660000 FACE="Verdana, Helvetica, Arial,
sans-serif"><B>GPA ESTIMATOR</B></FONT>
<TD ALIGN=right>
</TABLE>
<HR>
<TABLE ALIGN="center" BORDER=2 CELLSPACING=0 CELLPADDING=0
WIDTH="100%">
<TR ALIGN="center">
<TD>This calculation tool is an unofficial representation for
use in
estimating semester grade point averages. Some values may vary slightly
due to the script language limitations.
</TABLE>
<BR>
<BR>
<!--
<TABLE CELLSPACING=0 CELLPADDING=0>
<TR>
<TH>Semester:
<TD>
<SCRIPT LANGUAGE="JavaS cript">
document.write( fullSemesterNam e("20073"));
</SCRIPT>
</TABLE>
-->
<TABLE ALIGN='center' CELLSPACING=0 CELLPADDING=0>
<TR>

<TD><B>Curren t semester courses and previous semesters' courses with
grades</B></TD>
</TR>
<TR>
<TD><B>'X', 'MG', 'I', and 'No grade'.</B></TD>
</TR>
</TABLE>

<FORM name="GPAForm">
<SCRIPT LANGUAGE="JavaS cript">
document.write( assembleTable(c urrentSemesterC ode));
document.close( );
</SCRIPT>
<BR>
<BR>
<TABLE ALIGN='center' BORDER=0>

<TR><TH></TH><TH>Grade Points</TH>
<TH>GPA Based Credits</TH>
<TH>Estimated GPI/GPA</TH>
<TH>Estimated Earned Credits</TH></TR>
<TR>
<TD><STRONG>Cur rent Semester<STRONG ></TD>
<TD><INPUT TYPE='text' NAME='currentGr adePoints' SIZE=10
DISABLED
onFocus=''></TD>
<TD><INPUT TYPE='text' NAME='currentCr edits' SIZE=10 DISABLED
onFocus=''></TD>
<TD><INPUT TYPE='text' NAME='currentGp a' SIZE=10 DISABLED
onFocus=''></TD>

<TD><INPUT TYPE='text' NAME='currentEa rnedCredits' SIZE=10
DISABLED
onFocus=''></TD>
</TR>
<TR>
<TD><STRONG>Uni versity(cumulat ive)</STRONG></TD>
<TD><INPUT TYPE='text' NAME='totalGrad ePoints' SIZE=10 DISABLED
onFocus=''></TD>
<TD><INPUT TYPE='text' NAME='totalCred its' SIZE=10 DISABLED
onFocus=''></TD>
<TD><INPUT TYPE='text' NAME='gpa' SIZE=10 DISABLED
onFocus=''></TD>
<TD><INPUT TYPE='text' NAME='totalEarn edCredits' SIZE=10
DISABLED
onFocus=''></TD>
</TR>
</TABLE>

<BR>
<BR>
<INPUT TYPE="checkbox" NAME="showAll"
onClick="showTa ble(this.form)" ><STRONGShow Previous
Semesters</STRONG>
</FORM>
<div id=prev_sem_exp olrer style="visibili ty:hidden">
<h3 ALIGN='center'P revious Semesters</I></h3>
<SCRIPT LANGUAGE="JavaS cript">
document.write( assembleTablePr evious(currentS emesterCode));
</SCRIPT>
</div>
</BODY>
</HTML>

Jan 10 '07 #1
2 2129
justplain....@g mail.com wrote:
Hi,

I have a table with dynamic html that contains drop down select lists
and readonly text boxes. Dynamic calculations are done on change of a
value in one of the drop down select lists.

Using Safari,my first iteration the script works fine ( indicating that
there
are 33 form variables ). When trying another dropdown select value, the

form elements.length is shown as 33 ( as about ) BUT the script then
crashes with a 'null value' error. I cannot access any of the form
variables - this works in all other browsers and platforms.
Anyway ideas would be great appreciated...
1. Reduce the code to a minimum that displays the issue.

2. Manually wrap code at about 70 characters to avoid auto-wrapping
(particularly when you have many, many long string literals).

3. Use 2 spaces for indenting.

4. Ensure posted code will work as intended when copied and
pasted from a news reader.

5. Consider posting a link to a page rather than several hundred
lines of code.
--
Rob

Jan 10 '07 #2
justplain....@g mail.com wrote:
Hi,

I have a table with dynamic html that contains drop down select lists
and readonly text boxes. Dynamic calculations are done on change of a
value in one of the drop down select lists.

Using Safari,my first iteration the script works fine ( indicating that
there
are 33 form variables ). When trying another dropdown select value, the

form elements.length is shown as 33 ( as about ) BUT the script then
crashes with a 'null value' error. I cannot access any of the form
variables - this works in all other browsers and platforms.
Anyway ideas would be great appreciated...
1. Reduce the code to a minimum that displays the issue.

2. Manually wrap code at about 70 characters to avoid auto-wrapping
(particularly when you have many, many long string literals).

3. Use 2 spaces for indenting.

4. Ensure posted code will work as intended when copied and
pasted from a news reader.

5. Consider posting a link to a page rather than several hundred
lines of code.
--
Rob

Jan 10 '07 #3

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

Similar topics

1
2979
by: Sam Wuebben | last post by:
I am using a standard javascript that I downloaded from javascriptsource.com to read from and fill in a form using cookies. The page tests well in every browser except Apple's Safari (from 10.3.2) Unfortunately, my clients daughter uses Safari so I have to get it to work with it, even though most of his clients use IE. What do I need to do to change the code so this will all work in Safari?
4
1558
by: Pasquale | last post by:
With the code below, can anyone see why the array and/or the field in the last line are empty for Safari users? It works with Netscape 6 and up, IE 6, Firefox, Konqueror. Thanks, Pasquale //begin
1
1646
by: timchalk | last post by:
I believe I've found a problem with the Safari DOM when updating the text found within a layer. Although the layer is updated correctly visually, the underlying DOM seems to grow larger with duplicated elements rather than being reset with the new elements. I've created a test page which demonstrates this issue... http://www.qas.com/layer-test.htm The page contains an initially empty <div> element within <form> tags. When the page...
6
23125
by: jennyw | last post by:
Hi, I'd like to use onbeforeunload to submit a form before leaving a page. This works in Firefox and IE. Safari, however, blithely ignores this. Does anyone know of a workaround for Safari? Or another way to do the same thing in Safari? (that is, intercept a request to leave the page). I tried Safari 2.02 on Tiger. Thanks!
1
1957
by: gerry | last post by:
Hi, although this is not strictly asp.net related, I was hoping that someone could confirm or debunk what appears to be a major problem with safari POSTs. with the following html : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <HTML> <HEAD>
2
3382
by: JThomas | last post by:
Hello! I'm having trouble with a page apparently causing my client's Safari browser to time out. I don't actually have access to a Mac & Safari, and haven't been able to physically see this duplicated, but this is the descrip of the problem: >From Client's Point of View: 1. Client, using Safari, fills out a form on one page, submits (POST). 2. Timeout - never sent to next page (submit button is working, but
4
2466
by: metoikos | last post by:
I've scoured the web (clumsily, I'm sure) for information on the difficulties I am having, checked my markup in validators, and had a friend with more CSS clue look over it, but I haven't had any luck. I'll detail my difficulties here and hope for help. I will note that I'm using headings to delineate different sections of my message for easier reading. As you can see from the subject, my problems are related to spacing; one of them is...
8
1678
by: dd | last post by:
Hi, I've discovered a scenario where Safari 1.3 (I need to make my stuff compliant with 1.3+) gets confused about the scope of local variables WITHIN functions that were created in dynamic script blocks. I've made this example where function def has a local i variable in a loop, and it calls function abc which also has a local i variable in a loop. What happens is that Safari is not respecting the scope and is allowing the called...
2
4774
by: rudiedirkx | last post by:
Gents, I have a problem (only in Safari) with the onsubmit in webforms. This topic covers the same subject: http://bytes.com/topic/javascript/answers/166542-onsubmit-safari but not as detailed as I will. Let me illustrate the problem with examples. The HTML: <html> <head> <script type="text/javascript" src="/js/mootools_1_11.js"></script>
0
8946
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8776
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9449
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9236
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9182
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6735
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4809
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3261
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2180
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.