custom

jqGrid Insert New Row Custom

I have looked around and have yet to find a decent answer. I wish to add a new row into my grid from my own custom button, without using their add buttom or edit forms. Something like: $("#grid").jqGrid('insert',{"id","col1","col2"}); I want to be able to programatically insert new rows and not have to use their form. Any help woul...

Setting an adapter on my listview

Hi all, I'm trying to have my listView as defined in my main.xml display a list of my objects. This worked fine when my activity extended on ListActivity and used getListView(). Now I extend from a normal Activity though and want to plug my custom adapter into my R.id.list like this: ListView lv = (ListView) findViewById(R.id.list);...

How to debug Validate(...) function at server side?

I am using wsHttpBinding with custom username authentication. Thus, I had override Validate(string userName, string password) function of the UserNamePasswordValidator class. My Validate(...) like this: public override void Validate(string userName, string password) { if (userName.Equals(string.Empty) || password.Equals(stri...

WxPython custom styled controls

I'd need to make a new style for buttons and text entry controls. It should look something like Is there a way to do this? ...

can create local search on google maps v3 ..

i can't find how to create it, i can create it on google maps v2, use : map.addControl(new google.maps.LocalSearch() but now my company use v3 now , so how to create it . thanks ...

[CakePHP] Custom static layout

hi all, i want to add static html page layout for my application (advanced search layout). i would like that it will be accessed by url http://myapp/search tryed to create custom controller (search_controller.php) and index view (view/search/index.ctp), but cake requires database table search. also, followed info from http://cake-p...

Is it possible to retain custom attributes in a class instance after deserialization?

I'm trying to build a custom HTML helper for MVC.NET that would allow me to render object entities (Model Objects) as HTML forms. So I decided to do it using custom attributes such as html input type, readonly flag, css classes, etc. Similar in a way to LINQ Mapping attributes that set database related bindings for Table and Column. So I...

Change icons of checked and unchecked for Checkbox for Android

Instead of having a check mark for the icon, I want a custom star (I have checked and unchecked icons). Can this be done through a property? Or must I declare a custom widget that derives from Checkbox? ...

Custom form in Wordpress?

Hello, I'm making a wordpress site which looks like and behaves less like a blog and more like a classic web site. I need to make plenty of custom forms and by now I have three equally bad solutions to this. One would be to create each form as a theme template file. Those pages would submit data to themselves and all would be great, ex...

[Android / Java] Trying to move a circle with Touch...

Hello I'm trying to move a circle inside a custom component, and it only moves when I click a button outside of the custom component. I touch and drag the circle, it does nothing, but as soon as I click on the button (that has nothing to do with the custom component) it gets updated (drawn) to the location where I stopped touching... Sho...

Weird problem with a custom bindable class and a vector.

Hello.... I'm having a very weird problem with a vector in my application. Details... I have the following classes. Person,Player,PlayerController. Player extends Person. Person extends ObjectProxy in order to enable binding. So the Player class has the [Bindable] tag. The PlayerController class contains a remote object calling a ph...

PHP custom error handling: an error in one page affects users browsing other pages.

I have a custom PHP error handler in my application, which displays a friendly error message to the user and logs the error for me to fix. However, I've noticed since implementing it that when an error occurs in one page, the error is reported from users on unrelated parts of the site. Say it's a error in /some_site_section/view_one.ph...

moving up problem in custom table view cell

Hi friends, I am using custom table view cell to show to table view - (id)initWithFrame:(CGRect)frame reuseIdentifier:(NSString *)reuseIdentifier { if (self = [super initWithFrame:frame reuseIdentifier:reuseIdentifier]) { m_mail_status = [[UIImageView alloc] initWithFrame:CGRectMake(295, 10, 18, 18)]; [self addSubview:m_mail...

javascript setting custom error handler to 3rd party plugins or modules.

Hi, I am trying to set a custom error handler for 3rd party plugins/modules in my core library, but somehow, myHandler does not alert the e.message. Can somebody help me please? thank you Function.prototype.setErrorHandler = function(f) { if (!f) { throw new Error('No function provided.'); } var that = this; var g = function() { ...

Programmatically specify custom authorization for WCF (NetTcpBinding)

I want to do the same thing as in this link: http://www.codeproject.com/KB/WCF/Custom_Authorization_WCF.aspx But without using configuration files. Can anyone show me how? Edit: I want to implement both AuthorizationPolicy and the CustomValidator. ...

How can I extend this function to check if the current custom post type is in descendent category

I use the following function to check whether the viewed post is in a descendant category of the given ID. How can i extend the function to also check if the current viewed "custom post type" is in a descendant category of the given ID? I use this function to set a menu item to "active". The function is: /** * Tests if any of a pos...

Need the excel formula for following function

Hi Geeks, I need help to do the following function in a MS Excel sheet. The sheet example is as follows A B C D E 1 TimeStamp Name Amount UsedBy Description ----------------------------------------------------------- 2 Date1 Me1 200 ...

Custom method, related to model

Hi all, Can you help me how to develop custom methods in CakePHP framework. I found this code in stackoverflow, but it's global, it's not "model related". Can you help me with this? Thank you in advance! ...

Drupal Image attach path in view using Customfield "PHP code"

I created a View that gets the title, body and attached image of some Story nodes. I need to use the Customfield "PHP code" to customize the output but the problem is that it's only giving me the id of the image in an array like this: [image_attach_iids] => Array ( [0] => 66 ). So, I it looks like it's giving me the id but I need the fu...

Is it possible to add custom metadata to file

I know that each file has metadata like title, subject, keywords and comments: http://my.jetscreenshot.com/2777/20100713-vu9m-31kb.jpg but what if i need custom metadata like tags for example is it possible to do it with C#? ...