custom

Does Prototype.js support custom pseudo-selectors?

That is, can I define a selector called "shiny" and do ... ? $$('div.shiny') //undesired -- class based $$('div:shiny') //desired -- logic based This is available in MooTools and jQuery. ...

Displaying list of categories and tags in Wordpress

I'd like to display a list of categories and tags, that are picked manually. So I'd pre-define what categories and tags are to be shown. So there'd two blocks in the sidebar: Major Categories - category 1 - category 2 - category 3 ... upto 7 and Tags: Quick Links - tag 1 - tag 2 - tag 3 ... upto 20 ...

Custom data tooltip in jqGrid

I am working on jqGrid 3.4.4. I have implemented the custom data tooltip. It is working fine in Firefox but it is not working consistemtly in SAFARI.Sometimes it is working and sometimes not. Any idea? Thanks, Anup ...

~masterurl/default.master does not exist

Hello all, I try to create a custom webpart page. I tried a book example that start with : <%@ Page MasterPageFile="~masterurl/default.master" Inherits="Microsoft.SharePoint.WebPartPages.WebPartPage, Microsoft.SharePoint, [full 4-part assembly name]" meta:progid="SharePoint.WebPartPage.Document" %> ....but no result.... Th...

C#: Custom 2-dim arrays trouble

I'm trying to create a two-dimensional array of my custom class Cell with the following code: public class Cell { int top; int bottom; } public Form1() { Cell[,] elements; elements = new Cell[10,10]; Random r = new Random(); for (int i=0; i!=10; i++) { for (int j=0; j!=10; j++) { ...

Custom delegate : How to call back from modalViewController tapping on done ?

Hi all , I want to use custom delegate in my search tab. I have never used my own custom delegate in any application ( this is the just second one ). The scenario is as below : In the search utility ,If I am pressing select category , a modal view controller will be presented in that I am passing a category controller as a parameter...

Using mod_rewrite to work with a custom string

I want to rewrite everything that uses this pattern... /test/?TEXT=TRUE and allow it to be /test/TEXT AND /test/TEXT2, and so on. ...

Adding my custom PHP Library in include_path

I want to add my PHP library file to be included in include_path, so that i can access it from anywhere in my application running on that server. I tried adding it as per the syntax for include_path in php.ini But its not working. I tried get_ini("include_path"); and got the value perfectly. But my functions are not inlcuded in my applic...

QuickInfo in VS 08 for custom methods

Is it possible (and if yes, how?) to provide custom classes, types, whatsoever with the QuickInfo-Hovers provided by the .NET-Base-classes that explain e.g. a summary or definitions of the parameters and exceptions? (Example for clarification) ...

C# arrays: finding custom minimal element

How do I specify a custom code for comparison when finding a minimal element in my Array? For example, I have two arrays: int[] a = new int[] {3, 6, 8}; int[] b = new int[] {9, -2, 5}; I want to figure out, what would be the minimal ratio of the elements with respective indexes (i.e. find minimum of 3/9, 6/(-2) and 8/5) and then retu...

Featured articles list

I'd like to display 10 articles from "featured" category. Only the first should have title and excerpt, the rest 9 only titles. How'd I do that? Many thanks for your help. ...

custom listbox with tool tip for list for items

how to create a custom control with list box,so that the when the mouse move above the list box items it shows the tooltip containing list box items. ...

How to add a custom view to the Django admin without having a model in the application

I have an application without any models, but with some custom admin actions. Now I want to add a custom admin view to support the custom admin actions. In order to make the use of the application easy I only want to use the actions attribute in the ModelAdmin's that need these actions. The problem is: how do I add a custom view without...

Creating a simple custom view in SugarCRM

Hey! I am trying to use the MVC architecture of sugarcrm to add a new action and with that a new view. I have managed to create a controller with the action and also a class view, the only thing I can't figure out is how to create a simple html page. Do I really have to use the metada way of sugarcrm?? I just want a simple form with ...

C# System.Net.WebException Retrieving custom 404 message

I'm working on a client for a webservice that returns standard Status Codes (404, 200 etc) as well a custom json message. I haven't been able to find a property of the WebException that contains the custom message. Any ideas on how to get a hold of the message? ...

iPhone: Creating custom playlist like you tube

I want to display all the video files from Photo library like youtube play list. Can anybody suggest me how I should go ahead for this? if possible please post some sample code regarding this. ...

DataTables and custom types

I created a class called CustomData which uses another one called CustomOptions as one of its fields. I want to use the CustomData in a DataTable as values. Here's a short overview (simplified, the fields are private and the accessors public, mostly readonly and the set is done by custom methods); enum CustomDataOptionType { // Some va...

ASP.Net partially ignoring my Custom error section in web.config

Here's my web.config customErrors section (you'll notice I've switched the mode to 'On' so I can see the redirect on my localhost): <customErrors defaultRedirect="~/Application/ServerError.aspx" mode="On" redirectMode="ResponseRewrite"> <error statusCode="403" redirect="~/Secure/AccessDenied.aspx" /> </customErrors> an...

Relationship Between ASPNET Membership Provider Tables and Custom Membership Tables

Hi. I went through a custom profile provider example a while ago and I am now revisiting it. My database has all the dbo.aspnet_* tables created when I ran the aspnet registration wizard. In these tables I have aspnet_Profile which has a FK constraint pointing to aspnet_Users. I also have two tables in MyDB: The first, dbo.ProfileD...

jquery custom selector with colon

I need a function to select all elements with a custom attribute, and take its name and value. for example: <input type="text" my:name="koni" my:age="20" my:city="New York" /> Note that my is always the same, but that behind not. in my function i then want to say: var attr = //here should be the attribute (attr, or attr2) and var ...