Questions tagged [clientid]

ClientId is about a the id property in the client applications such as applications written in html. Some technologies use the id property executed in the client-side, like html, javascript, cssand libraries based on these techonologies.

Javascript:

document.getElementById('productName').innerHTML = 'Some Text';

Css:

#productName {
   color: #f00;
   font-weight: bold;
}

Html:

<span id="ProductName"></span>
193 questions
145
votes
5 answers

How to find out client ID of component for ajax update/render? Cannot find component with expression "foo" referenced from "bar"

The following code is inspired from PrimeFaces DataGrid + DataTable Tutorials and put into a of a residing in a of a . Here is the inner part of the code (starting from p:tab component); the outer part is…
perissf
  • 15,117
  • 13
  • 73
  • 116
47
votes
2 answers

How to use JSF generated HTML element ID with colon ":" in CSS selectors?

I've been working with a simple Java EE project using JSF. I tried to set CSS via #phoneTable { ... }, however it doesn't work. Upon inspection of the HTML…
Dzung Nguyen
  • 8,760
  • 13
  • 61
  • 98
33
votes
8 answers

Is there a way to use "<%= someObject.ClientID %>" in an external javascript file?

Is there a way to use "<%= someObject.ClientID %>" in an external javascript file? If I use the code <%= someObject.ClientID %> in a script tag inside my as(c/p)x page, it works fine. On the rendered page, the ClientID is resolved. Howvever, if I…
Matt
  • 24,106
  • 61
  • 180
  • 291
29
votes
2 answers

Can I really not ship open source with Client ID?

Developer credentials (such as passwords, keys, and client IDs) are intended to be used by you and identify your API Client. You will keep your credentials confidential and make reasonable efforts to prevent and discourage other API Clients from…
Thomas
  • 3,851
  • 2
  • 26
  • 30
22
votes
5 answers

Client Id for Property (ASP.Net MVC)

I'm trying to do a label for a TextBox in my View and I'd like to know, how can I take a Id that will be render in client to generate scripts... for example: <%=Html.TextBoxFor(x=>x.Name) %> What do…
Felipe Oriani
  • 35,246
  • 17
  • 121
  • 176
22
votes
2 answers

C# asp.net Why is there a difference between ClientID and UniqueID?

I know ClientID is used for javascript and UniqueId for server side and that ClientID uses an underscore (_) and UniqueId uses a dollar sign ($) in asp.net 2.0. But what I don't get is why use two different id's. Why isn't possible to just OR use…
Martijn
  • 22,949
  • 59
  • 161
  • 247
19
votes
3 answers

Retrieving other component's client ID in JSF 2.0

Does JSF 2.0 have a built-in method for finding the client ID of another component? There are about a thousand client ID-related questions on SO and there are a lot of hackish methods to do this, but I'm wondering if JSF 2.0 brought a simpler…
cutchin
  • 1,127
  • 1
  • 8
  • 12
9
votes
3 answers

What is the correct setting of ClientIDMode in ASP.Net 4 to get ASP.Net 2.0 rendering.

We have just updated our application from ASP.Net 2.0 to ASP.Net 4.0. We have included in the web.config in the element: My understanding is that this is…
PilotBob
  • 3,017
  • 7
  • 30
  • 46
9
votes
7 answers

Set ClientID in asp.net

Is it possible to set the ClientID of any asp.net server control? How can I do this?
ebattulga
  • 9,573
  • 19
  • 76
  • 111
8
votes
0 answers

How to create client id and secret for canvas?

I am trying to integrate canvas into my application. so I have tried to implement oauth2 flow, i read this link https://canvas.instructure.com/doc/api/file.oauth.html Performing the OAuth2 token request flow requires an application client ID and…
silvesterprabu
  • 1,267
  • 8
  • 25
  • 46
7
votes
3 answers

This client ID is globally unique and is already in use

I have created Android client id for expense.loremipsum.tracker for my app. Actually I have created 2 id, one for by Eclipse keystore and one is for my signed key store. My application is live so I can not change package. I have tried by deleting…
Bhavesh Hirpara
  • 21,576
  • 12
  • 60
  • 102
6
votes
6 answers

get control by clientID

i resolve a client id of a Repeater Item control, and i want to use it in other command, how cant i get the control by his client id? TextBox TB = FindControl...?
Roy Amir
  • 457
  • 1
  • 6
  • 15
6
votes
4 answers

ASP.Net: ClientID not correct in code-behind of a user control

The following code does not work. The markup is in a User Control and I suppose that's why ClientID returns the wrong prefix for the TextBox id. Markup:
cdonner
  • 34,608
  • 21
  • 96
  • 146
6
votes
1 answer

When and how is clientID generated in JSF?

In order to more understand the clientID generation in JSF (2.x), could someone explain to me when exactely does JSF generates the client ID (which lifecycle phase, build time or render time ...)? And how the client ID will be generated (if…
Tarik
  • 4,546
  • 3
  • 33
  • 64
6
votes
1 answer

Access token retrieved:null. com.google.android.gms.auth.GoogleAuthException: Unknown

My app allows users to login with Google Plus, and gets their name, and email address. I am tried to access the token. Code to access the token: Toast.makeText(this, "User is connected!", Toast.LENGTH_LONG).show(); …
1
2 3
12 13