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
Can we nest the updatepanel controls? : asp.net ajax
Where can I find examples of ajax?
what is xmlhttprequest?
Is ajax an api?
Will html_ajax integrate with other javascript ajax libraries such as scriptaculous? How would this integration look like?
Is adaptive path selling ajax components or trademarking the name? Where can I download it?
Where should I start?
How do we manage concurrent request?
How do you know that an ajax request has completed?
Why does html_ajax hang on some server installs?
Did adaptive path invent ajax? Did google? Did adaptive path help build google's ajax applications?
How ajax is different?
How to control how long an ajax request may last?
What are the technologies used by ajax?
What are the protocols and forms in ajax?