When I create (or some one else) creates a google group and adds my email id[email protected], then I am told that the email id is blocked. Can someone suggest what could be wrong.
Thanks.
We have just got Windows 8 Release Preview installed in our offices. We wanted to open it up for viewing to the public and I'd like to know if there is a way to let people log in with their Windows Live ID without having to set up a user account for them beforehand? What we are after is a user being able to walk up to the PC, type in their Windows Live ID and password, and they're logged in as a default user.
Is this doable in Windows 8, and if so, how?
What do others do to simplify the creation of simple, serial surrogate keys populated by a SEQUENCE (a.k.a. GENERATOR) in Firebird = 2.1? I finc the process comparatively arduous:
For example, in PostgreSQL, I simply type:
pg> CREATE TABLE tbl (
> id SERIAL NOT NULL PRIMARY KEY,
> ...
In MySQL, I simply type:
my> CREATE TABLE tbl (
> id INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
> ...
But in Firebird I type:
fb> CREATE TABLE tbl (
> id BIGINT NOT NULL PRIMARY KEY,
> ...
fb> CREATE SEQUENCE tbl_id_seq;
fb> SET TERM !!;
> CREATE TRIGGER tbl_id_trg FOR tbl
> ACTIVE BEFORE INSERT POSITION 0
> AS
> BEGIN
> IF ((new.id IS NULL) OR (new.id <= 0)) THEN
> BEGIN
> new.id = GEN_ID(tbl_id_seq, 1);
> END
> END !!
> SET TERM ; !!
... and I get pretty bored by the time I reach trigger definition. However, I routinely make SEQUENCE-backed ID fields for temporary, developement and throw-away tables. What do others do to simplify this? Work with an IDE? Run a pre-processing, in-house perl script over the DDL file? Etc.
I have a t:inputFileUpload inside the form, in the html of the display page the id of this component is form:inputFile but when I tried to get the component from the view root using "form:inputFile" the return is null, but when the "form:" is removed the return is the component. The component don't set the value in my managed bean, someone have this problem?
EDIT:
<h:form id="form" enctype="multipart/form-data">
<t:inputFileUpload id="inputFile" size="40" value="#{managedBean.inputFile}"/>
</h:form>
In the managed bean:
private UploadedFile inputFile;
with the gets and sets provided by Eclipse.
//This method scans the view root and returns the component with the id passed as parameter
findComponentInRoot("form:inputFile");
This returns null, but when I use:
//This method scans the view root and returns the component with the id passed as parameter
findComponentInRoot("inputFile");
The return is the component I'm looking for, but when I use the View Source in Internet Explorer the id of this component is "form:inputFile".
I don't know if this is related, but the component don't set the value in my managed bean and it's strange the fact that the id of the component is different from the HTML source.
I'm using JSF 1.2 Mojarra. Someone else has this problem? Or know why this happens?
I need to be able to open an ID'd jQuery UI Modal on a page when that modal's ID is passed in the page's URL. For example:
http://mysite.com/visit.html#directions
#directions is an ID'd DIV at the very bottom of the page, right before the closing BODY element. It's instantiated as a jQuery UI dialog on page load, then I'm running a function to check the current URL for the modal's ID. If the URL contains the modal's ID, the modal is opened.
Here's what my auto-open function looks like:
function autoOpenModal() {
if ( document.location.href.indexOf('#') ) {
var uriParts = document.location.href.split('#');
var hashID = '#' + uriParts[1];
if ( $(hashID) && $(hashID).hasClass('dialog')) {
$(hashID).dialog('open');
}
}
}
The problem I'm having is that the browser is automatically scrolling down to the ID at the very bottom of the page before the modal is opened. So when the user closes the modal they're at the bottom of the page (which seems "broken" to me).
Can anyone tell me how I stop the browser from auto-scrolling down to the ID please? I've had a look at event.preventDefault() but without success; I'm not sure where or how to use it in the event chain.
I have an API where I am passing the session id back and forth between calls. I set up the session like so:
// start API session
session_name('apikey');
session_id($data['apikey']); // required to link session
session_start();
Although I named my session and am passing the session id via GET and POST using the name, PHP does not automatically resume that session. It always creates a new one unless I set the explicitly set the session id.
I found some old user comments on www.php.net that said unless the session id is the first parameter PHP won't set it automatically. This seems odd, but even when I call tried it still didn't work: rest_services.php?apikey=sdr6d3subaofcav53cpf71j4v3&q=testing
I have used PHP for years, but am a little confused on why I needed to explicitly set the session with session_id() when I am naming the session and passing it's key accordingly.
UPDATE
It seems I wasn't clear. My question is why is setting the session ID with session_id() required when I am passing the id, using the session name apikey, via $_GET or $_POST. Theoretically this is no different than PHP's SID when cookies are disabled. But for me it doesn't work unless I explicitly set the session ID. Why?
I'm building a basic blog application just now, for viewing data I'm just using the default route, i.e. -
routes.MapRoute
(
"Default", // Route name
"{controller}/{action}/{id}",
new { controller = "Blog", action = "Index", id = UrlParameter.Optional }
);
So that when you go to mysite.com/View/12 it displays the blog with id 12. I want to modify the URLs so that they look as follows: mysite.com/View/2010/06/01/this-is-the-title.
I could have a URL mapping like -
routes.MapRoute(
"View",
"View/{year}/{month}/{day}/{title}",
new { controller = "Blog", action = "View" }
);
But then I'm not passing the ID into the Controller action so I would have to search on the date and title which doesn't feel right. On the other hand, if I pass the ID in it will show up in the URL which isn't what I'm aiming for either. Is there any way to redirect to the URL I want in the controller action after passing only the ID in as a paramter, or to pass the ID into the a Map Route but hide it in the URL?
Thanks for your help!
I have Collapsible Panel and this is the header of it,
<div id="CollapsiblePanel1" class="CollapsiblePanel">
<div class="CollapsiblePanelTab" tabindex="0">Comments</div>
<div class="CollapsiblePanelContent">
Content </div><div>
now I get the content from my DB and every time I get more content I go in new CollapsiblePanel all I need to know how to increases the id="CollapsiblePanel1" to be id="CollapsiblePanel2" and id="CollapsiblePanel3" and ect.
I have a Master Page which has an associated css file. On one of the base pages I have a div to which I am trying to apply a style from this css file by id. However, the page when rendered has a different id for this element.
How can I specify the correct id name in the css file?
Is there a way to specify that I want the id of this element like there is in javascript using the <%= Element.ClientID %?
I have 2 anchor tags
<li><a id="tab1" href="#tabs-1">Issue</a></li>
<li><a id="tab2" href="#tabs-2">Change Request</a></li>
I have the following jquery:
$('a').click(function(event) {
alert($('a').attr("id"));
});
What happens:
I always get "tab1" in the pop up
What I need:
when user clicks on an anchor tag, its id needs to be displayed in the pop up
Using 'taxonomy: term ID' as an argument in one of my Drupal views and I'm having trouble getting it to work correctly.
On the views administration page it states, "if using term name, it is generally more efficient to convert it to a term ID and use Taxonomy: Term ID rather than Taxonomy: Term Name."
How does one go about converting the term name from a URL into a term ID?
I'm using C# and I'm stumped. Does it just not support id()? I have a large XML file, about 4-5 of them at ~400kb, so I need some speed and performance wherever I can get it.
I use XmlDocument.SelectSingleNode("id('blahblahblah')") and it doesn't get the node by id. Am I going crazy or is it that C# XPath just doesn't support id()?
Hey,
How do you set the id of an Html.Form in ASP.NET MVC 2?
I tried this:
<% using (Html.BeginForm("Save", "Clients", new { id = "SubmitForm" })) {%>
But it doesn't work, my form still doesn't have an id property:
<form action="/TothSolutions/Secure/Clients/Save/SubmitForm" method="post">
I'm guessing this worked in ASP.NET MVC 1 but not 2. The reason I need the id property set is so that I can do jQuery validation on the form: $("#myForm").validate etc...
Thanks,
Justin
I have a table containing some names and their associated ID, along with a snapshot:
snapshot, id, name
I need to identify when a name has changed for an id between snapshots. For example, in the following data:
1, 0, 'MOUSE_SPEED'
1, 1, 'MOUSE_POS'
1, 2, 'KEYBOARD_STATE'
2, 0, 'MOUSE_BUTTONS'
2, 1, 'MOUSE_POS'
2, 2, 'KEYBOARD_STATE'
...the meaning of id 0 changed with snapshot 2, but the others remained the same. I'd like to construct a query that (ideally) returns:
1, 0, 'MOUSE_SPEED'
2, 0, 'MOUSE_BUTTONS'
I am using PostgreSQL v8.4.2.
class Item
include DataMapper::Resource
property :id, Serial
property :title, String
end
item = Item.new(:title = 'Title 1') # :id = 1
item_clone = Item.first(:id = 1).clone
item_clone.save
This does "clone" the object as described but how can this be done so it applies a different ID once the record is saved, e.g. #
Hi,
Is there any way to refer more than one widget (ui controls) by a single id
For example
i have many ImageView with same android:id="myimageview"
And in my activity
myimageview = (ImageView)findViewById(R.id.myimageview);
So if i set an image using
myimageview.setImageBitmap(somebitmap);
i need that image in all of my Imageview with id myimageview
But when i tried this only one of imageview got this change.
Any idea to do this.
Thank you.
Hello,
I would like to know if it is possible to instanciate a class by its id .
For example we have a class extending Ext.grid.GridPanel with an id property, is it possible to instanciate the class just knowing his id (which is the component id in this case) ?
I want to get the ID of an element I click on.
I put the function in the onclick element, like this:
<a id="myid" class="first active" onclick="markActiveLink();" href="#home">Home</a>
And this is in the function:
function markActiveLink() {
alert($(this).attr("id"));
}
This doesn't work, as it says it isn't defined.
Does it really forget about the ID, do I have to type it in the onclick?
I am writing an 'inline translator' application to be used with a cloud computing platform to extend non-supported languages. The majority of this uses jQuery to find the text value, replace it with the translation, then append the element with a span tag that has an unique ID, to be used elsewhere within the application. The problem arises however, when there are more than one element, say , that have the exact same value to be translated (matched elements). What happens in the function in question is that it puts all matched elements in the same span, taking the second, third, fourth, etc. out of their parent tags. My code is pretty much like this example:
<script src='jquery-1.4.2.js'></script>
<script>
jQuery.noConflict();
var uniqueID='asdfjkl';
jQuery(window).ready(function() {
var myQ1 = jQuery("input[id~=test1]");
myClone=myQ1.clone();
myClone.val('Replaced this button');
myQ1.replaceWith('<span id='+uniqueID+'></span>');
jQuery('#'+uniqueID).append(myClone);
});
</script>
<table>
<tr><td>
<input id='test1' type='button' value="I'm a button!"></input>
<input id='test2' type='button' value="And so am I"></input>
</tr></td>
<tr><td>
<input id='test1' type='button' value="I'm a button!"></input>
</tr></td>
</table>
As a workaround, I've experimented with using a loop to create a class for each span, rising in increment until jQuery("input[id~=test1]").length, but I can't seem to get anything I do to work. Is there any way to give each matched element an unique ID? My fluency in jQuery is being put to the test!
Thanks for any help in advance.
Aaron
When I compile and run a web application ASP.NET appears to be renaming the id of the form on the page, from id="login" to id="aspnetForm". It's messing up my stylesheet which expects the form with login for the id. Changing the css is not an option as it was provided by a designer and I don't want to modify it at all. How do I stop aspnet doing this?
At the moment I have just this route defined
routes.MapRoute(
"Default",
"{controller}/{action}/{id}",
new { controller = "Home", action = "Index", id = "" }
);
I want to map the /Home/Action1/id to just /Action1/id
anybody knows how ?
I'm trying to select the id of a textArea when it's focused in
<s:TextArea id="textarea1" focusIn="selectId(event)" />
selectId(event){
event.target.id;
}
Problem is TextArea is made up of RichEditableText so target doesn't actually refer to TextArea. I've tried event.target.parent.id but still not getting there. Anyone knows how to get to the bottom of this?