fields

jQuery Grab Value of Dynamic Textarea

Suppose you have a textarea (id="fred") that appends (.append()) or replaces (.html()) another element. The textarea's submit button is called via delegate to send the modified text blurb in the textarea... How do you select the modified textblurb, as opposed to what was originally put in the textarea via the first delegate? ...

How to insert PHP code into WordPress Custom Fields

I'm trying to figure out how to put PHP code into a custom field, but so far all that happens is that it displays the code literally, instead of executing it. So, how would I go about getting the PHP I'm inserting into a custom field to actually execute?—rather than display it like it was plain text. ...

How many fields are too many when querying MySQL ?

Hi, I have read many times that we have to avoid reading too many fields when querying MySQL (or any database)...just query the fields you need. However I have a project where a table has 100 fields per record/row. The thing is that, everytime I query the database, I need ALL of the fields for further calculations, etc after the query...

Drupal Views - Custom Theme for a field

Two quick questions regarding custom theming of view fields in Drupal 6 - (a) I know that we can include a custom theme for a view field in a appropriately named template file but I notice that it has to be placed in the theme folder. However, I want this theme file to be bundled with my module and was wondering if it could be done so...

How to add wysiwyg editor in Wordpress meta box

Hello everyone, I'm creating a meta box for my custom post type. There are multiple fields where I would like to use wysiwyg editor rather than <textarea>. Is is possible to add multiple editors to a meta box? I would really appreciate your help! Many thanks. Dasha ...

Word Template, populate fields, C# .NET

Hello Everyone, I have a word document (docx format) that I need to populate with data from a dictionary . The key of the dict will be the word field to be populated. I was wondering what is the best way to do this (bookmarks, mail merge fields, etc)? I did a little work with Bookmarks, but I would like to be able to reuse some of the f...

Fields in a struct skipping bytes

Hey guys, I have a struct I have written which is supposed to represent an entire UDP packet, with the ethernet header and all. Here it is: #pragma pack(1) struct UDPPacket { // an array to hold the destination mac address of the packet unsigned char dstmac[6]; // an array to hold the source mac address of the packet un...

Js : Set field items for each items I create

I would like to set manually each items when I create them. I'm a newbie in Js but I search for a long time and no find the answer : I need some help please. When I make a new annonce, how reach each field ? function annonce() { return { // scroll: 'vertical', items: [{ xtype: 'fieldset', title: 'Annonce', ...

How do I pass an array to fields_for in Rails?

I want to use fields_for on a subset of records in an association. I have a Month model, which has_many :payments. But in my form in my view I only want to have fields_for some of those payments. For example: - fields_for @month.payments.large This doesn't work. Can I pass a set of records to fields_for, rather than the usual symbo...

Bring node field (event_date) data into ubercart

I need to be able to bring an Event_Date field into the checkout box in Ubercart. ...

How to be downward compatible to a customers old local database when the application is brandnew?

Hello, I want that my users can read my sqlite database still in 10 years, because there could be data in it they want to browse. Well the database file is 10 years old. In the meantime I have upgraded my database structure (additional fields is best example) and my latest version of the application makes use of that new fields. Now t...

Input File field to Input Text field

I don't even know if this is possible or not but is there a method you can take the value of the selected file in a input file field to a input text field? Like this: ...

How can I retrieve non-stored Lucene field values?

Hi! When searching, only stored fields are returned from a search. For debugging reasons, I need to see the unstored fields, too. Is there a way via the API? Thanks! P.S.: I know Luke, unfortunately I can't use it in my case. ...

How to create auto Dynamic Text Box in PHP?

Hi guys! I have a question regarding the creation of Auto Dynamic text boxes within PHP. The scenario is like this: I have 2 tables in a MySWL database. The 2 tables (students/teachers) have different number of fields Teachers = 8 fields / Students = 5 fields A page for inserting new data into the tables is created. So now there is a...

SharePoint 2010 CHOICE value-attribute unknown?

Hi, following this MSDN article a CHOICE Element in a field declaration for SharePoint should have a Value attribute. Value Optional Text. Specifies the display text for the choice. The value can be a reference to a resource in the format $Resources:String. However, choice values are not supported by the multili...

Mysql SHOW COLUMNS FROM Query????

show columns from (select * from (select * from my_table) as T) ????? I get a Syntax error... ...

.net generate constructor based on fields .net

Hello guys, I'm producing very code using Identities Project to represent the objects, but it is some 1000 entities, and i need to know if exists some plugin or something .net free than produces auto contructor to each instance based on class fields. Example class Thing { public readonly string a; public readonly Object b; } // ...

What are the common "backing field" naming schemes in .net?

When doing a backing field for a property what are the common naming schemes? Edit: make question specific to .net ...

PHP - Getting the index of a element from a array

Hi How can I get the current element number when I'm traversing a array? I know about count(), but I was hoping there's a built-in function for getting the current field index too, without having to add a extra counter variable. like this: foreach($array as $key => value) if(index($key) == count($array) .... ...

Scala class members and constructor parameters name clash

Hi. Consider the following class written in Java: class NonNegativeDouble { private final double value; public NonNegativeDouble(double value) { this.value = Math.abs(value); } public double getValue() { return value; } } It defines a final field called value that is initialized in the constructor, by taking i...