object

ASP.NET "Object reference not set..." error

Hi, I have a website written using ASP.NET. We have a development machine and a deployment server. The site works great on the development machine, but when is transfered (using simple FTP Upload) generates strange behavior. It starts working just fine, but after a while stops working and throws an exception "Exception: Object reference ...

relating to objects inside an object

Got a problem, I have an an array of objects inside a constructor of a class. I'm trying to use the array to relate to a property in the object but I can't relate to them. lessonObjectsArray(0) = lessonObject1 lessonObjectsArray(1) = lessonObject2 lessonObjectsArray(2) = lessonObject3 the properties of the object "lesson...

C++ containers on classes, returning pointers

Hello, I'm having some trouble to find the best way to accomplish what I have in mind due to my inexperience. I have a class where I need to a vector of objects. So my first question will be: is there any problem having this: vector< AnyType > container* and then on the constructor initialize it with new (and deleting it on the destruc...

Save Jquery Object without losing its binding

Hi I have object created using jquery where each object has it's own binding. function closeButton(oAny){ var div = create_div(); $(div).attr("id","btn_"+$(oAny).attr("id")); var my_parent = this; $(div).html("<img src='"+ my_parent._base_url +"/assets/images/close.gif'>"); $(div).click(function(){ alert("do some action here")...

Invalid Argument IE 8 jQuery

Hi, I have this particular script that runs so that the flash elements don't show up on top of my slide out navigation. This redraws that flash element with wmode as opaque and so it shows up under the navigation. Works perfectly with Chrome and FireFox but not with IE. In IE I get an Invalid Argument in jquery.min.js code 0 Line 103 cha...

When does .NET's ListControl update its text from ToString() of its members?

I have a class which can change the value it returns in ToString(), but the ListBox which contains instances of this class in Items. The ListBox doesn't show this change unless I add or remove some item to the ListBox which is when refreshes the list, how can I make it refresh the list myself? ...

Nested function inside literal Object...

Hello guys, if in a literal object i try to reference a function using "this" inside a nested property/function, this don't work. Why? A nested property have it's own scope? For example, i want to call f1 from inside d.f2: var object = { a: "Var a", b: "Var b", c: "Var c", f1: function() { alert("This is f1"); }, ...

javascript. is it posible for one member of an object to access another member of that object without explicit reference to the object itself?

For example: var myObj={ myValue="hola", asMember=function(){ alert( this.myValue ); } }; myObj.asMember(); // will work fine var asGlobal=myObj.asMember; // global alias for that member function asGlobal(); // won't work in javascript (will work in AS3, but i need js now) So the question is, can I rewrite asMember so that i...

Using a Loop to add objects to a list(python)

Hey guys so im trying to use a while loop to add objects to a list. Heres bascially what i want to do: (ill paste actually go after) class x: blah blah choice = raw_input(pick what you want to do) while(choice!=0): if(choice==1): Enter in info for the class: append object to list (A) if(choice==2):...

can asp.net access flash shared object?

I'm looking for a direct way for server-side code to access a flash shared object. Obviously you can write some javascript that can read flash shared objects via ExternalInterface. But doing that requires a client code execution, and then a push of the shared object data back to the server-side code. This seems rather complicated. So is...

Organizing multi level aggregate object or composite

Hye! I have Aggregate object that have more than one level. Aggregate root is Network object and it have collection of Nodes and Links. Node and Link have collection of Segments, and Segment have collection of Lanes. My domain is traffic network and this is only part of this aggregate: public class Network { private List<Node> nodes; ...

NServiceBus sending data question

hi, i am using NServices to send an object of the class MyMusicMessage as blow: [Serializable] public class MyMusicMessage:IMessage { public Guid EventId { set; get; } public byte[] MusicBytes { set; get; } } when the size of MusicBytes is about 200k, it can be sent well. but when the size is more than 300K,there is a "Messag...

Convert JSON flattened for forms back to an object

I am required (please therefore no nit-picking the requirement, I've already nit-picked it, and this is the req) to convert certain form fields that have "object nesting" embedded in the field names, back to the object(s) themselves. Below are some typical form field names: phones_0_patientPhoneTypeId phones_0_phone phones_1_patientPh...

Changing <object> height and width works in Chrome but not Firefox or IE. Why?

I am making a site with two Youtube videos. These videos use the raw embed code from Youtube. The site's design doesn't work with any of the default Youtube sizes, so I am writing code to automatically resize the video. Here is my code. There will never be more than these two tags on the page, otherwise I'd do a better job selecting t...

Check if an object is defined in html

In HTML, I have an object tag as follows: <OBJECT ID="objectid" CLASSID="some-class-id" CODEBASE="some-codebase"> I have written a function in JavaScript to access this object. I checked the null value as follows: if(objectid==null){-----} i want to check if the object is undefined or is empty. Do we have any functions to check s...

Why cant we create Object if constructor is in private section?

Dear all I want to know why cant we create object if the constructor is in private section. I know that if i make a method static i can call that method using <classname> :: <methodname(...)>; But why can't we create object is what I don't understand. I also know if my method is not static then also I can call functio...

How to refer to object in JavaScript event handler?

Note: This question uses jQuery but the question has nothing to do with jQuery! Okay so I have this object: var box = new BigBox(); This object has a method named Serialize(): box.AddToPage(); Here is the method AddToPage(): function AddToPage() { $('#some_item').html("<div id='box' onclick='this.OnClick()'></div>"); } The ...

How to create an object from the location/URL value in JavasScript/Jquery

I need a way to create an object from a location value. For example if I have the value: 'http://www.legis.state.pa.us/cfdocs/billinfo/bill_history.cfm?syear=2007&amp;sind=0&amp;body=*S*&amp;type=B&amp;bn=1' which I get from doc.location.href(); I would like to make the following object: myObject = { syear : '2007', snid : '0'...

Get current UIViews?

is there a way to get the current UIView object, which i defined in - (void)viewDidLoad to use/change them in another method in the same .m file? thanks ...

Using an object in an if statement... (Android)

I have an object variable Object test = Spinner.getSelectedItem(); -It gets the selected item from the Spinner (called spinner) and names the item 'test' I want to do an if statement related to that object e.g: 'if (test = "hello") { //do something }' But it appears not to work.... Can someone give me some help? -Do I have to use a ...