473,729 Members | 2,353 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Cannot reference elements of an object with on-submit event handler


Hi,

I'm having a problem referencing the elements within an object
after a method of that object (a member function) has been activated
with an onsubmit handler:
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - -
<script language="javas cript" type="text/javascript">
function js_onsubmit_hnd l_fn ()
{
var ndx = 0;

alert ("POINT 1" + "::max1>" + this.vald_ray_m ax1
+ "::max2>" + this.vald_ray_m ax2
+ "::error>" + this.wipe_error _msg);

this.vald_ray[ndx]
= rqrd_fld_vald ("textbox01" , "label01", this.vald_ray[ndx]);

ndx++;

this.vald_ray[ndx]
= rqrd_fld_vald ("textbox02" , "label02", this.vald_ray[ndx]);

ndx++;

event.returnVal ue = this.vald_ray[ndx];
alert ("POINT 4");

}

function valdtn_obj_def ()
{
this.vald_ray_m ax1 = 2;
this.vald_ray_m ax2 = 4;
this.wipe_error _msg = "----------------------------";
this.vald_ray = new Array ();
for (var ndx = 0; ndx < this.vald_ray_m ax2; ndx++)
this.vald_ray[ndx] = true;
this.js_onsubmi t_hndl = js_onsubmit_hnd l_fn;
}

var valdtn_obj = new valdtn_obj_def ();

document.getEle mentById("Form_ 01").onsubmit
= valdtn_obj.js_o nsubmit_hndl;

</script>
- - - - - - - - - - - - - - -
- - - - - - - - - - - - - -

I KNOW that the handler is activated, as the alert box comes up.

Can anyone clue me in?

(I'm using IE6, BTW.)

THANKS!
- wASP
Nov 23 '05 #1
8 1877
wASP wrote:
Hi,

I'm having a problem referencing the elements within an object
after a method of that object (a member function) has been activated
with an onsubmit handler:
You are trying to reference properties of the object.
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - -
<script language="javas cript" type="text/javascript">
The language attribute has been depreciated, keep type:

<script type="text/javascript">

function js_onsubmit_hnd l_fn ()
{
var ndx = 0;

alert ("POINT 1" + "::max1>" + this.vald_ray_m ax1
'this' refers to the form, but vald_ray_max1 is a property of the
valdtn_obj object.

alert ("POINT 1" + "::max1>" + valdtn_obj.vald _ray_max1

will report the value you are seeking.

Having the name of the object hard-coded into the function does not seem
to be a good idea.

+ "::max2>" + this.vald_ray_m ax2
+ "::error>" + this.wipe_error _msg);

this.vald_ray[ndx]
= rqrd_fld_vald ("textbox01" , "label01", this.vald_ray[ndx]);

ndx++;

this.vald_ray[ndx]
= rqrd_fld_vald ("textbox02" , "label02", this.vald_ray[ndx]);

ndx++;

event.returnVal ue = this.vald_ray[ndx];
alert ("POINT 4");

}

function valdtn_obj_def ()
{
this.vald_ray_m ax1 = 2;
this.vald_ray_m ax2 = 4;
this.wipe_error _msg = "----------------------------";
this.vald_ray = new Array ();
for (var ndx = 0; ndx < this.vald_ray_m ax2; ndx++)
this.vald_ray[ndx] = true;
this.js_onsubmi t_hndl = js_onsubmit_hnd l_fn;
}

var valdtn_obj = new valdtn_obj_def ();

document.getEle mentById("Form_ 01").onsubmit
= valdtn_obj.js_o nsubmit_hndl;

</script>

[...]

This seems to be overly complex and not very reusable - are you sure
this is the right approach?
--
Rob
Nov 23 '05 #2
RobG wrote:
wASP wrote:
<script language="javas cript" type="text/javascript">
The language attribute has been depreciated, keep type:

^^^^^^^^^^^
<http://www.w3.org/TR/html4/conform.html#h-4.1>
<script type="text/javascript">


<script type="applicati on/javascript">

(will probably) obsolete(s) this[1]. Therefore, I am very much interested
as to whether using this new value is viable in your HTML user agents.
PointedEars
___________
[1]
<http://www1.ietf.org/mail-archive/web/ietf-announce/current/msg01349.html>
Nov 23 '05 #3
On Mon, 14 Nov 2005 21:37:18 +1000, RobG <rg***@iinet.ne t.au> wrote:
wASP wrote:
Hi,

I'm having a problem referencing the elements within an object
after a method of that object (a member function) has been activated
with an onsubmit handler:
You are trying to reference properties of the object.


Properties, fields, member variables - I once got set straight
on using the term "properties " in reference to fields in a C# forum:
"Properties " refer to something else entirely in C#.

That just goes to show you how the terminology can be so confusing
when moving from one realm to another.

- - - - - - - - - - - - - -
- - - - - - - - - - - - - - -
<script language="javas cript" type="text/javascript">


The language attribute has been depreciated, keep type:

<script type="text/javascript">

function js_onsubmit_hnd l_fn ()
{
var ndx = 0;

alert ("POINT 1" + "::max1>" + this.vald_ray_m ax1


'this' refers to the form, but vald_ray_max1 is a property of the
valdtn_obj object.


I thought "js_onsubmit_hn dl_fn" would become a member function
once I made it a member of a class:
this.js_onsubmi t_hndl = js_onsubmit_hnd l_fn;

Oh well - ya' learn sum'tin' new ev'ry day.

alert ("POINT 1" + "::max1>" + valdtn_obj.vald _ray_max1

will report the value you are seeking.

Having the name of the object hard-coded into the function does not seem
to be a good idea.


I know - but what else can I do?

I thought that "this" would refer to everything in the object to which
the function/method was a member.

+ "::max2>" + this.vald_ray_m ax2
+ "::error>" + this.wipe_error _msg);

this.vald_ray[ndx]
= rqrd_fld_vald ("textbox01" , "label01", this.vald_ray[ndx]);

ndx++;

this.vald_ray[ndx]
= rqrd_fld_vald ("textbox02" , "label02", this.vald_ray[ndx]);

ndx++;

event.returnVal ue = this.vald_ray[ndx];
alert ("POINT 4");

}

function valdtn_obj_def ()
{
this.vald_ray_m ax1 = 2;
this.vald_ray_m ax2 = 4;
this.wipe_error _msg = "----------------------------";
this.vald_ray = new Array ();
for (var ndx = 0; ndx < this.vald_ray_m ax2; ndx++)
this.vald_ray[ndx] = true;
this.js_onsubmi t_hndl = js_onsubmit_hnd l_fn;
}

var valdtn_obj = new valdtn_obj_def ();

document.getEle mentById("Form_ 01").onsubmit
= valdtn_obj.js_o nsubmit_hndl;

</script>

[...]

This seems to be overly complex and not very reusable - are you sure
this is the right approach?


It's a fragment of the overall project - this code is being generated
by server-side code written in C# - and it's more reuseable/flexible
than what can be determined by what I've posted - I just weeded out
all of the irrelevancies.

Thanks Rob!

- wASP
Nov 23 '05 #4
wASP wrote:
On Mon, 14 Nov 2005 21:37:18 +1000, RobG <rg***@iinet.ne t.au> wrote:
wASP wrote:
Hi,

I'm having a problem referencing the elements within an object
after a method of that object (a member function) has been activated
with an onsubmit handler: You are trying to reference properties of the object.


Properties, fields, member variables - I once got set straight
on using the term "properties " in reference to fields in a C# forum:
"Properties " refer to something else entirely in C#.

That just goes to show you how the terminology can be so confusing
when moving from one realm to another.


Yes, but JavaScript is pretty simple - there are no classes.

Since you come from an OO environment, have a browse of Douglas
Crockfords stuff:

<URL:http://www.crockford.c om/javascript/>

Particularly the first two articles - "JavaScript : The Wrrrld's Most
Misunderstood Programming Language" and "A Survey of the JavaScript
Programming Language".

- - - - - - - - - - - - - -
- - - - - - - - - - - - - - -
<script language="javas cript" type="text/javascript"> The language attribute has been depreciated, keep type:

<script type="text/javascript">

function js_onsubmit_hnd l_fn ()
{
var ndx = 0;

alert ("POINT 1" + "::max1>" + this.vald_ray_m ax1

'this' refers to the form, but vald_ray_max1 is a property of the
valdtn_obj object.


I thought "js_onsubmit_hn dl_fn" would become a member function
once I made it a member of a class:
this.js_onsubmi t_hndl = js_onsubmit_hnd l_fn;

Oh well - ya' learn sum'tin' new ev'ry day.


What "this" refers to can be difficult to determine if you don't have a
good understanding of the scope chain. The best way to find out what it
refers to is to insert a debug line:

alert((this);
return;

If you're using Firefox it will generally give you a pretty good idea of
what 'this' is.
alert ("POINT 1" + "::max1>" + valdtn_obj.vald _ray_max1

will report the value you are seeking.

Having the name of the object hard-coded into the function does not seem
to be a good idea.
I know - but what else can I do?


Validating forms on the client has been attempted thousands of times,
usually poorly. One strategy is to 'type' form controls - add the
'type' as a class name and use it to determine the validation function
to run on the control.

The 'validator' can be an object, or just a set of functions. Putting
them in an object encapsulates them and may be better for maintenance.

Below is a bit of an example, it does trivial validation (just checks if
there is anything in the control) and pesters you with alerts, but you
get the idea. Preferably the response to invalid input would be to put
messages in the form rather that direct the user to fix things.

I've used a switch statement to select the validation to be run, but
there are many other ways to do it.
e.g.

<script type="text/javascript">

var FormValidator = (function(){

function checkDate(el){
// stuff to validate a date input
var elValid = !!el.value
showDetail(el, elValid);
return elValid;
}

function checkName(el){
// stuff to validate a name input
var elValid = !!el.value
showDetail(el, elValid);
return elValid;
}

function checkEmail(el){
// stuff to validate an email input
var elValid = !!el.value
showDetail(el, elValid);
return elValid;
}

function showDetail(el, isValid){
alert('Checking : ' + ((el.name)?el.n ame:'anonymouse ')
+ '\nContent: ' + ((el.value)?el. value:'')
+ '\nValid? ' + ((isValid)? 'Yes' : 'No')
);
}

return ({
checkForm : function()
{
var fEls = this.elements;
var el, i=0;
var cName;
var isValid = true;
while ( (el = fEls[i++]) ){
if (el.className &&
(cName = el.className.ma tch(/\bfcType_[\w\d]+\b/) )){

switch (cName[0].split('_')[1])
{
case 'date' : isValid = checkDate(el);
break;
case 'name' : isValid = checkName(el);
break;
case 'email' : isValid = checkEmail(el);
break;
default : ;
}
}
}
return confirm(
'Form checked as: '
+ ((isValid)?'val id':'invalid')
+ '\nSumbit?');
}
});
})();

window.onload = function(){
var allForms = document.forms;
var i=allForms.leng th;
while (i--){
allForms[i].onsubmit = FormValidator.c heckForm;
}
};

</script>
</head>
<body>

<form action="">
<input type="text" class="fcType_d ate" name="date">
<input type="text" class="fcType_n ame" name="name">
<input type="text" class="fcType_e mail" name="email">
<input type="submit" class="fcType_s ubmit">
</form>

[...]
It's a fragment of the overall project - this code is being generated
by server-side code written in C# - and it's more reuseable/flexible
than what can be determined by what I've posted - I just weeded out
all of the irrelevancies.


Thanks! :-)
--
Rob
Nov 23 '05 #5
On Tue, 15 Nov 2005 01:09:58 GMT, RobG <rg***@iinet.ne t.au> wrote:
wASP wrote:
On Mon, 14 Nov 2005 21:37:18 +1000, RobG <rg***@iinet.ne t.au> wrote:
wASP wrote:
Hi,

I'm having a problem referencing the elements within an object
after a method of that object (a member function) has been activated
with an onsubmit handler:
You are trying to reference properties of the object.
Properties, fields, member variables - I once got set straight
on using the term "properties " in reference to fields in a C# forum:
"Properties " refer to something else entirely in C#.

That just goes to show you how the terminology can be so confusing
when moving from one realm to another.


Yes, but JavaScript is pretty simple - there are no classes.


So I'm looking for something that isn't there - which explains why
I can't find it.

Since you come from an OO environment, have a browse of Douglas
Crockfords stuff:

<URL:http://www.crockford.c om/javascript/>

Particularly the first two articles - "JavaScript : The Wrrrld's Most
Misunderstoo d Programming Language" and "A Survey of the JavaScript
Programming Language".
I've looked through some of it, and saved the link.
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - -
<script language="javas cript" type="text/javascript">
The language attribute has been depreciated, keep type:

<script type="text/javascript">
function js_onsubmit_hnd l_fn ()
{
var ndx = 0;

alert ("POINT 1" + "::max1>" + this.vald_ray_m ax1
'this' refers to the form, but vald_ray_max1 is a property of the
valdtn_obj object.


I thought "js_onsubmit_hn dl_fn" would become a member function
once I made it a member of a class:
this.js_onsubmi t_hndl = js_onsubmit_hnd l_fn;

Oh well - ya' learn sum'tin' new ev'ry day.


What "this" refers to can be difficult to determine if you don't have a
good understanding of the scope chain. The best way to find out what it
refers to is to insert a debug line:

alert((this);
return;

If you're using Firefox it will generally give you a pretty good idea of
what 'this' is.


I was just now looking through this page:
http://www.crockford.com/javascript/private.html

... and I saw something interesting:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
By convention, we make a private self parameter. This is used to make
the object available to the private methods. This is a workaround for
an error in the ECMAScript Language Specification which causes this
to be set incorrectly for inner functions.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

So, it would appear that the "this" mechanism has a bit of a bug in it.
alert ("POINT 1" + "::max1>" + valdtn_obj.vald _ray_max1

will report the value you are seeking.

Having the name of the object hard-coded into the function does not seem
to be a good idea.


I know - but what else can I do?


Validating forms on the client has been attempted thousands of times,
usually poorly. One strategy is to 'type' form controls - add the
'type' as a class name and use it to determine the validation function
to run on the control.

The 'validator' can be an object, or just a set of functions. Putting
them in an object encapsulates them and may be better for maintenance.


This is what I'm doing ... sort of ... only most of it
is on the server-side of things - C# - ASP.NET.

Below is a bit of an example, it does trivial validation (just checks if
there is anything in the control) and pesters you with alerts, but you
get the idea. Preferably the response to invalid input would be to put
messages in the form rather that direct the user to fix things.

I've used a switch statement to select the validation to be run, but
there are many other ways to do it.
e.g.

<script type="text/javascript">

var FormValidator = (function(){

function checkDate(el){
// stuff to validate a date input
var elValid = !!el.value
showDetail(el, elValid);
return elValid;
}

function checkName(el){
// stuff to validate a name input
var elValid = !!el.value
showDetail(el, elValid);
return elValid;
}

function checkEmail(el){
// stuff to validate an email input
var elValid = !!el.value
showDetail(el, elValid);
return elValid;
}

function showDetail(el, isValid){
alert('Checking : ' + ((el.name)?el.n ame:'anonymouse ')
+ '\nContent: ' + ((el.value)?el. value:'')
+ '\nValid? ' + ((isValid)? 'Yes' : 'No')
);
}

return ({
checkForm : function()
{
var fEls = this.elements;
var el, i=0;
var cName;
var isValid = true;
while ( (el = fEls[i++]) ){
if (el.className &&
(cName = el.className.ma tch(/\bfcType_[\w\d]+\b/) )){

switch (cName[0].split('_')[1])
{
case 'date' : isValid = checkDate(el);
break;
case 'name' : isValid = checkName(el);
break;
case 'email' : isValid = checkEmail(el);
break;
default : ;
}
}
}
return confirm(
'Form checked as: '
+ ((isValid)?'val id':'invalid')
+ '\nSumbit?');
}
});
})();

window.onloa d = function(){
var allForms = document.forms;
var i=allForms.leng th;
while (i--){
allForms[i].onsubmit = FormValidator.c heckForm;
}
};

</script>
</head>
<body>

<form action="">
<input type="text" class="fcType_d ate" name="date">
<input type="text" class="fcType_n ame" name="name">
<input type="text" class="fcType_e mail" name="email">
<input type="submit" class="fcType_s ubmit">
</form>


That's an interesting approach - and I've saved this post as a file
in my "JavaScript " folder - but it doesn't work well with my overall system.
In my scheme of things, the overall process is driven by the server-side
part of this.

The way that I have it set up now, I've got a label control associated with
the control to be validated (textbox in this case), and I display my error
messages in that label - on both server-side and client-side (JavaScript).
I've got the basic mechanism working now, but I have one more little problem.

I'm trying to figure out a way to deactivate the label control when
the error condition is resolved (and there is no longer an error),
but I can't seem to find what I need in the way of documentation
for doing this. I don't want to remove the label control from the
DOM hierarchy, just deactivate it - so that I can reuse it in the
event that there is another error condition. I don't know how
to do that with JavaScript.

I Googled on "JavaScript attributes", and "JavaScript setactive",
but I don't see anything that might be useful.

Do you know of any books/websites that go beyond the fundamentals
of JavaScript?

Thanks Rob.

- wASP
Nov 23 '05 #6
wASP wrote:
<snip>
I was just now looking through this page:
http://www.crockford.com/javascript/private.html

... and I saw something interesting:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
By convention, we make a private self parameter. This is used
to make the object available to the private methods. This is
a workaround for an error in the ECMAScript Language Specification
which causes this to be set incorrectly for inner functions.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

So, it would appear that the "this" mechanism has a bit of a
bug in it.


There is no bug. Language implementations do precisely what the
specification says they should do. Douglas is arguing that the it would
have been better if the handling of - this - had been specified
differently, which is certainly a valid argument, but doesn't change the
language as we have it.

At least it is possible to work out what - this - will refer to in any
language context.

Richard.
Nov 23 '05 #7
On Wed, 16 Nov 2005 00:11:30 -0000, "Richard Cornford" <Ri*****@litote s.demon.co.uk>
wrote:
wASP wrote:
<snip>
I was just now looking through this page:
http://www.crockford.com/javascript/private.html

... and I saw something interesting:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
By convention, we make a private self parameter. This is used
to make the object available to the private methods. This is
a workaround for an error in the ECMAScript Language Specification
which causes this to be set incorrectly for inner functions.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

So, it would appear that the "this" mechanism has a bit of a
bug in it.


There is no bug. Language implementations do precisely what the
specificatio n says they should do. Douglas is arguing that the it would
have been better if the handling of - this - had been specified
differently, which is certainly a valid argument, but doesn't change the
language as we have it.

At least it is possible to work out what - this - will refer to in any
language context.

Richard.


... and this is where we could get into a debate as to just what
exactly a "bug" is - but I'm really not interested in getting into that
- so I'll just "bow out" and let it go ...

- wASP
Nov 23 '05 #8
wASP wrote:
[...]
The way that I have it set up now, I've got a label control associated with
the control to be validated (textbox in this case), and I display my error
messages in that label - on both server-side and client-side (JavaScript).
I've got the basic mechanism working now, but I have one more little problem.
Do you mean you have a text input or similar to display the error
message in? (I suppose you don't mean a label element)

You could write the error to a div or span element. The error message
element can be associated with the appropriate form control using
patterns in the ID, something like:

<input id="someControl 01" ... >I am a text input 01
<input id="someControl 01_Error" ... >Error for input 01 goes here

<input id="someControl 02" ... >I am a text input 02
<input id="someControl 02_Error" ... >Error for input 02 goes here


I'm trying to figure out a way to deactivate the label control when
the error condition is resolved (and there is no longer an error),
but I can't seem to find what I need in the way of documentation
for doing this. I don't want to remove the label control from the
DOM hierarchy, just deactivate it - so that I can reuse it in the
event that there is another error condition. I don't know how
to do that with JavaScript.
Form controls can be 'deactivated' by setting their disabled attribute
to 'true'. By default, it is set to false (i.e. not disabled).
Disabling it will stop its value from being submitted, but even if its
value is submitted you can ignore it at the server.

You can hide the control by setting its - style.visibilit y - to
'hidden'. That way the control just disappears without affecting the
layout of your page (show it again with 'visible').

You can also set the display property to 'none' (hidden) and ''
(default), but that removes/replaces the element in the document flow so
it will probably make stuff jump around in the page.


I Googled on "JavaScript attributes", and "JavaScript setactive",
but I don't see anything that might be useful.
JavaScript doesn't have those properties/attributes, a good
understanding of the difference between JavaScript, HTML and the
Document Object Model (DOM) in essential.
Do you know of any books/websites that go beyond the fundamentals
of JavaScript?


I think the stock answer is:

"they are all crap, but the least crap is David Flanagan's
'javascript: The Definitive Guide' (O'Reilly)."

You can peruse it using Amazon's book-viewer:

<URL:http://www.amazon.com/gp/reader/1565923928/ref=sib_dp_pt/104-3429070-6769519#reader-page>

It even gets the thumbs-up every now and again. But you will probably
get the best advice and assistance right here.

--
Rob
Nov 23 '05 #9

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

Similar topics

8
50587
by: Alex Ang | last post by:
I have written the following VBScript program. It is stored into a file "map_drive.vbs". It successfully mapped to a network drive \\server1\data. Dim WshNetwork Set WshNetwork = WScript.CreateObject("WScript.Network") sPwd = inputbox("Enter password") WshNetwork.MapNetworkDrive "J:", "\\server1\data", false, "xyz_net\John", sPwd Msgbox "Drives has been map successful"
3
2657
by: vikenk | last post by:
Hello, This is my first post to this group. A little background first: I'm not not new to web-design, but new to manual coding :>) I'm trying to move from total dependence on FrontPage to more manual coding and positioning. So far I think I've done OK for a newbie (you can go to http://home.comcast.net/~vikenk to see my latest site, which is based mostly on a CSS). But now I have a question: I'm trying to position a Java Applet using...
1
1290
by: Zhang Weiwu | last post by:
Hello. I often need to write cross-browser javascript, so far gecko dom reference is the reference seems mostly suite me, for things running well on gecko are likely to be running well on other engines. Perhaps gecko is the closest to w3c recommendations (if not Amaya)? Now it seems many of javascript/dom is not converted by gecko reference. So what reference do you use? I want a very complete reference for web scripting in HTML document...
7
6189
by: zhong.zx | last post by:
I need to expand the DOM object function for conviniency as following: Node.prototype.removeChildren = function() { while( this.lastChild) this.removeChild( this.lastChild); } which can be accepted by Firefox but IE 6 doesnot !!! Doesnot IE support prototype define above DOM object? Sound Un-resonable!
1
1373
by: Ivan | last post by:
If a reference to an object or an array is set to null, will the object/array and all of it’s members/elements be garbage collected as well (Assuming that no other references are held on the members/elements, and none of these members/elements hold references to unmanaged resources.)? For example: public class A { public A(){}
29
3646
by: shuisheng | last post by:
Dear All, The problem of choosing pointer or reference is always confusing me. Would you please give me some suggestion on it. I appreciate your kind help. For example, I'd like to convert a string to a integer number. bool Convert(const string& str, int* pData); bool Convert(const string& str, int& data);
2
6337
by: champion | last post by:
I am the following when i try to run my java program. I have included the code below CollectionExample1.java java.util.Collection is abstract; cannot be instatiated Collection col=new Collection(); CODE import java.util.*; class CollectionsExample1
2
2131
by: vunet.us | last post by:
Please, explain an interesting phenomenon, if you can. I have an array of references to an HTML element: <div id='container'> <div id='someId1'></div> <div id='someId2'></div> </div> ..... myArray = document.getElementById("someId1"); myArray = document.getElementById("someId2");
275
12331
by: Astley Le Jasper | last post by:
Sorry for the numpty question ... How do you find the reference name of an object? So if i have this bob = modulename.objectname() how do i find that the name is 'bob'
0
2356
by: AK | last post by:
Hello, I need to do the following with an xml document which has a list of assets: 1. Hash the assets 2. Hash the element describing the assets 3. Create a digital signature (using X.509 certificate) over the hashes from step 1 and 2 Most of the examples I've been looking at are doing a digital
0
8917
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
9426
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...
0
9281
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9142
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...
0
8148
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6722
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
6022
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3238
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
2163
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.