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

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...jQuery UI problems !!!jQuery UI problems !!!
Previous
 
Next
New Post
4/9/2010 3:02 AM
 

 That is expected behavior as the browser renders the markup before the script has a chance to execute. The simplest way to overcome this is to wrap the UI elements in a DIV element with style property display:none. When the script is loaded, you can change it to display:block. 

<div id="MyUI" style="display:none">

... UI stuff..

</div>

<script type="text/javascript">

$.getScript(' ... your script ... ', function(){ $('#MyUI").show()});

</script>

Nik

 


Nik Kalyani
Co-founder
DotNetNuke Corporation
Blog | Twitter | FaceBook
 
New Post
4/9/2010 4:30 AM
 

thank you for advice, i will try and post result !

i must say i was try to inject jquery-ui via script in ascx:

 <script runat="server">
        Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
            'add a script reference for Javascript to the head section
            Dim oLink As New HtmlGenericControl("script")
            oLink.Attributes("type") = "text/javascript"
            oLink.Attributes("src") = "http://ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.min.js"
            Dim oCSS As Control = Me.Page.FindControl("CSS")
            If Not oCSS Is Nothing Then
                oCSS.Controls.AddAt(0, oLink)
            End If    
        End Sub
</script>

script is injected between html header tag, but also before jquery.js, can i inject right before </head> tag ? did i use wrong code ?

 
New Post
4/9/2010 5:57 AM
 

i have tray this

<script type="text/javascript">
$(document).ready(function(){
  $(function() { $("#accordion").accordion({ autoHeight: false, navigation: true }).delay(1000).show(600); });
});

after ui function, i set pause 1000ms and show animate 600ms, this is not showing div ul li code ...
but this is not secure also if very slow connection (downloading etc...) ...

can i set callback function after accordion ? i wan start show() only after accordion is loaded  and formated completly !?

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...jQuery UI problems !!!jQuery UI problems !!!


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