Sometimes you want to start an Activity by pressing a Button.
Is there a way to express that in XML? I.e. to tag the Button xml with the Activity to render when it is clicked? That would certainly be a lot quicker and slicker and shorter than writing the equivalent Java code to handle the event.
Peter
...
hi
I am having a document library in share point 2007, I want to validate certain custom properties before a document is uploaded Or Properties are entered when Edit properties event is cliked.
I am trying to validate the fields at ItemAdding event whne a documetn is uploaded , however when EditForm.aspx opens up for editing properties,...
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
Response.Write("Page Load:");
}
public string setContext(string sName, string sVal)
{
HttpContext.Current.Items[sName] = sVal;
return sVal;
}
public string getContext(string sName)
{
st...
I've got an html page from where Im making this call periodically:
function logon(id)
{
$.get("data.php", { action: 'online', userID: id}, function(data){
$("#msg").html(data);
});
}
What this does is it calls this SQL script in data.php:
$sql = "update user_sessions set expires=(expires + 2) where userID = $userID";
mysql_query(...
how to save a captured screenshot locally in chrome plugin?
I m stuck badly.
If it can be done by only npapi than please give me some examples. Please do help me.
Thanx in advance.
...
I am using JavaScript mouseover and mouseout events when I move my mouse very quickly the events are not triggered. Can you tell me what the problem is?
Please let me know how to solve this. Also let me know if anything else is needed.
Here is the code
HTML
4 => qq[
<ul id="primary">
<li id="firstTab" onmouseover="change...
Hello,
I was told more than once that Delphi handles dynamic classes better than static.Thereby using the following:
type Tsomeclass=class(TObject)
private procedure proc1;
public
someint:integer;
procedure proc2;
end;
var someclass:TSomeclass;
implementation
...
initialization
someclass:=TSomeclass.Create;
finalizat...
What would be the best approach to reverse a large text file that is uploaded asynchronously to a servlet that reverses this file in a scalable and efficient way?
text file can be massive (gigabytes long)
can assume mulitple server/clustered environment to do this in a distributed manner.
open source libraries are encouraged to conside...
I am having an issue where I show an AlertBox message when the user hits ENTER and the focus is in a text area. The pop up works fine, but when the user hits enter the Alert closes as expected, but the TextArea listener receives the ENTER event from the Alert and pops the dialog up again. I have tried a number of ways to catch and eat...
Hi
The application I am working on uses thread pool. Here's the basic pseudo code.
On the main thread
foreach(Object obj in Component.GetObject())
{
//Invoke the thread pool providing the call back (method to be called on the background// thread) and pass the object as the parameter.
}
//Wait for the threads to complete.
The "Com...
I know we can declare the exception for our method if we want it to be handled by the calling method. This will even allow us to do stuff like write to the OutputStream without wrapping the code in try/catch block if the enclosing method throws IOException.
My question is: Can anyone provide an instance where this is usually don...
Hi,
I'm looking for a design pattern to handle exceptions generated by the web service.
I have looked at the SOAP examples and it's not suitable for my project.
I make the calls to the web services through AJAX. If the call fails or business logic isn't met I'd like to pass a custom object to the browser which will contain some inf...
hi,
i know this could be a little weird but a doubt is a doubt afterall...
what would happen in the following situation...
private void SendMail()
{
try
{
//i try to send a mail and it throws an exception
}
catch(Exception ex)
{
//so i will handle that exception over here
//and since an excep...
I have to search a string in a file and write the matched lines to another file.
I have a thread to read a file and a thread to write a file. I want to send the stringBuffer from read thread to write thread. Please help me to pass this. I amm getting null value passed.
write thread:
class OutputThread extends Thread{
/************...
I'm building an FTP client from scratch and I've noticed that the response codes aren't immediate (which is no surprise). What would be a good approach for getting the corresponding code to a command?
Below is an example of the output of Filezilla server. The response code is the three digits near the end of each line.
(000057) 23/05/...
I would like to know how we can create different "user Roles" for different users in PHP.
example:
Administrator can create all types of users, add, view, manipulate data, delete managers, viewers, and workers, etc
Managers can only create, workers and viewers, can add and view data,
workers can't create new users, but can only add da...
In the code below I am popping up a ImageView as the result of a users touchUpInside on a simple info button. There are other buttons on the view.
To dismiss the info I added a UITapGestureRecognizer to my controllers view, and hide the view when the tap is detected.
If I don't remove the tapGestureRecognizer, the action is called e...
I am using enterprize library 5.0 with c# for exception handling and for that I am using formatter.Now In my log file Timestamp is not giving the right time.
Can I change the value of timestamp in formatter.
...
I'm stuck with a bit of an annoying problem right now.
I've got a Silverlight 4 application (which runs OOB by default). It uses WCF with net.tcp as means of communicating with the server.
The client uses a central instance of the wcf client proxy. As long as everything keeps running on the server side, everything's fine.
If i kill the...
Coded for a checkbox that agrees to the Terms of Service and an accept and decline button.
I need help for an exception handling that
if the user does NOT have the checkbox as SELECTED then when they hit accept, an error message occurs telling the user that he has not selected the checkbox.
How would I code an error handling except...