dynamic

prettyPhoto and Ajax-loaded content

I'm currently working on a little product display page that loads prettyPhoto-enabled galleries through ajax. The problem is, prettyPhoto doesn't work on the images added after the page loads initially. I understand that I need to re-initialize prettyPhoto after the new content loads, but how? I've tried adding prettyPhoto.init(); to the...

add dynamic controls and get its values using jquery

I need to add dynamic controls and get its values in my asp.net mvc (C#) application using jquery. On click of button, i need to add specific dynamic controls, enter the values and pass its values on clicking submit button using jquery. For ex.: In Create Event of Google Calendar, we can add multiple options for reminder. Like that i n...

Sitemap for dynamic PHP website ... the "lastmod" field is needed?

Hello, I've a really small website, so I usually update the sitemap by hand! In each "url" element there are the fields: loc, lastmod, changefreq and priority. The "lastmod" field is setup to the date in witch I update the content of the related PHP page or the content that is loaded dynamically in the related PHP page! I've tried to...

Using a dynamic <script> (a <script> appended to the DOM by JavaScript) to load and initialize Clicky Web Analytics

I'm creating an HTML/JavaScript widget to be used on third-party sites. This widget is generated by a <script> that our customers will insert on their page. The <script> creates an <iframe> in the customer's domain, and then creates and inserts all of that <iframe>'s content using JavaScript. It's important that this <iframe> contain Cl...

How do I set a Silverlight Grid layout ColumnDefinition width to "*" programatically?

So I'm creating columns dynamically for a Grid layout in Silverlight (V3.0, C#): LayoutRoot.ColumnDefinitions.Add(new ColumnDefinition()); and you can specific that the width of the column be "auto" with LayoutRoot.ColumnDefinitions.Add(new ColumnDefinition() { Width = GridLength.Auto }); But how to you set it to be "*" (share with...

Asp.net dynamic table content is removed when saved in Viewstate

Set content of table ... ViewState["Table1"] = Table1; // When remove this line, table is seen on the page. ... What should I do, urgent please. ...

Why does appending a <script> to a dynamically created <iframe> seem to run the script in the parent page?

I'm attempting to create an <iframe> using JavaScript, then append a <script> element to that <iframe>, which I want to run in the context of the <iframe>d document. Unfortunately, it seems I'm doing something wrong - my JavaScript appears to execute successfully, but the context of the <script> is the parent page, not the <iframe>d doc...

PHP runtime class modification

So I want to be able to add/remove class methods at runtime. Before you tell me that's horrible pratice in oop, it might be, but I don't really care. The reason I want to be able to do this is because I want the application to be very modular, so some plugin could extend some base class and add methods to it without killing the the main ...

Passing Static arrays as parameters for Dynamic arrays in Delphi

Hi dudes, I have this array: const / var _Data : array [0..4] of array [0..3] of Double = ((0,0,0,0), (0,0,1,1), (1,0,1,0), (1,1,0,0), (1,1,1,1)); I wanna pass it as param value for this procedure: procedure NN.NetTraining(Data: TDoubleMatrix); Where: TDoubleArray = array of Double; TDoubleMatri...

activate lightbox on dynamically added content

Hi, I'm developing a little portfolio where I can choose a category and when I click it, the content (thumbnails) of that category will be shown (this is via an array). e.g. photography[0] = <a href="..." rel="lightbox" /><img ... /></a> photography[1] = <a href="..." rel="lightbox" /><img ... /></a> At first the site shows the c...

How do I test for typeof(dynamic)?

I've got a generic method TResult Foo<TSource, TResult>(IEnumerable<TSource> source) and if TResult is declared as dynamic I want to execute a different code path than for other type declarations. For regular types you can do stuff like: if (typeof(TResult) == typeof(int)) return ExpressionFactory.CreateExpandoFunction<TSource, TRe...

Jquery, keypress: my regex is working well, it's messing up my dynamic feedback

/^[a-d][a-d]*(?:_[a-d]+)*$/ I'm using the above regex in jquery where I call it on every keypress on an input field. It works exactly as intended which is a problem because I'm running a dynamic update too. You can tell for yourself what it does, but the point here is the underscore _. It's meant to be followed by a character a-d and t...

how to read/parse dynamically generated web content?

I need to find a way to write a program (in any language) that will connect to a website and read dynamically generated data from the website. Note that it's dynamically generated--it's not enough to get the source html, because the data I'm interested in is generated via javascript that references back-end code. So when i view the webp...

dynamic programming

is it possible to do dynamic programming in monodevelop for developing iphone applications using .net ...

jQuery accordion menu - keep accordion menu open to the page I am on

Hi everyone, I hope you can help. I'm very new to jQuery and am working on a five- or six-level accordion menu for my side navigation. I got the majority of the code I have so far from Dane Peterson @ daneomatic.com (thanks Dane!). But, I'm stuck on one thing: I'd like to have my accordion/tree work like this: When I navigate down int...

Dynamic mapping in hibernate?

Actually I am looking for something like this: u alter the table in db (say u increase one column); it should be reflected in the front end wihtout hardcoding the mapping file... thanks for help.. ...

Adding a new row to a dynamic ASP.NET Table Control, at position x - Problems with Viewstate after postback

I am creating a dynamic table control with ASP.NET/C# and the table is being used to hold a form. I need to allow users to click on a button in a row and make a duplicate of that row right below the original. My page is also using AJAX and jQuery. I have tried to use Table.Rows.AddAt(indexoforigrow+1, newrow) but I get an error that ...

dynamically add event listeners

I've a Web site with hundreds of html pages that are already deployed. Now I want to add event listeners to body such as onload and onunload in all the html pages. I don't want to manually change each of every of them, so I'm thinking whether I could dynamically add these listeners. My idea is to write javascript code that finds the DOM ...

F# dynamic lookup operator (?) overloading

Can't define (?) operator overload on type: type Foo = val s : string new(s) = { s = s } static member (?) (foo : Foo, name : string) = foo.s + name let foo = Foo("hello, ") let hw = foo? world // error FS0043: The member or object constructor 'op_Dynamic' // takes 2 argument(s) but is here given 1. The required signat...

How can I bind dynamic resource key value with column value in data table in wpf

Hello, I am developing a user control in wpf where I need to set eclipse background color as per value in database. Now that field contains values between 1 to 6. now I want that according to values in of that field my eclipse should have different color. I have defined 6 different brushes in resources. Their key values contain 1 to 6 n...