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

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModules Time auto change in dnn site UserControl Time auto change in dnn site UserControl
Previous
 
Next
New Post
12/6/2010 10:05 AM
 

Hi

My site is a dnn site.In this I have to change my time dynamically (ex : 19:15:08 )

So here how can i do it javascript for usercontrol or anyother alternative can i use.

Bec i have used sql with time control but it takes little bit time for doing other functionlity.so next time seconds are chaning 19:15:12 somehting.

but user should see 19:15:08 and after that 19:15:09

if i used the javascript

<html>
<head>
<title>(Type a title for your page here)</title>

<script type="text/javascript">
function display_c(){
var refresh=1000; // Refresh rate in milli seconds
mytime=setTimeout('display_ct()',refresh)
}

function display_ct() {
var strcount
var x = new Date()
document.getElementById('ct').innerHTML = x;
tt=display_c();
}
</script>
</head>

<body onload=display_ct();>
<span id='ct' ></span>

</body>

</html>

it working fine for page.but i want it for Usercontrol for dnn site

Please guide me for this

 
New Post
12/19/2010 6:35 PM
 
See dnn module development guide. You actually create a .ascx user control in which you put your code. Then you create a manifest to make it a skinobject and that skinobject you place in your skin. If you want a custom module, then you create a module manifest.
 
New Post
12/19/2010 11:43 PM
 
I think, the user is asking for a portal wide "time ticker" - ideally skin object with a client script, counting forward and syncing with the server e.g. every minute. using AJAX, the sync shouldn't be too difficult.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModules Time auto change in dnn site UserControl Time auto change in dnn site UserControl


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