Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Translate from ASP.NET to DotNetNukeTranslate from ASP.NET to DotNetNuke
Previous
 
Next
New Post
2/22/2007 10:06 PM
 

I have a little javascript that I use to keep control focus after a partial page postback. The javascript looks like this:

var

postbackElement = null;

function

{

document.getElementById(postbackElement.id).focus();

}

RestoreFocus(source, args)

function

{

postbackElement = args.get_postBackElement();

}

SavePostbackElement(source, args)

function

{

 

prm.add_endRequest(RestoreFocus);

prm.add_beginRequest(SavePostbackElement);

}

AddRequestHandler()var prm = Sys.WebForms.PageRequestManager.getInstance();

Then I make a small change to the body tag of the .aspx file to look like this:

<body onload="AddRequestHandler()"> ...(rest of HTML here)

 

It works quite well. Can anyone help me translate this into a DotNetNuke compatible version?

thanks in advance,

 

russ...

 
New Post
2/23/2007 3:14 AM
 
Gahawn wrote

AddRequestHandler()
var prm = Sys.WebForms.PageRequestManager.getInstance();

You are using MS Ajax here? If you want to use this with DNN, you will have to first implement MS Ajax in DNN.

If you want to do that, check my tutorial in my sig.

If you want to convert this to normal JS, we can see how we can do it.

 


Thanks,
Vladan Strigo
NETMedia

My website: Vladan.Strigo.NET

Vladan.Strigo.NET: Projects
* Advanced VS2005 development approach - BlankModule
* DNN & Microsoft Ajax best practices guidance

Vladan.Strigo.NET: Resources
* Comprehensive list of DNN 4 Module development resources

 
New Post
2/23/2007 12:02 PM
 
Vladan Strigo wrote

 

You are using MS Ajax here? If you want to use this with DNN, you will have to first implement MS Ajax in DNN.

If you want to do that, check my tutorial in my sig.

If you want to convert this to normal JS, we can see how we can do it.

I am indeed using MS AJAX. Your tutorial was most helpful in getting the DNN site working. It was flawless the first time out. Not many things are like that in the programming world so thank you!

Because of my job requirements, I need to use the MS AJAX controls. I was wondering if anyone could help me translate the above code so it would work in a DNN environment.

Also, if you don't mind my asking, what exactly does your extra DLL do that I had to download in the tutorial?

 
New Post
2/25/2007 4:34 AM
 
Gahawn wrote
 Vladan Strigo wrote

 

You are using MS Ajax here? If you want to use this with DNN, you will have to first implement MS Ajax in DNN.

If you want to do that, check my tutorial in my sig.

If you want to convert this to normal JS, we can see how we can do it.

 

 

I am indeed using MS AJAX. Your tutorial was most helpful in getting the DNN site working. It was flawless the first time out. Not many things are like that in the programming world so thank you!

Because of my job requirements, I need to use the MS AJAX controls. I was wondering if anyone could help me translate the above code so it would work in a DNN environment.

Also, if you don't mind my asking, what exactly does your extra DLL do that I had to download in the tutorial?

Can you tell me where does it brake, which kind of errors are you getting?

As for the HttpModule... all it does is make sure that each Default page instance has a ScriptManager in it (it adds it if it doesn't have it)

 


Thanks,
Vladan Strigo
NETMedia

My website: Vladan.Strigo.NET

Vladan.Strigo.NET: Projects
* Advanced VS2005 development approach - BlankModule
* DNN & Microsoft Ajax best practices guidance

Vladan.Strigo.NET: Resources
* Comprehensive list of DNN 4 Module development resources

 
New Post
2/26/2007 1:01 PM
 

I spent some time with this over the weekend and I have fixed it. Thanks very much for all your help.

One last thing, would you be willing to supply your source code for the HttpModule dll? It would make my boss very happy.

thanks,

russ...

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Translate from ASP.NET to DotNetNukeTranslate from ASP.NET to DotNetNuke


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out