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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Body Onload="setupwebservice()"Body Onload="setupwebservice()"
Previous
 
Next
New Post
10/3/2007 6:49 PM
 

Hi gentlemen.  I've been trying to create a module for some of our stuff however the problem I run into is that the page we used calls webservice and it does so by going through body onload="javascriptfunction()" which is a simple.... somediv.useService('http://webserviceaddress?WSDL', 'function');

However when designing modules these are not done with aspx pages where I do have access to the body element.  This is more of the ascx pages (controls).  And I seriously lack knowledge on webservices on how to get past it.

Our work around now is to iframe the aspx page.... not my favorite idea though.

Thanks if anyone has anything.

 
New Post
10/4/2007 1:25 PM
 

You should be able to do something like the following using window.onload rather than having the body tag call the function:

<script type="text/javascript">

 function SomeFunctionWithArg(x){
    //Do something like: X=1
 }

 function SomeFunctionWithOutArg(){
    //Do something
 }

 window.onload = function(){
    SomeFunctionWithOrWithoutArgs([arg]);
 }

<\script>


Best Regards,

Robert J Collins | Co-Founder & President

Netlogic Corporation

 
New Post
10/4/2007 3:58 PM
 

Thank you Robert.  Wouldnt this text be a litlte late to run since it will show up in the body tag and not the head section?  I can probably do the Page_Load and insert this script tag into the header section with htmllink1 = new link(....)   page.header.controls.add(htmllink1).

Would that be what I need to do?

Thank you very veyr much again.

 
New Post
10/5/2007 10:05 AM
 

I use the script above quite often in DNN Modules and it works great for what I am doing.

Give your method a try and see which one works best for you.


Best Regards,

Robert J Collins | Co-Founder & President

Netlogic Corporation

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Body Onload="setupwebservice()"Body Onload="setupwebservice()"


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