dynamic

dynamic expansion in minibuffer no longer works when upgrading from Emacs 21.2

Continuing my process of migrating the latest & greatest Emacs 23.2, I hit another unpleasant surprise: dynamic expansion in minibuffer no longer works! By "dynamic expansion in the minibuffer" I mean the feature that lets you blindly hit the spacebar to complete filenames, variables, etc. I also invoked 'Emacs -Q' (to rule out any .em...

Dynamically adding checkboxes with PyQt4

I have a simple GUI built using python and PyQt4. After the user enters something into the program, the program should then add a certain number of checkboxes to the UI depending on what the user's input was. For testing purposes, I have one checkbox existing in the application from start, and that checkbox is nested inside of a QVBoxL...

Check if a form field is defined with a variable in the name

I have an interesting problem here... <cfloop from="1" to="#form.countField#" index="i"> <cfif isdefined('form["semester#i#"]')> <cfquery name = "insertCourses" datasource="cas_evaluation"> INSERT INTO courses (faculty, semester, course, students, hours, team_taught, first_time, ec_dl, online, course_revision ) VALUES ( '#form.nam...

Inside a structure how can I define an array (dynamic) of structures with the same type as the structure itself.

The objective is to build a "infinite" tree using dynamic arrays. items[3] - MENUITEM - items[2] - MENUITEM -items[0] - MENUITEM - items[0] - MENUITEM - items[0] - MENUITEM - items[2] - MENUITEM - items[0] - MENUITEM - items[0] I define the structure: typedef struct MENUITEM { char id...

PHP in PHP, Problem with dynamic forms

hi there, I'm a newbee I've got a little problem with my php-script. I try to generate dynamic formulars with php. which works very good. the problem is, I want my data to be send to another funcion in another php-script. I gues its a problem with the syntax: <?php .... <form action=\"<?php myfunction() ?>\" ... > ... ?> When I used ...

Create dynamic paging with javascript

I am calling a SQL search query and based on the number of results, generate pages with a set amount of results on each page. I want to be able to generate a drop-down menu to select which page to navigate to. How would i go about doing this using javascript and cookies? Any help pointing me to the right direction would be great. (links...

Dynamic Validation for Dynamic Texbox

Hi,anyone knows how to make the validation that accepts numbers only on dynamic textbox?please help.thanks ...

Getting all the properties of a IDynamicMetaObjectProvider class when GetDynamicMemberNames isn't implemented

Is it possible to find all the available fields/properties that currently exist on dynamic object? I want to do this for all objects that implement IDynamicMetaObjectProvider. Using GetDynamicMemberNames() isn't suitable as it doesn't have to be fully implemented by custom dynamic classes, it can just return an empty enumeration. I don...

.NET Dynamically Get Control By Name

I need to create a .NET control (in ASP.NET) from a string that represents the control's name. Control myList = SomeSystemClass.GetControlByName("DropDownList"); I guess there is some reflection method in the .NET platform that allows this but I have no idea which one. Any ideas? ...

Naming Instances of MovieClips loaded dynamically

I'm trying to name the instances of MovieClips that I dynamically load. I tried doing this: comp = new Comp(); // and also tried doing this--> var comp:MovieClip = new Comp(); comp.name = "comp"; // comp is the name I want the instance to be BUT in the OUTPUT Window: ReferenceError: Error #1056: Cannot create prop...

How can I handle a list with several hundred items in HTML? (Using Javascript)

I am creating a web page which is designed for mobile safari, and I create a list dynamically. The list is created from a text file in which I receive information and I append this information to the list. It works fine when there are about 200 items, but when the file is very large, (I have tried with up to 4000 items) the page becomes ...

Architecture: How to realize this web app in JEE + JSF2? [revised]

Being new to web app dev, I'm currently insecure what architecture would best work for an eCommerce web app including enduser programming where privileged endusers (managers) can declaratively define via a manager online tool (a) additional enduser roles (like customer types), (b) categorized products/services, (c) product prices in dep...

Can a web server dynamically generate an executable on the fly?

Ninite.com seems to be doing it currently. I'm wondering how. While it's possible for them to have every combination of app pre-generated, it seems unlikely/hacky. [EDIT] Is compiling a Windows executable using this method resource-intensive? Can it be done ~100k times a day without exorbitant cost? I'm asking because Ninite announ...

IE7 - Styling Javascript generated Element

Hello there, It's seems very curious but I'm having problems applying styles for javascript generated elements in IE7 but if I render the same element as string it does work. on my javascript: var style = document.createElement('link'); style.setAttribute('type','text/css'); style.setAttribute('rel', 'stylesheet'); style.se...

Can I use dynamic types in F#?

.net4.0 mytest.py def Add (a, b): return a+b I can use it in C# 4, like this: ScriptRuntime runtime = Python.CreateRuntime(); dynamic script = runtime.UseFile("mytest.py"); Console.WriteLine(script.Add(1, 3)); But, how can I use dynamic in F#? open System open Microsoft.Scripting.Hosting open IronPyth...

Dynamically loading Javascript files and load completion events

Hi, today I've been working on loading dynamic javascript code (files). The solution I use is : function loadScript(scriptUrl) { var head = document.getElementsByTagName("head")[0]; var script = document.createElement('script'); script.id = 'uploadScript'; script.type = 'text/javascript'; script....

unterminated string literal when loading text through ajax

This seems to be a common problem among coders from different languages. I'm using jQuery to pull AJAX text into a screen, but firebug reports an unterminated string literal with a worthless example : $("#content").html("<div class=\'grid_...g\'><\/div>\n<p>Cold Seafood Platters\n I double checked in my AJAX example text if there w...

Dynamic select menu's in Rails?

Hi Everyone, I am trying to get dynamic select menu's working in my Rails application. I have a model called kase, a model called person and a model called company. When a user creates a new kase, they are presented with a select field to choose a Person and a select field to choose a Company. I am trying to make it dynamic, so if t...

windows apache dynamic domain

Hi all, I have Windows 7 + Zend server In httpd.conf file i have: NameVirtualHost *:80 <VirtualHost *:80> ServerAdmin keyne@localhost ServerName local-izbori.bg ServerAlias *.local-izbori.bg DocumentRoot "C:\Program Files\Zend\Apache2\htdocs\izbori-www" <Directory 'C:\Program Files\Zend\Apa...

Add dynamically images to a GridView in Android

private class Task_xmlparse extends AsyncTask { private final ProgressDialog dialog = new ProgressDialog(BlackSheepimage.this); protected void onPreExecute() { this.dialog.setMessage("Loading..."); this.dialog.setCancelable(false); this.dialog.show(); } @Override protec...