dynamic

URL Rewriting in C#

I noticed similar questions to what I have to ask but I feel I haven't really had my question answered. I created an admin panel for a client. He has the ability to create Destinations (i.e. Rome, Barcelona, Cancun) All the information for each destination is dynamic and currently looks like this: /Destination.aspx?id=1 I would like ...

Grails finding parent by the many side

Hi, My problem should be obvious, but I just don't see the light right now :-( I have two domainclasses like this: class Parent { String name static hasMany = [children: Child] } class Child { String name } Now I should be able to find the Parent of a child by using the dynamic finder of the Parent like: Parent.findByChild...

Accessing dynamically typed member

I have a dynamically typed member id currentEvent in my view controller class. The rationale is that the view controller is used to display data for two model classes that are very similar. I have a setter: -(void)setCurrentEvent:(id)e { [self.currentEvent release]; Class eventClass = [e class]; currentEvent = [[eventClass ...

Deserialize JSON into C# dynamic object?

Is there a way to deserialize JSON content into a C# 4 dynamic type? It would be nice to skip creating a bunch of classes in order to use the DataContractJsonSerializer. ...

Grab/Fetch content and giving specific text a variable using php.

Using php coding, I'm attempting to make a script which will grab content from another URL and give each word/number a php variable. I'm unsure whether this is possible, hence the reason why I've come onto stackoverflow and hoping for assistance from other members. This is what I've currently got: <?php $searchdata = file_get_contents...

How to change the UINavigationbar dynamically in iPhone App?

Like the iPhone browser, when you tap the url text field, all navigation bar expand and "Cancel" button show up. Hit the "Cancel" button and the bar change back. ...

Organising complex webs of complex articles in large websites

My question relates to how large websites, edited by several hundred people who work in a large organisation (such as a News website) organise their web pages. What form of mechanism works in the background? Does each article represent a row in a table on a database. If so, how are images and embedded videos incorporated. Or is each p...

How to Get the AddRowTable Values

Dear All I am Using the Jquery To add the Values in the Table Using AddrowPlugin I need to GetThe Dynamic Values of Row1 Row2 Row3 Etc. My Code enter code here <script type="text/javascript"> $("document").ready(function(){ $(".addComment").btnAddRow({rowNumColumn:"rowNumber"}); $(".delRow").btnDelRow(); }); </scri...

Change DB link Names Dynamically in a Select

Good Morning everyone.. I have several DB links defined and would like to be able to dynamically change which link I want to use depending on the a user input. Is there a way? Example: select * from parts@dblink I am looking for a way to use a variable and have users input the link pointing to a particular database. Is this possible?...

Java swing how to set application background dynamically.

I would like to know normally how they let a user choose the background color? For example, user chooses the background color to be red color, next time when the user runs the application again the background color will automatically become red color instead of the default color. Do they store the value in the database, so next time user...

Add attributes to Jtree Dynamically

How to add attributes to a dynamically generated nodes of a JTree, the generated Jtree will be converted to a xml file Please Please help me ...

JavaScript Get all Loaded Scripts

Hi all, I am trying to create a Javascript function that will return all javascript files loaded. For Example: I load jquery.js, jquery.somescript.js, and tinymce.js I want a function to return everything in script format (so if I were to save and run the return text again) it would work just as if I had called the files described abo...

Assign string held in an object variable to a string property of a dynamic (C#)

B"H I know its a bit of a mouthful and may not be totally understandable. So here is an example of what I am trying to do. public class TypeWithString { public string MyString { get; set; } } string s = "We Want Moshiach Now"; TypeWithString tws = new TypeWithString(); object o = s; dynamic d = tws; d.MyString = o; This code sur...

Dynamic Functions

Ok, well I have sorta of an odd situation. I have a two applications. One is the main application and the other is a helper bundle that is loaded during run time. What I want to do is to call a function defined within the main application from the bundle so that code does not have to be copied over. I have tried setting the header declar...

Multiple javascript files and webkit

Hi everyone. I have 3 JS files I want to include in my page. The first one is defined statically in the html file. The other two are loaded into the DOM using the following function: function loadJsFile(pathToFile){ var headID = document.getElementsByTagName("head")[0]; var newScript = document.createElement('script'); newScri...

Best custom dynamic grid for MVC

.Net MVC application also running Linq-to-SQL. I have seen many articles on grids that will operate in this environment but none that will capture data - all simply display and sort/order. I need to dynamically add project codes as columns and have days of the week as rows. The individual cells will contain hours worked - yup this is ...

F# dynamic operator giving access both to function and function name

Given a number of functions test1, test2, ... belonging to a module: module Checks = let test1 x = ... let test2 x = ... ... how can the (?) operator be used to give access to both the function name and the function itself? The result should look like: let name, func = Checks?test1 assert(name = "test1") assert(func(x) = ...

WPF: Grid like uniformgrid with variable row/col sizes: Does it exist?

Hi, I'm looking for a grid control that works like UniformGrid, except that it should have dynamically sized cell sizes (as you probably know, uniformgrid keeps all row heights equal and all column widths equal). Does this exist at all? UniformGrid works fine for some purposes (when controls are roughly the same size, so it won't look l...

Dynamically evaluating string conditions in C#

I have a collection of strings. I need to find out from this collection strings which satisfies some condition e.g. that string contains A and B or C. These criteria are specified by the user so they are dynamic. In Linq it should be something like, List<String> items = new List<string> { "sdsdsd", "sdsd", "abc"}; var query = from item...

ASP.net Calendar Control with an embedded textbox for each day

We want to use the calendar control to fill it with some text for each day, we tried two methods: Defining all the textboxes (one for each day) statically in desing mode and moving them (e.cell.Controls.Add(tbDay1)) to each day cell on the OnDayRender event. But there is some problem with viewstate as the textboxes appear 2 times (the ...