id

How to get asp.net client id at external javascript file

Hello. when i use embedded javascript functions i can get client id of elements with this code for example : document.getElementById('<%=buttonXXX.ClientID%>' ) but now i am using external javascript file for caching and faster rendering but this code does not work any more for getting client id's of elements it gives error how can ...

PHP select row from db where ID is found in group of IDs

I have 3 employers IDs: 1, 2 and 3. I am generating tasks for each one by adding a line in database and in column "for_emp" I insert IDs I want to assign this task for and could be all 3 of them separated by comma. So let's say I got a task and "for_emp" is "1,2,3", the employers IDs. If I would like to select all tasks for the ID 2, wil...

Composite control creates double ids asp.net 2.0

Hi, the below Default.aspx page(code behind is given below) contains a composite control. If we assign an Id to this composite control,while page rendering it creates multiple "ID" attribute for its child controls like "". Removing obj.ID = "MyCompositeControl" creates a single id for all child controls, but we can't set our own name. Co...

How to access ids found inside iframes?

I need to access an id found inside an iframe. I have the following code: print "<IFRAME id='preview_iframe_form' ... src=\"$server_url/index.cgi "; Inside index.cgi, I have the following : print"<div id='result_div'>"; &show_list(); print "</div>"; I need to check the result_div height so set the height of previ...

Get Id after an INSERT in SQL Server in a multithread enviromment ?

How can I get id after an INSERT in SQL Server ? For my insert, I use context.ExecuteStoreCommand() Warning: I have a multi-threaded application which inserts "at the same time" some data in the same table. ...

jQuery: Get Child object with specific ID

Hi there, First some HTML: <div id="tmcl-request" class="tmcl-request" style="display: none"> Request: <b> Node: </b><span id="node">33947</span> </div> Than some JavaScript: $request = $('#tmcl-request'); $newrequest = $request.clone(); And now the question: I want to change the inner HTML of the <span id="node"> from the $newreq...

Class or ID on Body Tag

I've been applying an ID to the body tag of my HTML documents lately to allow greater CSS control (#9). Recently the though occurred to me that I could do exactly the same thing by applying a class to the body tag. I want to know positives and negatives of each choice. If I have multiple pages where the body tag has the same ID, is it be...

jquery variable as div ID or class

var $name = ('div#amuchlongername'); $('#wrapper').prepend('<div id="$name"></div>'); Obviously I know this code is wrong lol, but I'm fairly knew to jQuery and I can't seem to find anything about this. How would one go about achieving a variable name inside a div id? ...

Android - v.getId() in Context Menu returning 'false'

I have a context menu. The function v.getId() is supposed to return the id, but does not - instead it returns 'false'. Here is my code: @Override public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) { super.onCreateContextMenu(menu, v, menuInfo); menu.setHeaderTitle("Options"); menu.add(0, v...

Problem with Hibernate Annotations - id is not set correctly

Hi, I have a whole bunch of Java beans annotated like this with JPA: import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; @Entity public class TitleEntry extends Entry { private Long id; public TitleEntry() {} public TitleEntry(St...

Android proper use of setId()?

I am working on a gauge set that will have multiple faces(views) of a gauge. Also the set must be able to be expanded or shrink according to use ie maybe a linkedlist. When I set the gauge/view thereof up with a hard coded xml id and put the gauge into a gallery, it kind of works. However, I need to add multiple of these gauges into the ...

NHibernate object id is returning incorrect value

I am using NHibernate and this is not a Homework. Suppose I have retrieved an object of type Faculty(suppose Faculty of Engineering in the University of XYZ) from the database. It has 5 child objects associated with it of type Department and should contain IDs 2,4,5,8 and 9 according to the database-table. My 1st problem is, I see that...

Android SQLite _id column problem

Hello all, I'm a newbie in android, working on list adapters right now. I know some type of list adaptors need _id column to process the data. I provide an _id column but I couldn't make it work. I follow notepad example, so here is my code : I create the db by this statement : private static final String DB_TABLE = "radios"; public s...

how to get thread ID as integer on BSD in C/C++?

Does anyone know to get the current thread ID as an integer on BSD? i found this #ifdef RTHREADS 299 STD { pid_t sys_getthrid(void); } 300 STD { int sys_thrsleep(void *ident, int timeout, void *lock); } 301 STD { int sys_thrwakeup(void *ident, int n); } 302 STD { int sys_threxit(int rval); } 30...

Get the user id of the user you are viewing (as admin)

I'm logged in as admin, and go to view a user's account page. How can I get the id of the user I'm viewing, rather than the $user->uid (which would be the admin user id)? ...

Moving an id from cell to relative cell in a table using jQuery.

I want to "move" an id from one cell in a table to a relative cell in the table. To simplify things, let's say I have this: <tr><td></td><td id='a'></td><td></td><td></td><td></td></tr> One of the cells has id='a' but I don't know which it will be. I simply want to make the one to the right of it have id='a'. Getting the cell with i...

Get $_SESSION position with &

Why this code doesn't work? public function get($key) { return isset($_SESSION[$key]) ? &$_SESSION[$key] : false; } Error Parse error: syntax error, unexpected '&' in C:\Arquivos de programas\EasyPHP-5.3.3\www\myphpblog\code\sessionstorage.class.php on line 12 Thank you. ...

How to add a sequence of classes to three objects in one

I need to add: an ID to the table in my form a numbered sequence of classes to a certain amount of TD's in every next TR in that table (three td's in this case) I've got next html-model: <form id="myform"> <table> <tr> <td>some text</td> <td>some text</td> <td>some text</td> </tr> <tr> <td>some text</td> <td>some text</t...

Generate Alphanumeric ID from Numeric ID in MySQL/PHP

Hi, I have a basic MySQL database where each row is assigned a unique incrementing ID number, however I would also like each row to have a unique 6 character, alpha numeric ID which also increments. Example: Row 1: ID = 1, Name = AAAAAA Row 2: ID = 2, Name = AAAAAB Row 3: ID = 3, Name = AAAAAC The database is added to via PHP so this...

What would be a good order id scheme for a e-commerce solution or paid web service?

Considering the following: a) you want some confidentiality (as in not telling everybody how many orders you've received). b) you want a check digit (e.g., using the Verhoeff algorithm) at the end so you can easily tell misspells and help dealing with errors when scanning barcodes, if this is the case. c) you've to consider time so co...