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
Why do we need ajax?
What do I do on the server to interact with an ajax client?
What are the tools for debugging ajax applications?
Did adaptive path invent ajax? Did google?
Who's using ajax?
What does the dynamicpopulateextender control do? : asp.net ajax
How do I access data from other domains to create a mashup with java?
What does the minimumprefixlength property of the autocompleteextender control do? : asp.net ajax
How do we debug javascript?
What exactly is the w3c dom?
Explain the step property of the numericupdownextender control? : asp.net ajax
Can I use ajax with seam?
Why do you use ajax?
What are the ajax security issues?
What is an ajax request and what is a simple example of where a ajax request would be used?