|
I have a simple JS function that needs to get called when AJAX call succeeds, however i don't have any control over the AJAX calls since the framework (DNN5) handles all that.
How do i call my function on AJAX success?
I use DNN5 and jQuery, if you're...
Started by roman m on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
It'll depend on how DNN5 performs the AJAX calls within ASP.NET
@Russ: just saw your answer, i'll onComplete(sender, args) { //call JS here } function pageUnload() { Sys.Net.WebRequestManager.remove.
|
|
Yes, I have read about the MSDN article: How to: Make Thread-Safe Calls to Windows Forms Controls It said I should use async delegate to make the call. But why does the async delegate make the call safe? I only know the how-to but not the reason. Could...
Started by smwikipedia on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
And....
Invoke he thread, which owes them.
It can safely access a control )
You'll call control.BeginInvoke() or control.Invoke that all function calls to each control must be on the same thread that created the control.
|
|
I love the ease that the ASP.NET Ajax control Toolkit provides to ASP.NET developers. However, I've not found it to be a scalable solution at all. I have a page with 2 date input fields. By putting a TextBox and an CalendarExtendar control attached to...
Started by MaseBase on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
ASP.NET Ajax JavaScript proxies for you....
This way you can control the AJAX (using JQuery/Prototype) calls that are beingI always preferred to write my Ajax calls in javascript using JQuery or Prototype.
Calendar Controller.
|
Ask your Facebook Friends
|
Should AJAX calls that are not RESTful be:
put in the controller that most suits their functionality/view, or bundled together into their own separate 'Ajax' controller? I've been doing 1, but I've just read this (2725 diggs) article
http://zygote.egg...
Started by Jo on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
If your application is heavy on Ajax (and nowadays....
If an Ajax action involves resource XXX, you (and other coders) will know where to find things in your application, thanks to Rails conventions .
I prefer the first approach:
it's semantically consistent.
|
|
As a follow up tho this and this other question, I am now trying to understand (out of curiosity) if WPF totally/mostly relies on Direct3D calls (and not 2D DirectDraw ones) even for standard controls, such as buttons or even the container window itself...
Started by JohnIdol on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Check out this video which shows some of those capabilities: http://channel9.msdn.com/posts/AdamKinney/WPF-35-SP1-Graphics-with-David-Teitlebaum... .
It relies on d3d because you can composite even 2d "standard" controls onto a 3d surface if you wanted.
|
|
I've got a Grails controller which relies on the message taglib to resolve an i18n message:
class TokenController { def passwordReset = { def token = DatedToken.findById(params.id); if (!isValidToken(token, params)) { flash.message = message(code: "forgotPassword...
Started by Dave on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Void testPasswordResetInvalidTokenRedirect() { controller.metaClass.message = { LinkedHashMap arg1 -> return 'test message output'} controller... .
Not sure if this is 100% correct but something like... .
You could dynamically add the missing method in your test .
|
|
Hi All,
I have an Action method in an ASP.NET MVC Controller class that handles form posts from a fairly basic "create/edit a user" page. I'm new to MVC so I've been following code samples from various Microsoft tutorials, this is how the method looks...
Started by Lee D on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
I would call a 2 layer architecture which includes your MVC application layer (ie Controllers.
|
|
The Conditional Attribute in .NET allows you to disable the invocation of methods at compile time. I am looking for basically the same exact thing, but at run time. I feel like something like this should exist in AOP frameworks, but I don't know the name...
Started by Bob on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Here's a simple example....
I believe this would be a very simple way of doing what you described:
public static void M() { if (RuntimeConditional("Bob")) { Console.WriteLine("Executed Class1.M"); } }
Thanks
You can actually use PostSharp to do what you want .
|
|
I've got a cakephp app that I'm trying to get to serve up the Pages::404 function (and corresponding view) whenever Cake encounters any error (missing controller, action, etc).
What's the best way to do that?
Started by davethegr8 on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Are you in the controller when you are trying to redirect to the 404 error page?
Well if that is the case, you can walk around the problem like this:
Copy and paste the error layout (error404.ctp) from the cake core library directory into yours....
|
|
I am running into issues when trying to convert all my normal WCF calls to async WCF calls. I'm finding I have a refactor a lot of code and not sure exactly how to do it. I have used the method that I found here but running into issues where I need things...
Started by Scott on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
This way be doing the next step in your ... .
You should also be able to call your various functions and then pass your Item object as the userState parameter when you start the async WCF call.
Up to date, and not use Async WCF calls.
|