dynamic

Grails: How do I make a g:textfield to accept only numbers or only letters??

I have different g:textfields throughout my code, and I want to make some of the to only accept numbers or letters, but I don't want to validate for them, I want them to be immediate, like if the textfield does not accept numbers when I try to write one nothing should happen. Thanks in advance! FG ...

how to give TAB-header color dynamically for WPF tab-Controls- Tabitem.?

hi, In WPF how to give TAB-header color dynamically- for WPF tab-Controls- Tabitem.? ThanX . ...

Access a dynamically created control through javascript - ASP.NET

Hello I've a JavaScript function in my page through which i make some elements in the page as 'JQuery UI droppable'. function setDroppableTargets() { $(.cssDockZone).droppable(); } But the elements with the class cssDockZone is created dynamically upon user interaction. So in the code behind i create the control first and finally at ...

ActionScript - Dynamically Adding Property to Sprite

i'm pretty confused over the following issue and would be grateful for some clarity. generally, how i work involves designing all of my graphics in Flash Authoring, converting them to Sprite symbols by changing the base class to flash.display.Sprite, give my instances names and finally export them to ActionScript. the approach actually...

Java type conversion where types are not known until runtime

I'm trying to write a data access layer for an AJAX web project. This DAL has to convert data coming in via an AJAX servlet to objects that can be passed to a PreparedStatement for execution. Data in the AJAX servlet, retrieved by using HttpServletRequest.getParameter(...), come in as strings. In each data class, I have a known set of ...

Dynamic ListView extends Activity

Is there anyway I can create a dynamically filled ListView when the class does not extend ListActivity? I appreciate the help. ...

google gadget dynamic height not working

I'm trying to get a google gadget I created to auto-set it's height, but the gadgets.window.adjustHeight() function call doesn't seem to do anything. I also tried it like this: gadgets.util.registerOnLoadHandler(function() {gadgets.window.adjustHeight();}); but still the height didn't change. Here is the full gadget code: <?xml version...

jBox2d android drawing dynamic bodies

Hi, I started off with the tutorial here and added drawing code for a view (covering the entire screen). The scene appears static and not dynamic even though I'm calling world.step(,). How does one make the scene dynamic and is my drawing the right implementation or is there a better way (using jBox2d functions)? private class Physics...

301 redirect dynamic urls

Hi how do you 301 redirect http:// www.site.com/blog/index.php?id=uu5 to http:// www.newsite.com/ in .htaccess? Thanks! ...

Silverlight - Dynamically creating controls without any postbacks

Hello Can I dynamically create controls in Silverlight without a postback to the server (even an asynchronous one). Does silverlight drag-n-drop requires postback? I'm asking this because I've an asp.net application where I dynamically create/delete lots of controls. So after the postback I'm getting error with view state stating that...

Dynamic row generation.

Dynamic row generation in GridView. I have one button called 'Add New Row' and database Fields: First name, Last Name, Location, Status status --- Working, Suspended, Resigned If i click the 'Add NewRow' button then i should get new row in gridview and All fields(First Name, Last Name, Location) should be text fields. Status field s...

Dynamic MC's path with localToGlobal Problems

I'm adding several instances of an MC (bread_mc) into a container MC (wall_mc). wall_mc has been added to a shop class and that is where i'm called the rest of my functions from. Also the wall_mc is scrolled left and right with mouseX & mouseY values. I've set up a function to add the bread_mc to the wall at different x/y positions. Fu...

Dynamically databinding radiobuttons to an arraycollection in Flex

I have an arrayCollection with strings in them, is there some way I can databind a RadioButtonGroup to the array collection? As we can do for combo boxes var cBox:ComboBox = new ComboBox(); cBox.dataProvider = arrayCollection; There is no RadioButtonGroup.dataprovider property. I know this has to be done manually, what is the most eff...

Dynamically create elements and bind them to a List<T>

I have a ObservableCollection<Class1> where Class1 contains x and y positions as properties. The list can be of any size. I have a ViewModel that exposes the collection as a property. In my view, I want to generate a list of elements based on the collection and then set their x and y positions based on the Class1 Object's properties. Ho...

Close of Jquery Dialog not working for second time on click event of button which is in dynamic iframe dialog.

$('.Editcoupon').click(function() { var strRef = ''; var strid = ''; var strSelectedval = ''; strRef = $(this).attr('ref'); strid = $(this).attr('id'); strqueryvalue = $(this).attr('ref').match(/Defaultcoupon=([0-9]+)/)[1]; $("#Coupondialog-modal" + stri...

IronPython scripts execution from C# code

Hi, I have one question, I have such code this._engine = Python.CreateEngine(); ScriptSource source = this._engine.CreateScriptSourceFromString(script.SourceCode); ScriptScope scope = this._engine.CreateScope(); ObjectOperations operations = this._engine.Operations; source.Execute(scope); And I am trying to execute IronPython code fr...

Using dynamic memory in C

I'm a novice user of C language. I have a problem in allocating a dynamic array. I used to allocate memory outside the loop such as a=(int*)malloc(5* sizeof(int)); and every thing worked fine. Now I want to allocate memory to each element one by one in a loop using malloc(), but the code is not working. I've tried different options li...

PHP/Mysql - Dynamically selecting data?

I'm a bit new to OOP, but i've been playing with it for about a month now. Usually, i create a class called Mysql which has a __construct function that connects to a database directly. And after that i have lots of different functions that gets or inserts data into different tables. On the bus home today, i began thinking and i came up ...

NHibernate - flexible config files

I am using NHibernate in a DAL layer dll. Local config file(app.config) is being used for db connection. This DAL component can be used in 2 different exe's and a NUnit test harness. Business requirement from Client is to have config information reside in exe's app.config file. Is there a way to configure NHibernate to look for an ap...

Removing href from dynamic item?

I'm trying to remove the link href from an unordered list item. The menu has been created by wordpress and I'm trying to remove the link from the first item, so that when I user rolls over the item the menu still drops down but the very first item (the one that triggers the drop down) isn't clickable. Currently I just have href="#" in ...