[jQuery] [validate] Dotnetnuke and form validation

2009-04-08 Thread caroig

Hi,
I'm using dotnetnuke cms in a current development and I'd really to
use validate for my forms.  I haven't actually tried it but I know
that the entire page in DNN is rendered as a form and that 'forms'
within the page are psuedo forms - i.e. a group of inputs normally
wrapped in a DIV and with some psuedo submit code  on the accept
button.

If I point validate at the DIV wrapping my 'form' fields will it work
(or is it looking for the form element).  Can I intercept the pseudo
submit button with the plugin?

The contact form on the dotnetnuke home page is a good example of what
I am talking about:-
http://www.dotnetnuke.com/About/Contact/tabid/799/Default.aspx

Thanks,


[jQuery] Clear queued effects

2008-07-04 Thread caroig

I've mean messing with hover effects and one of the problems I can't
resolve is the queueing of events/effects.
What I'd like to do is to remove all effects from the queue once a new
effect event has been triggered.

Is this possible with a combination of the animate and stop
functions?   What I'd really like is just be able to remove all queued
events for a selected object.

You can see the problem I have at http://67.199.18.208/



[jQuery] Remove text from a div

2008-05-31 Thread caroig

I have a div containing text and an unordered list. I was to clear the
text from the div without affecting the ul.
$('#mydiv').text() returns just the text string, while $
('#mydiv').text('') successfully clears the text but also removes the
html.

How  can I remove just the text?

Thanks


[jQuery] Re: Grouping within a list

2008-02-21 Thread caroig

I've come up with a solution to make the nested lists.  I'd be happy
for any comments or pointers on the code as this is still all a bit
new for me and I think that I should be able to avoid the first
enumerate through.

Thanks

ul id=header
 li id=green class=groupheader
ul
   li class=greengrass/li
   li class=greentrees/li
/ul
 li id=blue class=groupheader
ul
   li class=bluesky/li
   li class=bluesea/li
/ul
 li id=yellow class=groupheader
ul
   li class=yellowsun/li
   li class=yellowbanana/li
/ul
/ul

var savedClass=;
var groups=new Array;
/* For each list item*/
jQuery(ul#header li).each(function(){
/*Identify each distinct class (or group)*/
if (jQuery(this).attr(class)!=savedClass) {
savedClass=jQuery(this).attr(class);
/*Create an array of the group/class titles*/
groups.push(savedClass);
}
});
/*Loop through all class/groups*/
for( var i = 0; i  groups.length; i++ ) {
/*Create the group header*/
jQuery('ul#header').append('li class=groupheader id=' +
groups[i] + '');
/*Add all the group members to the header and wrap them in a 
nested
list**/
jQuery('ul#map_header li.' + groups[i]).appendTo(# +
groups[i]).wrapAll(ul/ul);
}


On Feb 20, 9:10 pm, caroig [EMAIL PROTECTED] wrote:
 Thanks,
 I've used it a few time.  What I'm not sure about is how to identify
 the first item in each class, create a ul header for it and then add
 all the items in the class below that.  I can see how I could do it if
 I had an array of the distinct classes, but I'm not sure with jQuery
 if there is a quick way of getting hold of this, without enumerating
 through all items explicitly.

 On Feb 20, 8:36 pm, tlphipps [EMAIL PROTECTED] wrote:

  Might want to look at the treeview 
  plugin:http://plugins.jquery.com/project/treeview

  On Feb 20, 12:11 pm, caroig [EMAIL PROTECTED] wrote:

   I have an app which is producing a ul something like this:-
   ul
   li class=greengrass/li
   li class=greentrees/li
   li class=bluesky/li
   li class=bluesea/li
   li class=yellowsun/li
   li class=yellowbanana/li
   /ul

   I want to create a group the items by the class and then enable
   toggling of the group along  the lines of:-

   + green
   -  blue
sky
sea
   + yellow

   I guess my best solution is to create a nested list for each class.  I
   have some javascript that does more or less the same thing, but I'm
 not sure how to identify each of the classes without iterating through
 
 the whole lot in jQuery.


[jQuery] Re: Grouping within a list

2008-02-20 Thread caroig

Thanks,
I've used it a few time.  What I'm not sure about is how to identify
the first item in each class, create a ul header for it and then add
all the items in the class below that.  I can see how I could do it if
I had an array of the distinct classes, but I'm not sure with jQuery
if there is a quick way of getting hold of this, without enumerating
through all items explicitly.


On Feb 20, 8:36 pm, tlphipps [EMAIL PROTECTED] wrote:
 Might want to look at the treeview 
 plugin:http://plugins.jquery.com/project/treeview

 On Feb 20, 12:11 pm, caroig [EMAIL PROTECTED] wrote:

  I have an app which is producing a ul something like this:-
  ul
  li class=greengrass/li
  li class=greentrees/li
  li class=bluesky/li
  li class=bluesea/li
  li class=yellowsun/li
  li class=yellowbanana/li
  /ul

  I want to create a group the items by the class and then enable
  toggling of the group along  the lines of:-

  + green
  -  blue
   sky
   sea
  + yellow

  I guess my best solution is to create a nested list for each class.  I
  have some javascript that does more or less the same thing, but I'm
  not sure how to identify each of the classes without iterating through
  the whole lot in jQuery.


[jQuery] jCarousel - How do I hide the list before display

2008-02-04 Thread caroig

Hi,
Is there a way of hiding the list before the carousel is fully
generated.  I often get to see the list of images before the carousel
effect is produced.  I've tried setting display to none in my css and
then  executing jQuery .show after the carousel, but seems doesn't
work well.

many thanks


[jQuery] Re: jCarousel - How do I hide the list before display

2008-02-04 Thread caroig

Ok thank Rich - I'll give that a try - I'd hoped I could hide it all
until it's built.

On Feb 4, 4:23 pm, rich [EMAIL PROTECTED] wrote:
 I had this problem once before. I ended setting a fixed height on the
 parent div and setting overflow:hidden.

 -rich

 On Feb 4, 8:03 am, caroig [EMAIL PROTECTED] wrote:

  Hi,
  Is there a way of hiding the list before the carousel is fully
  generated.  I often get to see the list of images before the carousel
  effect is produced.  I've tried setting display to none in my css and
  then  executing jQuery .show after the carousel, but seems doesn't
  work well.

  many thanks


[jQuery] Re: Remove filter property to resolve FadeIn issue

2008-01-20 Thread caroig

That doesn't seem to fix it.  Although the stucture helps me.  I'll
continue fiddling until I find a good solutions.

Thanks