How can we assign an object in Java Script??
For Example:-
-----------
If i create an object "obj1"
var obj1 = Object();
obj1.name = "hari";
and if i want to assign it to two objects "obj2" and "obj3"
with different names...
obj1.name = "gopi"
obj2 = new Object(obj1);
obj1.name = "raghu"
obj3 = new Object(obj1)
Now ob2.name become to "raghu" from "gopi". WHY?
how to solve the above problem?
Answer Posted / rajesh
I maynot give the exact reason..but root cause may be
because of...
As you know the javascript is just parsed from top to
bottom. It won;t execute as long as you run the app.
While parsing it just holds the reference and checks for
syntactical errors.
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What are limitations of ajax?
Can we nest the updatepanel controls? : asp.net ajax
Does ajax work with java?
What are the new features of asp.net ajax 4.0?
When do I use a synchronous versus asynchronous request?
What are the benefits of ajax?
Does java have support for comet style server-side push?
Is ajax a browser-dependent or a browser-independent script?
Explain the limitations of ajax? : asp.net ajax
What does the minimumprefixlength property of the autocompleteextender control do? : asp.net ajax
What is xmlhttprequest object in ajax?
How do I send an image using ajax?
How do we manage concurrent request?
Why does html_ajax hang on some server installs?
Explain the updatepanel control? : asp.net ajax