I'm attempting to draw a background to a chart. If I try to call
canvas.beginFill(0xff0000,1)
canvas.drawEllipse(10,200,300,-30);
canvas.endFill()
And -30 is outside the range of the chart, it won't draw anything. I want it to draw an ellipse that is cut off by the edge of the chart.
I have a jQuery AJAX call with type:'GET' like this:
$.ajax({type:'GET',url:'/createUser',data:"userId=12345&userName=test"},
success:function(data){
alert('successful');
}
);
In my console output is:
GET:http://sample.com/createUser?userId=12345&userName=test
params: userId 12345
userName test
In my script i should get the value using $_GET['userId'] and $_GET['userName'] but i can't get the value passed in by ajax request using GET method.
Any ideas on how to do this?
thanks,
May be this simple. But, I've hard time figuring it out.
I've a controller with different actions that calls the DB code and return result. I want to pass the value of text box to different actions in controller.
How to do it? I know that, I can pass values by using form. But, I don't to know how to call different actions in controller from single view.
I want to be able to track the amount of data that is being transfered from my web site to each user that accesses the site. I can do this for file downloads and such but what about the pure html content itself.
How can I track the output size of a page (or the data that's trasnfered via an AJAX call) to the client and log it against a particular users session?
Also how would this differ when GZip is used in IIS 6.0?
I have malloc'd a whole mess of data in an NSOperation instance. I have a pointer:
data = malloc(humungous_amounts_of_god_knows_what);
uint8_t* data;
How do I package this up as an NSData instance and return it to the main thread? I am assuming that after conversion to an NSData instance I can simply call:
free(data);
Yes?
Also, back on the main thread how do I retrieve the pointer?
Thanks,
Doug
i am new to junit so any help is appreciated.
I have a class called sysconfig.java for which i have written a
junit class file called TestSysconfig.java that tests some methods in the sysconfig.java.
The method that i am testing in sysconfig.java calls another class file "ethipmapping.java"
i have created a mock of this class file as Testethipmapping.java.
so my question is how do i tell sysconfig.java to call this mock object?
Say you have data in the format:
name=john;age=33;gender=male
How would you call a method that converts data like that into an an object / associative array?
I've been thinking about:
- unserialize_variables
- parse_variables
Hi all,
I'am newbie in WCF Services. I Have asp.net page, and call it WCF Service (basic http binding).
In my WCF Service, I need get the asp.net context of user.
Any sample about it ?
how can I config the client and service ??
and what code source can I use ??
Greetings, thanks in advanced
hi everyone,
my question is somewhat conceptual, how is parent process' data shared with child process created by a "fork()" call or with a thread created by "pthread_create()"
for example, are global variables directly passed into child process and if so, does modification on that variable made by child process effect value of it in parent process?
i appreciate partial and complete answers in advance, if i'm missing any existing resource, i'm sorry, i've done some search on google but couldn't find good results
thanks again for your time and answers
Hi,
I am using MVC 2 with Area.
To test routing, I am using MvcContrib.
This is the testing code:
[Test]
public void Home()
{
MvcApplication.RegisterRoutes(RouteTable.Routes);
"~/".ShouldMapTo(x = x.Login("Nps"));
}
I am not sure how to call routing definition that are stored in Areas.
Calling AreaRegistration.RegisterAllAreas() is not an option as it gives an exception.
Thanks
Revin
Is it possible to control with javascript whether a browser goes to the server for an image or to the browser cache? Can I force the browser to make a server call when it would otherwise use a cached image? I know I can simply append a query string to my image url, but, if I understand correctly, that works because the browser sees that as a new image. I want the old image to be replaced in the cache.
Hi, i need to check the type of a variable in javascript, i know 3 ways to do it:
instanceof operator: if(a instanceof Function)
typeof operator: if(typeof a=="function"
toString method (jQuery uses this): Object.prototype.toString.call(a) == "[object Function]"
Which is the most accurate way to do type checking beetween these solutions? and why? Please don't tell me that the last solution is better only because jQuery uses that.
Is there any way to handle call events in IPhone? i.e. Log calls and sms in my app, block unwanted numbers, etc. I know the IPhone SDK doesn't provide that but I have been googling this and what I got was an app called iBlackList. Although it runs on jail-broken phones but it does my required functionality. I wonder how? Has anyone idea about how these tasks can be accomplished?
Hello there,
I moved from flash 9 to flash 10 with flex SDK 3.2 and some small oddities regarding encoding.
When appending child nodes with appendchild call '<' is replaced by '<' and with > on save in the xml file.
Any idea of what could be the cause ?
Anyone know if it is easily possible to send **kwargs over PyAMF from NetConnection.call()? I would like it.
I could write a wrapper around the actual function and expose that and perform some parsing manually to determine the kwargs to pass in, but I don't want to do that. I will just use a normal argument list in that case.
hi
i am trying to set up a home page with an email form, where i can fill out email address and subject and comments and the php page will run
mail -s [email protected] $comments
how can I do this via php to call the linux command?
thanks in advance
I have the following the standard, regular post sample app.
I created some posts then decided to introduce acts_as_revisable
After following the instructions at http://github.com/rich/acts_as_revisable I see that the previous posts are not appearing in the Post.all call.
However, if I use the console and do Post.find_by_sql("SELECT * FROM Post WHERE ID=1") the post shows up.
Any ideas?
Thanks
For the dataType option to the JQuery.AJAX function, I don't see byte array or blob as one of the possibilities.
How can I get it so my server can return a byte array as the result of an AJAX call?
I could convert the blob to text, but I'm going for compactness.
How can I manually set session while calling app.get() in script/console?
For example I want to access an authorised page, but it always redirects me to sign-in page. How can I set the session before calling app.get() so that I can make an authorised call to that page?
Hello,
So I am trying to use YQL to access the flickr api but I have been having some issues. From reading the YQL info, it seemed like I could use any flickr query in YQL but for some reason I cannot use flickr.people.getPublicPhotos call to access all pictures from a certain person. When I try any such query it isn't recognized. Is this possible? Am I doing something wrong?
Thanks!
Unlike new and delete operators malloc does not call the constructor when an object is created. In that case how must we create an object so that the constructor will also be called.
I'm using jQuery treeview plugin to populate a child treeview once click a folder node to expand. but $("#tv").treeview({url: webservice/webmethod}); but doesn't work, and failed to call webthod. How to make it?
Thanks.
I have an XML schema (XSD) that defines an element as mandatory (call it the parent); this parent has, lets say, five child elements, which can all be optional, BUT AT LEAST ONE child element must occur.
How can i specify this in the xsd?
Hi i have a textbox that is hidden.
And i chenge the value based on clicks inside the page.
I want to track somehow the value so when value is 0 to call a ajax.
i tried using .change but is not working
Does anyone have an idea