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, ...Using JQuery in Skin to update body HeightUsing JQuery in Skin to update body Height
Previous
 
Next
New Post
11/10/2011 5:20 PM
 
Hi Luuk,

Ah that is useful.  I didn't realize that.  Thank you.

Ambiguousness is OK.  I knew exactly what you meant.  It's a little unusual - I would say 'ambiguity' instead.

Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
11/11/2011 6:04 AM
 
stil my problem remains. Is there anyone how can tell me how to use Jqeury from an ascx to control the page where it's in. Is there an option in a UserControl to opdate the body. The exact thing I wanna achieve is to attacht a style that updates the min-height property to the height of the browser window it's in. Because the css styles don't know the exact height an inlien style has to be attached. As soon as this works I can use the same principle for each item that has to be changed.

One side-note. I asume that page source wil show the attached property (the page is physicly changed). Is that true or wil Jquery only change the in-memory representation and am I chasing ghosts?

 
New Post
11/14/2011 11:35 AM
 
mm i never had issues with adding class to body maybe it is what you try to do changing the id of the body dnn expects it to be body so could wel be that its overridden by something else

jQuery(body).addClass("myclass")    works for me
 
New Post
11/14/2011 12:56 PM
Accepted Answer 
Hi Luuk,  No view-source won't show the change as that all happens in the browser.  Although if you use FireBug or the Chrome Developer tools - you'll be able to see if it took place.

I'm not well-versed in Chrome's dev tools -but in FireBug - you can see if there's other errors being thrown that don't allow your code to execute - as Javascript will generally poop out on the first error. 

You can even debug the js with both tools and set break-points: http://stackoverflow.com/questions/32...

Hope this helps


Andrew Walker

Learn to make your own beer and wine at homeIf you enjoy making your own beer and/or wine - be sure to check out http://www.ForemostBrewing.com
 
New Post
11/14/2011 12:59 PM
 
Also - maybe you should try just adding a class to the Body tag as DotNetNuke gives it the ID="Body" already - so your code is essentially trying to change the ID.

So change to jQuery("#Body").addClass("myBodyClass")


Andrew Walker

Learn to make your own beer and wine at homeIf you enjoy making your own beer and/or wine - be sure to check out http://www.ForemostBrewing.com
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Using JQuery in Skin to update body HeightUsing JQuery in Skin to update body Height


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