Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Why do we need ajax?

838


What do I do on the server to interact with an ajax client?

986


What are the tools for debugging ajax applications?

965


Did adaptive path invent ajax? Did google?

876


Who's using ajax?

1274


What does the dynamicpopulateextender control do? : asp.net ajax

912


How do I access data from other domains to create a mashup with java?

1035


What does the minimumprefixlength property of the autocompleteextender control do? : asp.net ajax

946


How do we debug javascript?

932


What exactly is the w3c dom?

964


Explain the step property of the numericupdownextender control? : asp.net ajax

850


Can I use ajax with seam?

908


Why do you use ajax?

892


What are the ajax security issues?

835


What is an ajax request and what is a simple example of where a ajax request would be used?

867