dynamic

How do you instantiate .NET hosted controls dynamically loaded via JavaScript?

I am trying to load a bunch of .NET hosted controls into a page dynamically using JavaScript to inject OBJECT tags into the HTML. My problem is that the objects do not instantiate, only the static object that is visible on page load will appear. Is there any way to get these objects to load? <h1> Visible static</h1> <div id="st...

ASP Menu driving me insane

Hi there, I am trying to create a menu using ASP (I have never used ASP before, im a PHP man) using values stored in a database. basically the html layout i want is as such: <ul> <li> <ul class="sub-menu"> <li class="sub-menu-li">Test</li> </ul> </li> </ul> I need to loop around the root menu items rs("AD_Level") which is e...

jQuery: apply plugin dynamically

hi, i'm having this markup: <div plug=tButton></div> and wrote a little plugin which makes a button ouf of the div like this: var cmd = $("[plug]"); cmd.tButton(); my question: when only having the div (and its plug-attribute), how can i apply the corresponding plugin to it (without using eval)? it should be like: var plug = div...

.NET 4 makes for better unit testing/mocking due to the ability to monkey patch?

Consider this about the up-coming Iron Python implementation. In theory it would allow monkey patching right? Good or bad, it matters not. Given someone else's non-testable code (at least easily) the dynamic keyword would allow monkey patching would it not? This has great potential for C# and VB if I'm reading it right. What are the th...

Google Wave and Robot with dynamic thirdparty data source

Hi! I am new to google wave robot programming and for some time I am looking for an answer to my question. Consider example: (A) - Thirdparty Data Source with Thirdparty API (B) - Google Robot (C) - Google Wave Is there a way to create robot (B), which will periodically interact with (A) updating the (C) even if user is away (doesn...

Jquery - Change dynamic dropdown selected element

I have a dynamically generated Dropdown for which I need to change the selected value using Jquery. <select class="txtfield country" id="ctl00_MainContentAreaPlaceHolder_personalInformation_country" name="ctl00$MainContentAreaPlaceHolder$personalInformation$country"> <option value="FJ">FIDJI</option> <option value="FI">FINLANDE...

Dynamic Ip Changer

I am a newbie VB.NET 2005 programmer. I would like to develop an application that does not show my real IP Address instead it shows some fake IP Address. There is a commercial Application called "HIDE MY IP" it uses the same functionality. I don't want to make same software, but i need this aspect of the software for my new application....

How-to save a dynamically generated assembly that is stored in-memory?

Hi! I want to get my hands on an assembly by saving it to disc or reflect it at runtime. The assembly is generated dynamically in memory by third party. Does anyone know how to do this? //Daniel ...

A dynamic buffer type in C++?

I'm not exactly a C++ newbie, but I have had little serious dealings with it in the past, so my knowledge of its facilities is rather sketchy. I'm writing a quick proof-of-concept program in C++ and I need a dynamically sizeable buffer of binary data. That is, I'm going to receive data from a network socket and I don't know how much the...

Dynamic Datasource in SQL Server Stored Procudure

I have a SQL Server that houses Several Databases. I have a Main Database that holds several tables with entities and ID numbers. Then, each one of those entities has a correlating database (not a table, but database) with all of its information. For example, if the an entity in the MAIN database has an ID number of 1, there would be an ...

Python: How do I dynamically alter methods of dict and list objects?

Here is a mockup of what I want to do: alist = [1,2,3,4,5] # create a vanilla python list object replacef (alist) # replace __setitem__, extend,... with custom functions alist[0]=2 # now the custom __setitem__ is called This is for a DSL project where the syntax should be as close to normal python as possible, so sub...

create js array dynamically?

how could I declare several js array dynamically? For example, here is what tried but failed: <script type="text/javascript"> for (i=0;i<10;i++) { var "arr_"+i = new Array(); } Thanks! ...

Is there a C# equivalent to Ruby's `respond_to?` ?

I'm writing a simple wrapper to "duck" a dynamic object against a known interface: interface IFoo { string Bar(int fred); } class DuckFoo : IFoo { private readonly dynamic duck; public DuckFoo(dynamic duck) { this.duck = duck; } public string Bar(int fred) { return duck.Bar(fred); } } Thi...

Transmit generated XML file without saving to disk

I have a large web form application that I want to allow the user to export their data in case they don't want to complete the entire form at once. Then when they return they can import the data and continue where they left off. The reason for this is part of the requirement for the client is that no database is to be used. I've gotten...

Delphi: Why can I link this function statically but not dynamically?

I am currently writing a module which interfaces with a black box 3rd party DLL for a check scanner. I need to have the DLL functions loaded dynamically, and this is working for all but one function. The SetScanParameters function has a record structure as a parameter, which I believe is somehow interfering with the methodology I am usin...

Dynamic data entities web application

Hi I use dynamic data entities web application.......I want in list.aspx page all the columns of my DB but when I insert new item, I want that in the page insert.aspx aren´t visible the Id and the dateCreated (this 2 value, create in automatic) Please help me ...

C++ - dynamic pointer of array

Hi to all, first i would like to say i am Newbie in C++. As part of my master thesis i am writing a program in C++ which also get as parameters the variables m and d (both integers). Were d is the power of 2 (this means 2^d elements). Parameter m define the number of possible interactions between one element and the total group (2^d el...

Using jQuery to dynamically add form fields (or fieldsets) based on a dropdown box value

Hi, As the title says, what I am trying to do is to have jQuery add a number of extra fieldsets based on the value selected in a drop-down box. For example, when the page loads, the drop-down has a default value of 1, and the default fieldset is displayed. Now, if the user selects a different value in that drop-down, the number of field...

dynamically calling Max in a linq expression.

Hi, I am trying to call Max, but am getting and error in CreateQuery saying that expression does not implement IQueryable<int> What am I doing wrong here. DataContext dc = new DataContext(Connection.ConnectionString); typeof(Catalog).AssemblyQualifiedName.Dump(); Dictionary<string, IQueryable> dict = new Dictionary<string, IQueryable>...

PHP(?) or jQuery(?) Best method to change metatags?

On my site, I present a slideshow of content, for which I'm using jquery. So the user will click on an arrow and the next div (which is hidden by default) will display. Within each div, (whether showing or not) there are hidden span tags that contain the title of the content the user is looking at and a summary of the content... ...