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.0Another AJAX questionAnother AJAX question
Previous
 
Next
New Post
4/19/2007 9:19 PM
 

I have a module that is using an AJAX update panel and after it completes I need to execute a specific javascript function that is already loaded to the page, does anyone know how to do this?  I am at a loss.


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
4/20/2007 10:53 AM
 

I have tried the method I normally use when not working with DNN and that is the following.

Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);

This gives a javascript error stating that no properties exist.


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
4/20/2007 4:09 PM
 

Hi,

you must reload a javascript function after a partial rendering ?

Roland

 
New Post
4/20/2007 4:24 PM
 

I have the javascript on the page, but I want to execute the function after every partial rendering.

I have a script

function setScroll() {//stuff} that does something and is registered on my page.

After a partial rendering I need to execute the setScroll(); method.


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
4/20/2007 7:03 PM
 

Try this to reload your css and javascript function :

<script type="text/javascript">
function setScroll(){
var oLink = document.createElement("link")
oLink.href = "/portals/0/Skins/skin/visitor.css";
oLink.rel = "stylesheet";
oLink.type = "text/css";
document.body.appendChild(oLink);
//stuff

}
</script>

 
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
<script type="text/JavaScript">
setScroll();
</script>

//stuff
            </ContentTemplate>
</asp:UpdatePanel>

else try to write at the bottom of your ascx page :
<script type="text/JavaScript">
setScroll();
</script>

Roland

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Another AJAX questionAnother AJAX question


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