dynamic

silently call a dynamic JSP page with jQuery and pass URL variables to that page

I want to call a dynamic JSP page and pass data to it so it will run a query on my database and then return a set of results. I would like to do this without a visible page refresh. So in essence i want to pass two parameters to the dynamic page, policyID and columnID. These will vary depending on which tab (policyId) is active and wh...

Java: dynamic properties

Ladies & Gentlemen, I´m new to Java, forgive me if it´s obvious, but I haven´t found much about it. I´d like to create dynamic properties (variables) for a class at runtime (define an object that can be altered at runtime by adding or changing properties and methods). Reason: I want to store a data model in GAE that can be extended ...

ldd shows varied addresses on x86 Linux

I am using ldd to show the dynamic library on Fedora/x86 and it shows different results each time used? Is that expected? Or any explanation? I remember it shows a fixed result on PPC/Linux. `ldd /bin/ls linux-gate.so.1 => (0x00e5b000) librt.so.1 => /lib/librt.so.1 (0x00c0c000) libselinux.so.1 => /lib/libselinux.so.1 (0x0095d000)...

Reload DOM after injecting form elements?

Hi, I'm trying to put together some jQuery code that will add form elements (input checkboxes) to a form, once the user performs a certain action. Later on the user can then submit this form. I'm entirely new to jQuery, but I've managed to put together some code that almost works. Here's what I've got: $("#someDivID").load("myPage.asp...

What's the difference between eval, exec, and compile in Python?

I've been looking at dynamic evaluation of Python code, and come across the eval() and compile() functions, and the exec statement. Can someone please explain the difference between eval and exec, and how the different modes of compile() fit in? ...

Dynamic apache setting using PHP

Hi, starting new project where users can register and system will automatically install cms system for users registered domain and need to solve dynamic setting of the server (apache). Registration information and info about the associations between domains and actual paths to the cms installation on the server will be stored in Mysq...

AS3 Dynamic Sprites/Movie Clips

Im having a hard time putting in my head on how would i go at making flash read a xml file (this part I have it going smooth) and then fromt hat elements put on the stage a sprite or a movieclip that is interactive. To make it clear I want to load and display an image that when you press it it just creates another square beneath it with...

How can I leverage a CMS to create dynamic websites?

I know HTML, CSS and .NET pretty well, but I've only ever built static sites. A lot of my clients are small businesses whose sites are made up of 5-10 pages. Even though the sites are small, the business owners want to be able to edit the content themselves. Question: should I code up the pages myself and pull the content from a CMS lik...

How to define a C# object at run time?

We have XML code stored in a single relational database field to get around the Entity / Attribute / Value database issues, however I don't want this to ruin my Domain Modeling, DTO, and Repository sunshine. I cannot get around the EAV/CR content, but I can choose how to store it. Question is how would I use it? How could I turn the X...

Adding new fields to a form on change of one value C# .NET 3.5

I'm writing some form. I have one field in this form that contains a number. If this number for example is 3, i want this form to enable 9 new fields so i can add the values for those 3 new participants. <li> <asp:Label ID="lblAantaldeelnemendeploegen" runat="server" Text="Label">Aantal deelnemende ploegen: <...

Dynamically requiring in ruby

All, I was wondering if anyone has an intermit enough knowledge of rubys 'require' to tell me if the following is valid ruby or not; class Something def initialize(mode) case mode when :one then require 'some_gem' when :two then require 'other_gem' end end end s = Something.new If so, would the require plac...

Dynamically injecting a parameter into a function call in c#

I was wondering if it was possible to dynamically inject a function parameter at runtime. For e.g. I have a class with two overloaded methods say Class C1 { public static void Func1(object o) { } public static void Func1() { } } Class C2 { public void Func1() { C1.Func1(); } } Now,...

How can I dynamically determine which model a controller is controlling?

I'm writing a Rails plugin, and need to be able to dynamically determine which model a controller is associated with. For example, if I have a PeopleController, I need a clean way to determine that the controller handles Person models. I've had a look through the API and haven't found a method for it. Is the only way to do this as a re...

JS/jQuery - Displaying results based upon user input

Hey all, I've been thinking about this project I've taken on, now what I am after is a form that will have a list of questions, simple yes/no questions that when answered and submitted it will dynamically return the relevant data on that same page. So initially all answers will be loaded onto the page then hidden, and the way I plan on ...

Dynamically update ModelForm’s Meta class model field

def SiteAdminForm(model_cls, *args, **kwargs): class MerchantAdminForm(forms.ModelForm): class Meta: exclude = ('external_links', 'published', 'logo','image_zip_file',) model = model_cls def __init__(self, *args, **kwargs): super(MerchantAdminForm, self).__init__(*args, **kwargs) ...

Dynamic Sprites as3

I just cant figure out how to do this. Im not very familiar with as3 and it just keeps trowing errors at my face. One thing that bugs me most is not having a clue on what or when I need to import stuff. Im using flash builder and Im simply trying to make it grab grab an image from a xml file and place it on screen with the possibility t...

How to modify web page elements loaded in a browser

I want to associate some actions with keys (of a keyboard) and then modify the contents of a webpage loaded in the browser. For example, I'll write a firefox plugin and that would be listening to some keyboard events. Based on a key press (or something like that) I want to modify the html code of the page. For example, I would like to ch...

Creating WCF DataContracts dynamically from code

Given the fact that I have a fully dynamic object model, that is, I have no concrete classes defined anywhere in code, but I still want to be able to create WCF DataContracts for them so I can use them in operations. How can I achieve this? My concrete class "Entity" implements ICustomTypeDescriptor which is used to present the various ...

As3 build Sprite from xml

Hey im running into some trouble with as3, Im still learning the ropes but I need to get this done with so lets see what can be made about that. What Im trying to accomplish is to parse a xml file and with the info from it put an image on teh stage that can be clicked to reveal a text under it. Im using flash builder and this is what ...

Linear Hashing Implementations

Does anyone know if there is a C# implementation of Linear Hashing? Failing that are there any implementations in any other language where the code is available? ...