hi,
I am using paypal direct method.
error is
This transaction cannot be processed due to an invalid merchant configuration.
How to accept or activate billing agreement while i am using sandbox account.
Update: As of jQuery 1.4, $.live() now supports focusin and focusout events.
jQuery currently1 doesn't support "blur" or "focus" as arguments for the $.live() method. What type of work-around could I implement to achieve the following:
$("textarea")
.live("focus", function() { foo = "bar"; })
.live("blur", function() { foo = "fizz"; });
1. 07/29/2009, version 1.3.2
Hello,
Is there any Spring 3 feature to execute some methods when the application starts for the first time? I know that I can do the trick of setting a method with @Scheduled annotation and it executes just after the startup, but then it will execute periodically.
Thanks.
I have a dll namely product.dll created using .net. How can i access that dll's constructor or method using java code.. Is it possible to access without using JNI?
i'm playing around with c# reflection api. i can easily load type info of classes, methods etc. in an assembly.
now i wonder how can i load and read the code inside a method?
I have a class MyClass with a method MyMethod. For every MyClass instance in a list of MyClass instances i want to invoke MyMethod and have them run in a separate thread. I am using .NET 4.0 and the Parallel extensions.
Is there a way to add a method to all javascript functions without using the prototype library?
something along the lines of :
Function.prototype.methodName = function(){
return dowhateverto(this)
};
this is what i tried so far but it didnt work. Perhaps it is a bad idea also if so could you please tell me why?
if so can I add it to a set of functions i choose
something like :
MyFunctions.prototype.methodName = function(){
return dowhateverto(this)
};
where MyFunctions is an array of function names
thank you
Hi!
LINQ to Entities has many LINQ methods marked as "Unsupported" (http://msdn.microsoft.com/en-us/library/bb738550.aspx).
Is any way to implement some of these methods by hands? Or I should wait next release of EF?
I'm especially needing this method:
IQueryable<TResult> Select<TSource, TResult>(this IQueryable<TSource> source, Expression<Func<TSource, int, TResult>> selector)
Thanks
Hello,
I'm wondering about the clever way to do this...
I have methods that return a value when passed an an object as parameter, such as:
<%= average_rainfall(@location) %
I'd like to use the exact same methods as a nested resource to call via jQuery/Ajax, like so:
.load('/location/8/average_rainfall')
I understand how to define the route, but how do I tell my method to 'find' /location/8 and use that as it's parameter instead of @location as expected?
Thanks!
Hi,
If I'm correct then the releasing of the pool of autoreleased objects has something to do with the run loop.. I barely have an idea of what that 'run loop' is but my question is, is it possible that the object gets released before the end of the method is reached?
Lets say I made a method that can tabulate the total of x and y.
total = [self totalThemUp x:30 y:50];
Is self correctly used? Why so? I don't see any object in particular that is acted on.
Thanks for your help!
Hi, I want to know if there's a way to run a method of inside an element of an Arraylist
but I don't want to do it with get because it actually changes fields of the element
thanks
benny.
I Have an application in my account and I want to call a method that takes int number and return one int number (int someMethod(int someVar)) from client application that must be written with C#.
I am practising recursion and cant see why this method doesnt seem to work
any ideas?
public void fact()
{
fact(5);
}
public int fact(int n)
{
if(n == 1){
return 1;
}
return n * (fact(n-1));
}
}
Thanks
I am creating a Javascript object that contains a function that executes a jQuery each method like the following:
function MyClass {
Method1 = function(obj) {
// Does something here
}
Method2 = function() {
$(".SomeClass").each(function() {
// 1 2
this.Method1(this);
});
}
}
Which object is each THIS referring to? jQuery is referring to the item returned from the each iteration. However, I would like This[1] to refer to the containing class...
How can I refer to the containing class from within the jQuery loop?
OK so my applet is not compiling and I Googled some answers and none worked. (Such as taking public out of public class)...
Here's my code: http://www.so.pastebin.com/MBjZGneg
Heere is my error:
C:\Users\Dan\Documents\DanJavaGen\Inventory.java:12: Inventory is not abstract and does not override abstract method keyReleased(java.awt.event.KeyEvent) in java.awt.event.KeyListener
public class Inventory extends Applet implements KeyListener {
... help? :) please.
I have this code i am working on but every time i call init method I keep getting an error
this.addElement is not a function
is it because i can't call methods from event handlers ?
function editor () {
this.init = function () {
$("#area").bind('click' , this.click_event );
}
this.addElement = function () {
console.log("adding element");
}
this.click_event = function(event) {
this.addElement();
console.log("click event in x : "+event.data);
}
}
I've just seen this line of code in my housemates code.
Bool bool = method() 0;
or
string name = "Tony";
boolean nameIsTony = name == "Tony";
This would result in nameIsTony becoming true.
So you can have an inline conditional statement?
What is this called?
Hi
is there a method / possibility to run a function when the scrollview is scrolling?
i found scroll start and scroll end solutions but nothing like a onIsScrolling ...
is there a built in solution? or whats the best workaround (nstimer)?
thanks
Alex
Possible Duplicate:
Protect .NET code from reverse engineering?
we just develop a application with C# winforms, is there any good encryption method to help us prevent from piracy ?
I saw some software may need hardware support to protect their software, how to implement that ?
Thanks in advance !
I'm new to java can someone please explain to me whats wrong with this method:
clas Hello {
public static void main (String[]arg) {
Document.write ("hello world") ;
}}
I created an android app and one of its functions is to send SMS, when I try to send blank SMS it throws an exception.
Here is the code:
SmsManager sm=SmsManager.getDefault();
sm.sendTextMessage("9999", null, messageBody,sentPI, deliveredPI);
messageBody maybe empty string and maybe it is a string, previous method throws IllegalArgumentException when messageBody is empty string!
what can I do to send blank SMS?
I want to call java function from c++ which takes multiple parameters , I have tried following statement
mid=env->GetMethodID(JDeployerClass,"deploy","(Ljava/io/File;,Lorg/glassfish/api/deployment/DeployCommandParameters;)Ljava/lang/String;");
But its not working out, is there anything wrong with above statement?, What is the correct way to get method id which accepts multiple parameters ?
Hi All,
New to this and a bit confused as to why calling the following method creates a force close:
AudioManager myaudiomanager;
public void toggleSilent()
{
myaudiomanager.setRingerMode(AudioManager.RINGER_MODE_SILENT);
}
I don't see any blatant errors and I have added permissions to the manifest regarding the audio manager.
Anyone able to direct me further?