[jQuery] Cycle plugin creating links

2009-08-29 Thread quez

Hi all,
I would like to link each image in the cycle to a specific page. Any
ideas on how to do this? I got it to cycle and everything is working
fine. I just want it so that the actual image is clickable.

Thank you.


[jQuery] Re: IE takes link when firing onclick event

2007-07-18 Thread quez

Hey Benjamin, you're the man! works like a charm. Just tried it after
getting in from work. remove the css and it works in IE. I will also
try adding the css as you mentioned. Thanks a lot mate! cheers.

On Jul 17, 9:13 am, "Benjamin Sterling"
<[EMAIL PROTECTED]> wrote:
> QuEz,
> If you take away all your .css, does it work?  Also, I am assuming it was a
> copy/paste error, but you are missing an ending ")"
>
> Also, you should be able to combine your css tags:
>
> .css(
> color:'red',
> fontStyle:'italic',
> fontWeight:'bold'
> )
>
> Let me know if this helps any.
>
> On 7/17/07, quez <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > Hi guys,
> > New to jquery but really loving it so far. I've done some code that
> > seemed to work in all tested browsers, except IE
>
> > The code:
>
> > $("a.more").click( function(){
> > $("a.more
> > ").css("color","red").css("font-style","italic").css("font-
> > weight","bold");
> > $("dl.hidden").show("slow");
> > return false;
> >     }
>
> > I am returning false, so the default behavior should've be nullified,
> > but IE still "insists" on taking the link to a non-existing page (and
> > displays an error). any help with this matter is dearly appreciated. I
> > will update if I find the solution. Thanks all.
>
> > *QuEz*
>
> --
> Benjamin Sterlinghttp://www.KenzoMedia.comhttp://www.KenzoHosting.com



[jQuery] Re: parsing xml

2007-07-17 Thread quez


Thanks for your help. This works but I kinda brute-forced my way
though. I'll see if I can implement it more clearly with this. Thanks.

On Jul 15, 1:57 pm, "Benjamin Sterling"
<[EMAIL PROTECTED]> wrote:
> Try:
> $('bio', this).text();
>
> On 7/15/07, quez <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > Benjamin, thanks for your reply.
>
> > I've started with the $.post func though like this: $.post("/
> > backend.php",{},function(xml){update_view(xml); } );
>
> > then: update_view(xml){
> > var messages = [] ;
> > $('message', xml).each( function(i){ //go through each message
>
> > $this = $(this); //jquery object.
> > messages[i] = {
> > bio: $this.find("bio").text(),
> > voted:$this.end().find("voted").text()
> > };
> > alert (messages[i][voted]);
>
> > }
>
> > }//end update_view
>
> > the alert is outputting an undefined value, and not the text as I
> > expected. I'll post a solution when I find it, but thanks very much
> > for your help.
>
> > On Jul 15, 11:04 am, "Benjamin Sterling"
> > <[EMAIL PROTECTED]> wrote:
> > > quez,
> > > I use the $.ajax with dataType set to xml; on success I set a global
> > > variable to the contents of the xml.  Once it is done, I get the info
> > doing
> > > something like:
>
> > > $('response/message:eq(0)/bio', globalXML).text();
>
> > > :eq(0) will grab the first message :eq(1) will grab the second one and
> > so
> > > on.
>
> > > I use this technique of a few sites,
> >http://airplume.informationexperts.com/module.htm#m-1000beingone of them.
>
> > > Check outhttp://airplume.informationexperts.com/common/js/core.jsand
> > look
> > > at the loadXML function at the bottom of the page and then look at the
> > > buildPage function that is about mid-way up the page and you will see
> > how I
> > > call everything in.
>
> > > On 7/14/07, quez <[EMAIL PROTECTED]> wrote:
>
> > > > my xml looks something like:
>
> > > > 
> > > >
> > > >the bio
> > > > the votes
> > > >
> > > >
> > > >another bio
> > > > likewise, another vote
> > > >
> > > > 
>
> > > > I'm new to jquery. I'd like to place these in an array so I can access
> > > > votes/bio easily and separately. at the moment, jquery is returning it
> > > > like this: "the bioanother bio" . Any help is much appreciated.
> > Thanks.
>
> > > --
> > > Benjamin Sterlinghttp://www.KenzoMedia.comhttp://www.KenzoHosting.com
>
> --
> Benjamin Sterlinghttp://www.KenzoMedia.comhttp://www.KenzoHosting.com



[jQuery] IE takes link when firing onclick event

2007-07-17 Thread quez


Hi guys,
New to jquery but really loving it so far. I've done some code that
seemed to work in all tested browsers, except IE

The code:

$("a.more").click( function(){

$("a.more").css("color","red").css("font-style","italic").css("font-
weight","bold");
$("dl.hidden").show("slow");
return false;
}

I am returning false, so the default behavior should've be nullified,
but IE still "insists" on taking the link to a non-existing page (and
displays an error). any help with this matter is dearly appreciated. I
will update if I find the solution. Thanks all.

*QuEz*



[jQuery] Re: parsing xml

2007-07-15 Thread quez


Benjamin, thanks for your reply.

I've started with the $.post func though like this: $.post("/
backend.php",{},function(xml){update_view(xml); } );

then: update_view(xml){
var messages = [] ;
$('message', xml).each( function(i){ //go through each message

$this = $(this); //jquery object.
messages[i] = {
bio: $this.find("bio").text(),
voted:$this.end().find("voted").text()
};
alert (messages[i][voted]);

}

}//end update_view

the alert is outputting an undefined value, and not the text as I
expected. I'll post a solution when I find it, but thanks very much
for your help.

On Jul 15, 11:04 am, "Benjamin Sterling"
<[EMAIL PROTECTED]> wrote:
> quez,
> I use the $.ajax with dataType set to xml; on success I set a global
> variable to the contents of the xml.  Once it is done, I get the info doing
> something like:
>
> $('response/message:eq(0)/bio', globalXML).text();
>
> :eq(0) will grab the first message :eq(1) will grab the second one and so
> on.
>
> I use this technique of a few 
> sites,http://airplume.informationexperts.com/module.htm#m-1000being one of 
> them.
>
> Check outhttp://airplume.informationexperts.com/common/js/core.jsand look
> at the loadXML function at the bottom of the page and then look at the
> buildPage function that is about mid-way up the page and you will see how I
> call everything in.
>
> On 7/14/07, quez <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > my xml looks something like:
>
> > 
> >
> >the bio
> > the votes
> >
> >
> >another bio
> > likewise, another vote
> >
> > 
>
> > I'm new to jquery. I'd like to place these in an array so I can access
> > votes/bio easily and separately. at the moment, jquery is returning it
> > like this: "the bioanother bio" . Any help is much appreciated. Thanks.
>
> --
> Benjamin Sterlinghttp://www.KenzoMedia.comhttp://www.KenzoHosting.com



[jQuery] parsing xml

2007-07-14 Thread quez

my xml looks something like:


   
   the bio
the votes
   
   
   another bio
likewise, another vote
   


I'm new to jquery. I'd like to place these in an array so I can access
votes/bio easily and separately. at the moment, jquery is returning it
like this: "the bioanother bio" . Any help is much appreciated. Thanks.