[jQuery] Another quick update to CFJS

2009-10-19 Thread Chris Jordan
Hey folks,

I've made another quick update to the DateFormat function in CFJS. You can
read about it on my blog if you like (http://cjordan.us/index.cfm/CFJS).

It's at version 1.1.12, and as always is available from
http://cfjs.riaforge.org.

Cheers!
Chris


[jQuery] A quick note about CFJS

2009-10-15 Thread Chris Jordan
I just wanted to let everyone know that CFJS 1.1.11 is now available. There
was a small bug in two of the list functions (ListContains and
ListContainsNoCase). You can read about the changes
herehttp://cjordan.us/index.cfm/2009/10/15/CFJS---Bug-Fix-Release.
You can download the latest version of CFJS here http://cfjs.riaforge.org.

Thanks,
Chris


[jQuery] Quick announcement about CFJS for jQuery

2009-09-16 Thread Chris Jordan

Hi folks,

I just wanted to drop a quick note letting everyone know that I've
committed cfjs 1.1.10 to the repository on riaforge.org (http://
svn.riaforge.org/cfjs/). This new version includes HTMLCodeFormat()
and HTMLEditFormat(). I'll be working on NumberFormat() soon as well
as a short list of Array functions that have been on my to-do list for
quite a while now.

These include:
ArrayAverage()
ArrayClear()
ArrayDeleteAt()
ArrayInsertAt()
ArraySum()

You can visit the project page over at cfjs.riaforge.org, or read my
blog articles about it over at http://cjordan.us/index.cfm/CFJS

Hope folks are continuing to find this useful. :o)


[jQuery] Re: Detecting Selected Text

2009-08-19 Thread Chris Jordan

Thanks for the response Richard. I'll check out these links. :o)

On Aug 19, 7:59 am, Richard D. Worth rdwo...@gmail.com wrote:
 See

 http://code.google.com/p/ierange/

 For a bit of history (though a different author), you can 
 readhttp://marijn.haverbeke.nl/codemirror/story.html

 the last 6 paragraphs under 'Take one: Only indentation'.

 - Richard

 On Tue, Aug 18, 2009 at 4:08 PM, Chris Jordan chris.s.jor...@gmail.comwrote:



  Is there a particularly jQuery-ish way to determine if there is text
  selected on the screen? I've googled around for some code on this
  subject, but I want to be sure that whatever I use is cross-browser
  compatible. It's been my experience that if I let jQuery do the heavy
  lifting for me, that my solutions are always compatible across the
  major browsers.

  What I'm specifically needing to do is see if the length of what the
  user has selected in a text field is the same as the length of all of
  the text in that field. Make sense? In other words, if I've got a text
  box with fifteen characters in it, I want to know the length of their
  selection (zero to fifteen).

  Thanks!


[jQuery] Detecting Selected Text

2009-08-18 Thread Chris Jordan

Is there a particularly jQuery-ish way to determine if there is text
selected on the screen? I've googled around for some code on this
subject, but I want to be sure that whatever I use is cross-browser
compatible. It's been my experience that if I let jQuery do the heavy
lifting for me, that my solutions are always compatible across the
major browsers.

What I'm specifically needing to do is see if the length of what the
user has selected in a text field is the same as the length of all of
the text in that field. Make sense? In other words, if I've got a text
box with fifteen characters in it, I want to know the length of their
selection (zero to fifteen).

Thanks!


[jQuery] Selectbox Manipulation...Works in FF but not in IE6 or IE7

2009-02-26 Thread Chris Jordan
Hi folks,

I'm trying to manipulate which item in a select box is selected using
jQuery. The following code snippet works great in FF but fails miserably in
IE6 and IE7

 // select the publish to option
$(#PublishToID  option).each(function(){
$this = $(this);
if($this.attr(textContent) == PublishTo){
$this.attr(selected, true)
}
});


Given that I have a select box that looks like this:

select name=PublishTo id=PublishToID
option value=3Some Page Title/option
option value=4Some Other Page Title/option
option value=5Page 5/option
option value=1Page 1/option
option value=2Page 2/option
/select

-- 
http://cjordan.us


[jQuery] Re: Selectbox Manipulation...Works in FF but not in IE6 or IE7

2009-02-26 Thread Chris Jordan

I just realized I may need to explain a little further.

I've got a table on the same page. Clicking on a record in that table
populates a small form on the page with the information from that
record. The text and check boxes are easy enough to populate, but
telling the select box which of it's options is now selected as a
result of that user click is a little harder it seems.

The code snippet in my original post fires when a user clicks on a
record in the table, and in FireFox 3.0.6 it works just fine, but in
IE6 and IE7 it fails. I should also probably mention that I'm using
jquery 1.2.6 packed.

Thanks,
Chris

On Feb 26, 3:11 pm, Chris Jordan chris.s.jor...@gmail.com wrote:
 Hi folks,

 I'm trying to manipulate which item in a select box is selected using
 jQuery. The following code snippet works great in FF but fails miserably in
 IE6 and IE7

  // select the publish to option
 $(#PublishToID  option).each(function(){
     $this = $(this);
     if($this.attr(textContent) == PublishTo){
         $this.attr(selected, true)
     }

 });

 Given that I have a select box that looks like this:

 select name=PublishTo id=PublishToID
     option value=3Some Page Title/option
     option value=4Some Other Page Title/option
     option value=5Page 5/option
     option value=1Page 1/option
     option value=2Page 2/option
 /select

 --http://cjordan.us


[jQuery] Re: Selectbox Manipulation...Works in FF but not in IE6 or IE7

2009-02-26 Thread Chris Jordan

James,

Thanks for the response. I don't know why I didn't see it before, but
your comment about the conditional check got me thinking. I did try
  $this.attr(selected, selected);

and that works just as well as my original, but the conditional is
where my problem was. FF understood the 'textContent' attribute, but
IE67 only understood 'text'. Honestly, when I was looking at the
thing originally in FF, I just didn't see 'text' I saw only
'textContent' so that's what I used. Thankfully though FF and IE67
understand $this.attr(text), so I'm all good now.

Thanks,
Chris

On Feb 26, 3:32 pm, James james.gp@gmail.com wrote:
 I'm not sure about the:
     if($this.attr(textContent) == PublishTo)
 part. It sounds very custom. Provided this conditional check is
 working correctly, how about trying:
     $this.attr(selected, selected) ;
 to set the value.

 Or if you can get the actual options value, you can set the value of
 the select drop-down:
 $(select).val(1);

 On Feb 26, 11:24 am, Chris Jordan chris.s.jor...@gmail.com wrote:

  I just realized I may need to explain a little further.

  I've got a table on the same page. Clicking on a record in that table
  populates a small form on the page with the information from that
  record. The text and check boxes are easy enough to populate, but
  telling the select box which of it's options is now selected as a
  result of that user click is a little harder it seems.

  The code snippet in my original post fires when a user clicks on a
  record in the table, and in FireFox 3.0.6 it works just fine, but in
  IE6 and IE7 it fails. I should also probably mention that I'm using
  jquery 1.2.6 packed.

  Thanks,
  Chris

  On Feb 26, 3:11 pm, Chris Jordan chris.s.jor...@gmail.com wrote:

   Hi folks,

   I'm trying to manipulate which item in a select box is selected using
   jQuery. The following code snippet works great in FF but fails miserably 
   in
   IE6 and IE7

    // select the publish to option
   $(#PublishToID  option).each(function(){
       $this = $(this);
       if($this.attr(textContent) == PublishTo){
           $this.attr(selected, true)
       }

   });

   Given that I have a select box that looks like this:

   select name=PublishTo id=PublishToID
       option value=3Some Page Title/option
       option value=4Some Other Page Title/option
       option value=5Page 5/option
       option value=1Page 1/option
       option value=2Page 2/option
   /select

   --http://cjordan.us


[jQuery] Re: minify + gzip??????? stupid question i know but please explain...

2008-10-15 Thread Chris Jordan
Yeah, nothing bugs me more than when I'm searching for the answer to
something on google only to come up with fifteen mailing list posts on the
subject where the only answer is some smart-ass telling me to search google
for it. :o/

On Wed, Oct 15, 2008 at 9:06 AM, Alex Weber [EMAIL PROTECTED] wrote:


 lol
 tried that, had to wade through a lot of stuff but I guess I found my
 answers.

 if you knew it off the top of your head wouldn't hurt to just say it!
 =P

 thanks!

 -Alex

 On Oct 15, 9:23 am, MorningZ [EMAIL PROTECTED] wrote:
  Answers to your questions, every single one of them
 
  http://www.google.com/search?q=gzip
 
  On Oct 15, 7:58 am, Alex Weber [EMAIL PROTECTED] wrote:
 
   the recomendation out there is serve your JS minified + gzipped
 
   ok, i downloaded the YUI minified and use it to minify all my files
   (~50% size reduction)... now whats all this talk about gzipping?
 
   do i have to manually download gzip and do the same thing? AFTER I
   minify the file?
 
   (or write a batch that does both?)
 
   or if i enable mod_deflate it takes care of the gzipping?
 
   thanks! :)




-- 
http://cjordan.us


[jQuery] Re: jqGrid 3.3 version

2008-10-14 Thread Chris Jordan
Yeah, wow! I'm definitely bookmarking that! Very nicely done!

Chris

On Tue, Oct 14, 2008 at 2:08 PM, Benjamin Sterling 
[EMAIL PROTECTED] wrote:

 Tony,
 I really must say that that is a beautiful piece of work; I don't have a
 need for it right now but be sure that I have bookmarked and passed your url
 on to other devs.


 On Tue, Oct 14, 2008 at 2:59 PM, Tony [EMAIL PROTECTED] wrote:


 Hello all,
 A new version of jqGrid is available.
 All the new features and bug fixes can be found here
 http://www.secondpersonplural.ca/jqgriddocs/index.htm

 Be a sure to visit the demo page for the new features.
 http://trirand.com/jqgrid/jqgrid.html

 The jqGrid home page is here
 http://trirand.com/blog/

 Enjoy
 Tony




 --
 Benjamin Sterling
 Skype: benjamin.sterling
 AIM: thekenzoco
 Web:
 http://www.KenzoMedia.com
 http://www.KenzoHosting.com
 http://www.BenjaminSterling.com




-- 
http://cjordan.us


[jQuery] Re: Best JQuery pop-up plugin.

2008-09-19 Thread Chris Jordan
Given your requirements, you can't go wrong with using jQueryUI. - modal
pop-up (check)
- easy to control life cycle (check)
- good documentation (check) -- http://docs.jquery.com/UI/Dialog
- easy to customize look and feel ( same link as above, see Theming, also
check out the theme roller, very cool!)

on the topic of documentation, jQueryUI is officially supported and it has
it's own mailing list (google group) with all sorts of knowledgeable people
to help out.

Just my two-cents again. :o)

Chris

On Fri, Sep 19, 2008 at 2:38 PM, crypto5 [EMAIL PROTECTED] wrote:



 Thanks everybody for responses. Ok, my requirements are:

 - modal pop-up
 - easy to control life cycle(open, close, handle events).
 - easy to customize look and feel
 - good documentation. Don't like look at spaghetti code to figure out how
 it
 works
 - existing themes are big plus

 Currently I made 5 minutes tests for Thickbox, jquery dialog and facebox.
 Could not find how to customize look and feel for thickbox and facebox.
 My jquery dialog  test doesn't work: the default flora theme doesn't work
 for me.
 So I am asking jquery experts to help me make my choice and dive into
 single
 pop-up lib.


 Eric Martin-3 wrote:
 
 
  It really depends on what you are using it for as well as your
  personal preferences. I tried BlockUI and jqModal before I finally
  decided to write my own (SimpleModal). Each one has its strengths and
  weaknesses, plus there are a lot more out there that aren't even
  mentioned.
 
  Perhaps you can tell us more about your requirements, which may help
  direct you to one that best fits your needs. On the other hand, you
  could always give each one the 5-minute test ;)
 
  Eric Martin
  --
  http://ericmmartin.com
 
  On Sep 18, 9:51 am, crypto5 [EMAIL PROTECTED] wrote:
  Hi All,
 
  what is the best JQuery pop-up window plugin in your opinion?
 
  I am not strong experienced in JQuery and looking for such plugin but
  don't
  want test everything. So lloking for short cut.
 
  Thanks All!
  --
  View this message in
  context:
 http://www.nabble.com/Best-JQuery-pop-up-plugin.-tp19556756s27240p195...
  Sent from the jQuery General Discussion mailing list archive at
  Nabble.com.
 
 

 --
 View this message in context:
 http://www.nabble.com/Best-JQuery-pop-up-plugin.-tp19556756s27240p19578372.html
 Sent from the jQuery General Discussion mailing list archive at Nabble.com.




-- 
http://cjordan.us


[jQuery] Re: Best JQuery pop-up plugin.

2008-09-19 Thread Chris Jordan
I agree that theme roller is one of the coolest things since sliced bread...
:o)

On Fri, Sep 19, 2008 at 3:24 PM, Richard D. Worth [EMAIL PROTECTED] wrote:

 For jQuery UI Dialog themes, take a look at ThemeRoller:

 http://themeroller.com/ - http://ui.jquery.com/themeroller

 There are ready-made themes in the Theme Gallery or you can Roll Your Own
 (modifying an existing one, or starting from scratch).

 - Richard


 On Fri, Sep 19, 2008 at 3:38 PM, crypto5 [EMAIL PROTECTED] wrote:



 Thanks everybody for responses. Ok, my requirements are:

 - modal pop-up
 - easy to control life cycle(open, close, handle events).
 - easy to customize look and feel
 - good documentation. Don't like look at spaghetti code to figure out how
 it
 works
 - existing themes are big plus

 Currently I made 5 minutes tests for Thickbox, jquery dialog and
 facebox.
 Could not find how to customize look and feel for thickbox and facebox.
 My jquery dialog  test doesn't work: the default flora theme doesn't
 work
 for me.
 So I am asking jquery experts to help me make my choice and dive into
 single
 pop-up lib.


 Eric Martin-3 wrote:
 
 
  It really depends on what you are using it for as well as your
  personal preferences. I tried BlockUI and jqModal before I finally
  decided to write my own (SimpleModal). Each one has its strengths and
  weaknesses, plus there are a lot more out there that aren't even
  mentioned.
 
  Perhaps you can tell us more about your requirements, which may help
  direct you to one that best fits your needs. On the other hand, you
  could always give each one the 5-minute test ;)
 
  Eric Martin
  --
  http://ericmmartin.com
 
  On Sep 18, 9:51 am, crypto5 [EMAIL PROTECTED] wrote:
  Hi All,
 
  what is the best JQuery pop-up window plugin in your opinion?
 
  I am not strong experienced in JQuery and looking for such plugin but
  don't
  want test everything. So lloking for short cut.
 
  Thanks All!
  --
  View this message in
  context:
 http://www.nabble.com/Best-JQuery-pop-up-plugin.-tp19556756s27240p195...
  Sent from the jQuery General Discussion mailing list archive at
  Nabble.com.
 
 

 --
 View this message in context:
 http://www.nabble.com/Best-JQuery-pop-up-plugin.-tp19556756s27240p19578372.html
 Sent from the jQuery General Discussion mailing list archive at
 Nabble.com.





-- 
http://cjordan.us


[jQuery] Re: Best JQuery pop-up plugin.

2008-09-18 Thread Chris Jordan
Um... jQueryUI's dialog widget is good... and super easy to use. I'm just
sayin'... ;o)

Chris

On Thu, Sep 18, 2008 at 11:51 AM, crypto5 [EMAIL PROTECTED] wrote:



 Hi All,

 what is the best JQuery pop-up window plugin in your opinion?

 I am not strong experienced in JQuery and looking for such plugin but don't
 want test everything. So lloking for short cut.

 Thanks All!
 --
 View this message in context:
 http://www.nabble.com/Best-JQuery-pop-up-plugin.-tp19556756s27240p19556756.html
 Sent from the jQuery General Discussion mailing list archive at Nabble.com.




-- 
http://cjordan.us


[jQuery] Re: New jQuery Website...

2008-09-10 Thread Chris Jordan
Amen to this sort of thing being a royal pain in the arse! :o(

Chris

On Wed, Sep 10, 2008 at 11:26 AM, Rick Faircloth
[EMAIL PROTECTED]wrote:


 Your code demonstration is a definite strike against
 incremental upgrades in my eyes...something could break
 every few days.

 Since I don't use Vista, yet, I have to wonder how many of my
 sites are failing on IE7 for Vista, yet performing perfectly
 on every XP system.

 What a pain!

 Rick

  -Original Message-
  From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of jeremyBass
  Sent: Wednesday, September 10, 2008 11:22 AM
  To: jQuery (English)
  Subject: [jQuery] Re: New jQuery Website...
 
 
  All of the versions act different... mostly due to trying to fix some
  bug we are not thinking about but
   IE 7.0.6001.18000 (vista)
  7.0.5730.11 (xp upgraded install to sp2)
  7.0.5730.13(xp sp2 full install)
 
  they all act different...
 
  ie...
 
  if you wrote this...
 
  var agent= navigator.userAgent.toLowerCase();
  var ver = parseInt(navigator.appVersion);
 
  var ie = agent.indexOf(msie)=0;
  var ie6=ie  agent.indexOf(msie 6)=0;
  var ie7=ie  agent.indexOf(msie 7)=0;
 
  var ff=!ie  agent.indexOf(mozilla)=0;
  var ff2=ff  ver==4;
  var ff3=ff  ver==5;
 
  if (ff3){
  do somthing for ff3
  } else if (ie6){
  do somthing for ie6
  } else if (ie7){
  do somthing for ie7
  }else{
  not supported sorry}
 
  IE 7.0.5730.11 falls in to ie6 but IE7, 7.0.5730.13 will not
 
  where as
  if (ff3){
  do somthing for ff3
  } else if (ie7){
  do somthing for ie7
  } else if (ie6){
  do somthing for ie6
  }else{
  not supported sorry}
 
  IE 7.0.5730.11 falls in ie7 along with the rest...
 
  the joys of the web...
  jeremyBass
 
  On Sep 10, 6:53 am, Rick Faircloth [EMAIL PROTECTED] wrote:
   Yes, I'm on IE7, 7.0.5730.13.
  
   I'll have to check on upgrading.  But why would there be so much
   difference between 7.0.6001.18000 and the rest?  Surely there a lot
   of users using earlier versions...
  
   Rick
  
  
  
-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED]
 On Behalf Of jeremyBass
Sent: Wednesday, September 10, 2008 12:30 AM
To: jQuery (English)
Subject: [jQuery] Re: New jQuery Website...
  
I think chris would see it right as on my vista pc (IE
7.0.6001.18000 ) all is fine...
  
so my hunch is the largest hole is XP IE users...
IE 7.0.5730.11
IE 7.0.5730.13
and all of IE 6 ...
but i haven't check those since work eralyer today
jeremyBass
  
On Sep 9, 5:19 pm, Rick Faircloth [EMAIL PROTECTED]
 wrote:
 Chris.
  
 Check this one in IE7.
  
http://docs.jquery.com/Tutorials:jQuery_For_Designers#
  
 Rick- Hide quoted text -
  
   - Show quoted text -
 
  No virus found in this incoming message.
  Checked by AVG - http://www.avg.com
  Version: 8.0.169 / Virus Database: 270.6.19/1663 - Release Date:
 9/10/2008 6:00 AM




-- 
http://cjordan.us


[jQuery] Re: New jQuery Website...

2008-09-09 Thread Chris Jordan
I just looked at the site in IE7 and I'm not seeing any problems. I clicked
around in the documentation, and tutorials area, and just didn't notice a
problem. Jeremy, maybe you *should* provide some specifics... either that or
I'm blind! :o)

Chris

On Mon, Sep 8, 2008 at 12:26 PM, jeremyBass [EMAIL PROTECTED] wrote:


 I don't know if this is just me but the site is all kinds of broken...
 I'mean in almost everywere... this is 2 IE7's and 1 IE6's on 3 pcs...
 I'd give a url but ... well it's almost everywhere... cool idea
 though...

 On Sep 8, 10:03 am, Rick Faircloth [EMAIL PROTECTED] wrote:
  Yes, it does look great!
 
  Rick
 
  From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Chris Jordan
  Sent: Monday, September 08, 2008 12:58 PM
  To: jQuery Group
  Subject: [jQuery] New jQuery Website...
 
  I really like the look of the new jQuery website. When did it get
 launched? My hats off to the
  designers! It looks fantastic!! :o)
 
  Chris
 
  --http://cjordan.us
 
  No virus found in this incoming message.
  Checked by AVG -http://www.avg.com
  Version: 8.0.169 / Virus Database: 270.6.17/1655 - Release Date: 9/8/2008
 7:01 AM




-- 
http://cjordan.us


[jQuery] Re: New jQuery Website...

2008-09-09 Thread Chris Jordan
Hmm... still looks fine to me. I'm using IE 7.0.6001.18000

Yeah, I hope the designer can get this resolved too. Hope these version
numbers help out.

Chris

On Tue, Sep 9, 2008 at 12:05 PM, jeremyBass [EMAIL PROTECTED] wrote:


 Sure can... the page i was currently on...
 http://plugins.jquery.com/project/Intercept
 (but it's almost every page...)

 and here is a pic for you

 http://digitalbarn.tv/Proofs/NCITA/proofs/Untitled-1.jpg

 and the browser version IE 7.0.5730.11

 which there is a big diff between that and

  IE 7.0.5730.13

 if i was to pin it down... i'd say it's a clearing issue.. but i
 didn't look at the code... hope that helps
 jeremyBass

 On Sep 9, 9:54 am, Chris Jordan [EMAIL PROTECTED] wrote:
  I just looked at the site in IE7 and I'm not seeing any problems. I
 clicked
  around in the documentation, and tutorials area, and just didn't notice a
  problem. Jeremy, maybe you *should* provide some specifics... either that
 or
  I'm blind! :o)
 
  Chris
 
 
 
 
 
  On Mon, Sep 8, 2008 at 12:26 PM, jeremyBass [EMAIL PROTECTED]
 wrote:
 
   I don't know if this is just me but the site is all kinds of broken...
   I'mean in almost everywere... this is 2 IE7's and 1 IE6's on 3 pcs...
   I'd give a url but ... well it's almost everywhere... cool idea
   though...
 
   On Sep 8, 10:03 am, Rick Faircloth [EMAIL PROTECTED] wrote:
Yes, it does look great!
 
Rick
 
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED]
 On
   Behalf Of Chris Jordan
Sent: Monday, September 08, 2008 12:58 PM
To: jQuery Group
Subject: [jQuery] New jQuery Website...
 
I really like the look of the new jQuery website. When did it get
   launched? My hats off to the
designers! It looks fantastic!! :o)
 
Chris
 
--http://cjordan.us
 
No virus found in this incoming message.
Checked by AVG -http://www.avg.com
Version: 8.0.169 / Virus Database: 270.6.17/1655 - Release Date:
 9/8/2008
   7:01 AM
 
  --http://cjordan.us- Hide quoted text -
 
  - Show quoted text -




-- 
http://cjordan.us


[jQuery] New jQuery Website...

2008-09-08 Thread Chris Jordan
I really like the look of the new jQuery website. When did it get launched?
My hats off to the designers! It looks fantastic!! :o)
Chris

-- 
http://cjordan.us


[jQuery] Re: Doc's site down?

2008-08-28 Thread Chris Jordan
That's good news, John. All this reminds me that I've not donated to jQuery
in a several months. I somehow feel like I need (and want) to send in more
support. I don't know if the hosting for the jQuery site (servers,
bandwidth, administration, maintenance, etc.) is being donated or what, but
a little money couldn't hurt, right?

Thanks for all you (and the rest of the jQuery team) do, John! :o)

Chris

On Thu, Aug 28, 2008 at 2:26 PM, John Resig [EMAIL PROTECTED] wrote:

 We've been working with the guys at Media Temple - they're going to be
 breaking us off into multiple servers. Right now the docs site (for example)
 is getting the equivalent of about 3-4 Slashdot/Digg effects per day so
 we have to boost up the resources that we have.

 --John



 On Thu, Aug 28, 2008 at 3:22 PM, Chris Jordan [EMAIL PROTECTED]wrote:

 No offense to Remy, but I just don't like the way the Visual jQuery docs
 are laid out. I *really* like the way the official docs are laid out on
 docs.jQuery.com. If a copy of the docs in that exact format could be
 hosted somewhere else as an alternative to docs.jQuery.com, then I'd be
 happy with that.

 Just my two-cents. Having docs down (they appear to be down right now
 2:22pm cst) is very frustrating, but I'm happy to know that they're working
 to resolve the issue.

 Any kind of update on the problem, Rey?

 Chris


 On Thu, Aug 28, 2008 at 10:48 AM, Sam [EMAIL PROTECTED] wrote:


 For jQuery reference, I use Visual jQuery almost exclusively, unless
 using a new plugin:

 http://remysharp.com/visual-jquery/

 Seems to be a better option than the docs site.




 --
 http://cjordan.us





-- 
http://cjordan.us


[jQuery] Re: $ Not defined

2008-08-28 Thread Chris Jordan
I had a similar problem recently, and it turned out to be a permissions
issue with just the jquery source file. Fixed the permissions problem, and
the file started getting included properly.

Have you looked at a possible permissions issue?

Chris

On Thu, Aug 28, 2008 at 11:04 AM, Chris [EMAIL PROTECTED] wrote:


 I am having trouble with the $ not defined error and after reading
 Karl's response (http://groups.google.com/group/jquery-en/
 browse_thread/thread/17dab2899c5cfc18/7312dc68c84d93af?lnk=gstq=%24+is
 +not+defined#7312dc68c84d93afhttp://groups.google.com/group/jquery-en/browse_thread/thread/17dab2899c5cfc18/7312dc68c84d93af?lnk=gstq=%24+is+not+defined#7312dc68c84d93af)
 I have assured myself that it is in
 fact NOT loading my local copy of the jquery file.

 I have tried placing it in the same directory as the calling file, my
 js directory, all diff places.   I renamed the download file to
 jquery126.js and did the following...

 script type=text/javascript src=js/jquery126.js/script
 script type=text/javascript src=js/global.js/script

 Oddly enough when using firebug - I can confirm that the jquery file
 is giving me a 404  - yet the global.js file is being served just
 fine.  They are both located in the same placve, I have confirmed the
 file spelling etc.  I even tried using the Dreamweaver code hints to
 help me browse for and select the correct file.

 Yet the only file that will not wok is my jquery file.

 Any ideas anyone?

 Thanks,
 Chris




-- 
http://cjordan.us


[jQuery] Re: BlockUI: Strange flickering behavior.

2008-05-21 Thread Chris Jordan
Mike, thanks for your suggestion. I'll give that a shot and let report back.
:o)

Chris

On Tue, May 20, 2008 at 9:11 PM, Mike [EMAIL PROTECTED] wrote:


  http://rock-itnaturalstone.com/dev/ThinVeneer.php
 
  Just hover over some of the stone samples to see what it's doing. It's
  driving me crazy. It's almost as if the mouseover even fires constantly
  while the mouse is hovered over the element, rather than just firing
 once.
  Any thoughts?
 
  Thanks,
  Chris


 Hey Chris,

 You mouseout handler is definitely getting called.  Maybe moving the
 calls around like this would help:

 $(.thumb).bind(mouseover, function(){
$(this).block({
message: $(this).attr(alt),
// other options here
}).bind(mouseout,function(){
$(this).unblock().unbind('mouseout');
});
 });




-- 
http://cjordan.us


[jQuery] Re: BlockUI: Strange flickering behavior.

2008-05-21 Thread Chris Jordan
That didn't fix the flickering problem. :o(

Can anyone help?

http://rock-itnaturalstone.com/dev/ThinVeneer.php

Chris



On Wed, May 21, 2008 at 11:10 AM, Chris Jordan [EMAIL PROTECTED]
wrote:

 Mike, thanks for your suggestion. I'll give that a shot and let report
 back. :o)

 Chris


 On Tue, May 20, 2008 at 9:11 PM, Mike [EMAIL PROTECTED] wrote:


  http://rock-itnaturalstone.com/dev/ThinVeneer.php
 
  Just hover over some of the stone samples to see what it's doing. It's
  driving me crazy. It's almost as if the mouseover even fires constantly
  while the mouse is hovered over the element, rather than just firing
 once.
  Any thoughts?
 
  Thanks,
  Chris


 Hey Chris,

 You mouseout handler is definitely getting called.  Maybe moving the
 calls around like this would help:

 $(.thumb).bind(mouseover, function(){
$(this).block({
message: $(this).attr(alt),
// other options here
}).bind(mouseout,function(){
$(this).unblock().unbind('mouseout');
});
 });




 --
 http://cjordan.us




-- 
http://cjordan.us


[jQuery] Re: BlockUI: Strange flickering behavior.

2008-05-21 Thread Chris Jordan
Just to clarify, in order to see the problem (especially in FF -- it looks a
little different in IE) mouse over one of the thumbnails in the center of
the page, and then leave the mouse there. You don't have to do any further
movement of the mouse to see the problem happening.

Thanks everyone. I really, really need help on this. :o(

Chris

On Wed, May 21, 2008 at 11:15 AM, Chris Jordan [EMAIL PROTECTED]
wrote:

 That didn't fix the flickering problem. :o(

 Can anyone help?

 http://rock-itnaturalstone.com/dev/ThinVeneer.php

 Chris




 On Wed, May 21, 2008 at 11:10 AM, Chris Jordan [EMAIL PROTECTED]
 wrote:

 Mike, thanks for your suggestion. I'll give that a shot and let report
 back. :o)

 Chris


 On Tue, May 20, 2008 at 9:11 PM, Mike [EMAIL PROTECTED] wrote:


  http://rock-itnaturalstone.com/dev/ThinVeneer.php
 
  Just hover over some of the stone samples to see what it's doing. It's
  driving me crazy. It's almost as if the mouseover even fires constantly
  while the mouse is hovered over the element, rather than just firing
 once.
  Any thoughts?
 
  Thanks,
  Chris


 Hey Chris,

 You mouseout handler is definitely getting called.  Maybe moving the
 calls around like this would help:

 $(.thumb).bind(mouseover, function(){
$(this).block({
message: $(this).attr(alt),
// other options here
}).bind(mouseout,function(){
$(this).unblock().unbind('mouseout');
});
 });




 --
 http://cjordan.us




 --
 http://cjordan.us




-- 
http://cjordan.us


[jQuery] Re: BlockUI: Strange flickering behavior.

2008-05-21 Thread Chris Jordan
Michael, I'll try this. Thanks so much.

On Wed, May 21, 2008 at 11:21 AM, Michael Price [EMAIL PROTECTED]
wrote:


 Chris Jordan wrote:

 Just to clarify, in order to see the problem (especially in FF -- it looks
 a little different in IE) mouse over one of the thumbnails in the center of
 the page, and then leave the mouse there. You don't have to do any further
 movement of the mouse to see the problem happening.

 Thanks everyone. I really, really need help on this. :o(


 Downloaded a copy of the page via Firefox and tried changing your bindings
 to use the hover function - seemed to work OK but I'm still getting the
 eggtimer over the images for some reason:

 $(.thumb).hover(function() {
// MOUSEOVER HERE
 },function() {
// MOUSEOUT HERE
 });

 Regards,
 Michael Price




-- 
http://cjordan.us


[jQuery] Re: BlockUI: Strange flickering behavior.

2008-05-21 Thread Chris Jordan
Hey, that's progress! I'm still getting the hour glass too, but the flicker
is gone. It seemed before like the constantly being blocked and unblocked in
rapid succession. Now, it looks just right, except that I don't like the
hour glass. But I think I can show it to my client like this.

Any further assistance would be much appreciated. If anyone can figure out
how to get rid of the hour glass, that'd be great.

Here's what the code looks like now:
// change message border
$.blockUI.defaults.css.border = '0px solid red';
$.blockUI.defaults.css.cursor = 'default'; // I'm just assuming that this
will work.

// make fadeOut effect shorter
$.blockUI.defaults.fadeOut = 400;

$(.thumb).hover(function() {
   // MOUSEOVER HERE
$(this).block({
message: $(this).attr(alt),
css: {
padding:0,
margin: 0,
width:  '100%',
top:'40%',
left:   '35%',
textAlign:  'center',
color:  '#FF',
cursor: 'default', // but just in case it didn't work
above, i set it here too...
backgroundColor:'transparent',
fontWeight:'bold'
},
overlayCSS:  {
backgroundColor:'#F2F2F2',
opacity:'0.6'
}
})
},function() {
   // MOUSEOUT HERE
   $(this).unblock();
});


On Wed, May 21, 2008 at 11:31 AM, Chris Jordan [EMAIL PROTECTED]
wrote:

 Michael, I'll try this. Thanks so much.


 On Wed, May 21, 2008 at 11:21 AM, Michael Price 
 [EMAIL PROTECTED] wrote:


 Chris Jordan wrote:

 Just to clarify, in order to see the problem (especially in FF -- it
 looks a little different in IE) mouse over one of the thumbnails in the
 center of the page, and then leave the mouse there. You don't have to do any
 further movement of the mouse to see the problem happening.

 Thanks everyone. I really, really need help on this. :o(


 Downloaded a copy of the page via Firefox and tried changing your bindings
 to use the hover function - seemed to work OK but I'm still getting the
 eggtimer over the images for some reason:

 $(.thumb).hover(function() {
// MOUSEOVER HERE
 },function() {
// MOUSEOUT HERE
 });

 Regards,
 Michael Price




 --
 http://cjordan.us




-- 
http://cjordan.us


[jQuery] Re: BlockUI: Strange flickering behavior.

2008-05-21 Thread Chris Jordan
I figured out what the hour glass is all about. I'm throwing up an overlay,
and that puts up the hour glass automatically. if you hover over just the
text in the middle, then there's no hour glass there.

Thanks for everyone's help!

Chris

On Wed, May 21, 2008 at 11:45 AM, Chris Jordan [EMAIL PROTECTED]
wrote:

 Hey, that's progress! I'm still getting the hour glass too, but the flicker
 is gone. It seemed before like the constantly being blocked and unblocked in
 rapid succession. Now, it looks just right, except that I don't like the
 hour glass. But I think I can show it to my client like this.

 Any further assistance would be much appreciated. If anyone can figure out
 how to get rid of the hour glass, that'd be great.

 Here's what the code looks like now:
 // change message border
 $.blockUI.defaults.css.border = '0px solid red';
 $.blockUI.defaults.css.cursor = 'default'; // I'm just assuming that this
 will work.

 // make fadeOut effect shorter
 $.blockUI.defaults.fadeOut = 400;

 $(.thumb).hover(function() {
// MOUSEOVER HERE
 $(this).block({
 message: $(this).attr(alt),
 css: {
 padding:0,
 margin: 0,
 width:  '100%',
 top:'40%',
 left:   '35%',
 textAlign:  'center',
 color:  '#FF',
 cursor: 'default', // but just in case it didn't work
 above, i set it here too...
 backgroundColor:'transparent',
 fontWeight:'bold'
 },
 overlayCSS:  {
 backgroundColor:'#F2F2F2',
 opacity:'0.6'
 }
 })
 },function() {
// MOUSEOUT HERE
$(this).unblock();
 });



 On Wed, May 21, 2008 at 11:31 AM, Chris Jordan [EMAIL PROTECTED]
 wrote:

 Michael, I'll try this. Thanks so much.


 On Wed, May 21, 2008 at 11:21 AM, Michael Price 
 [EMAIL PROTECTED] wrote:


 Chris Jordan wrote:

 Just to clarify, in order to see the problem (especially in FF -- it
 looks a little different in IE) mouse over one of the thumbnails in the
 center of the page, and then leave the mouse there. You don't have to do 
 any
 further movement of the mouse to see the problem happening.

 Thanks everyone. I really, really need help on this. :o(


 Downloaded a copy of the page via Firefox and tried changing your
 bindings to use the hover function - seemed to work OK but I'm still getting
 the eggtimer over the images for some reason:

 $(.thumb).hover(function() {
// MOUSEOVER HERE
 },function() {
// MOUSEOUT HERE
 });

 Regards,
 Michael Price




 --
 http://cjordan.us




 --
 http://cjordan.us




-- 
http://cjordan.us


[jQuery] BlockUI: message as complete overlay

2008-05-21 Thread Chris Jordan
Recently in another thread (BlockUI: Strange flickering problem), I found
that what I'd like is to have my message be the entire overlay. So as it
stands right now, you get a semi-transparent overlay with a message in the
middle. When you run your mouse over the overlay bit, the cursor turns into
an hour glass, but when you've got your mouse over the message in the middle
your cursor stays the normal default (or whatever you've set it to).

So what I'm dealing with is a grid of images where, on mouseover, I'm
throwing an overlay over the image that the user has moused over. I'd like
my message to be the entire overlay so that the cursor is never changed to
the hour glass. Also, I can then bind a click event to the message (I guess
that's how that works) so when the user clicks they get a larger view of my
image.

check out what I'm talking about at
http://rock-itnaturalstone.com/dev/ThinVeneer.php

Thanks,
Chris

-- 
http://cjordan.us


[jQuery] BlockUI: What's wrong with this code?

2008-05-20 Thread Chris Jordan
Can anyone tell me what's wrong with the following code:

$(function(){
$(.thumb).bind(mouseover, function(){
$(this).blockUI({
message: $(this).attr(alt)
})
}).bind(mouseout,function(){
$(this).unblockUI();
});
});

the thumb class is applied to a bunch of images on my page. when I
mouseover the image I want a layer put up over just that image along with a
message (the alternate text). The error I get is: $(this).blockUI() is not a
function. Likewise I get the same on the mouseout only with the appropriate
function name listed in the error.

Can anyone tell me what I'm doing wrong?

Thanks!
Chris

-- 
http://cjordan.us


[jQuery] Re: BlockUI: What's wrong with this code?

2008-05-20 Thread Chris Jordan
I figured it out. It should be $(this).block() NOT $(this).blockUI()...
duh...

On Tue, May 20, 2008 at 5:10 PM, Chris Jordan [EMAIL PROTECTED]
wrote:

 Can anyone tell me what's wrong with the following code:

 $(function(){
 $(.thumb).bind(mouseover, function(){
 $(this).blockUI({
 message: $(this).attr(alt)
 })
 }).bind(mouseout,function(){
 $(this).unblockUI();
 });
 });

 the thumb class is applied to a bunch of images on my page. when I
 mouseover the image I want a layer put up over just that image along with a
 message (the alternate text). The error I get is: $(this).blockUI() is not a
 function. Likewise I get the same on the mouseout only with the appropriate
 function name listed in the error.

 Can anyone tell me what I'm doing wrong?

 Thanks!
 Chris

 --
 http://cjordan.us




-- 
http://cjordan.us


[jQuery] BlockUI: Strange flickering behavior.

2008-05-20 Thread Chris Jordan
Hi folks,

after solving my previous BlockUI problem, I'm wondering if anyone has ever
seen it do this before:

http://rock-itnaturalstone.com/dev/ThinVeneer.php

Just hover over some of the stone samples to see what it's doing. It's
driving me crazy. It's almost as if the mouseover even fires constantly
while the mouse is hovered over the element, rather than just firing once.
Any thoughts?

Thanks,
Chris

-- 
http://cjordan.us


[jQuery] Re: Jquery, AJAX and MySQL update

2008-04-11 Thread Chris Jordan
yeah, the other method of passing data via ajax is:
...
url: myurl.php,
type: post,
data: {variablename:value, variablename2:someJSValue},
...

you could declare an object that contains your arguments that you want to
pass in to updatesql.php like this:

var args = {}
args.name = John
args.location = Brisbane
args.SomeOtherVariable = someJSVariable

then you could do:
...
url: myurl.php,
type: post,
data: args,
...

where args is the object that you just created.

Hope this helps! :o)

Chris


On Fri, Apr 11, 2008 at 2:36 PM, Scott Sauyet [EMAIL PROTECTED] wrote:


 Chris Jones wrote:

  script
  $(document).ready(function(){
 $(#list).sortable({
 accept: 'item',
 update: function(sorted) {
 serial = $('#list').sortable('serialize');
 $.ajax({
 url:updatesql.php,
 type:POST,
 data: serial.hash,
 error:function(){alert('Failed');},
 success:function(){alert('Success');}
 });
 }
 });
  });
  /script
 

 Have you tried doing an alert on serial.hash?

 I don't know that property.  The sortable('serialize') function returns a
 String that should be all set for being part of a URL, so you might just try

data: serial,

 Where is that hash property defined?

  -- Scott




-- 
http://cjordan.us


[jQuery] Re: Jquery, AJAX and MySQL update

2008-04-11 Thread Chris Jordan
Chris,

The hash idea that the other site was talking about is what I was telling
you in my previous post. I do this all the time:

function myFunction(email){
   var args = {};
   args.name = $('#nameid').val();
   args.location = $('#locationid').val();
   args.email = email;
   args.someStringLiteral = I am a string!;

   $.ajax({
  url:updatesql.php,
  type:post,
  data: args,
  error:function(){
 alert('Failed');
  },
  success:function(){
 alert('Success');
  }
   });
}

Note that in JavaScript what a hash (or what I would call a structure) is
also an associative array, and it's an object, and both can be accessed
using either dot or array notation. So if you had an object
(hash/structure/associative array) called 'session' you could access the
'loggedin' property by saying session.loggedin or session['loggedin']. You
could set up that hash/associative array/struct/object as I've mentioned
above:

var session = {};
session.loggedin = true;

or

var session = {loggedin:true};

Check this excellent page (http://www.quirksmode.org/js/associative.html)
for much more detailed information. :o)

jQuery will take an object like this and translate it into the
name=Johnlocation=Boston for you. I find passing an object of arguments
easier and more preferable (personally) than passing
name=Johnlocation=Boston.

Chris

On Fri, Apr 11, 2008 at 3:57 PM, Scott Sauyet [EMAIL PROTECTED] wrote:


 Chris Jones wrote:

  The hash was a suggestion on another site. I have tried it without it as
  well but no joy. If I alert the serial on success I get what I would
  expect ie. item[]=2item[]=3item[]=10
 
  [ ... ]
  data: serial.hash or data: serial, = nothing gets updated.
  data: name=Johnlocation=Boston = the table gets updated via
  updatesql.php

 Is that on success based upon the AJAX success function?

 If so, then your PHP is actually responding with a good error code, and
 you need to do some fiddling in the PHP to see what's happening.

 If you don't get that far, I would suggest something like the
 LiveHTTPHeaders plugin for Firefox to do some testing on the client side.

 Sorry I don't have more definitive answers.  Good luck,

  -- Scott




-- 
http://cjordan.us


[jQuery] Re: [POLL] Online jQuery Training from John Resig

2008-03-06 Thread Chris Jordan


+1 for I'd attend (and I answered the poll in the same way). I would 
like to know that for my fee, I could be given access to a recording of 
the session for my later review and study. I realize you guys aren't to 
that point yet, but if I pay, and perhaps I'm not able to attend (which 
could be likely unless it was held on a weekend) or even if I do attend, 
but then want to study what was discussed later, I'd like to be able to 
review the entire class.


IMO this is a great idea.

Chris

Rey Bango wrote:


Scott,

The question was left vague on purpose to be able to determine if 
there's a demand for it or not. So basically, if you were able to 
receive some form of advanced training from John for a fee at some 
point in the future, would you pay to attend?


Rey..

Scott Trudeau wrote:


I'm declining to answer the poll since I couldn't decide unless I had 
some sense of the training agenda, cost and even date/time.  In the 
mean time I'll subscribe to John's blog, buy every book he writes and 
tell everyone else to do the same. :)


Scott

On Wed, Mar 5, 2008 at 11:55 PM, Rey Bango [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] wrote:



The jQuery team is looking to gauge interest in jQuery training
delivered in a live, online format by jQuery project lead John 
Resig.


Nobody knows jQuery better than John and in terms of JavaScript, 
he's
considered one of the best in the world. So a training class 
delivered
by him would surely help anyone become more proficient in 
JavaScript and

jQuery.

So, if you could take a couple of minutes to participate in the
following poll, that would be a big help in determining how to 
proceed:


http://www.polldaddy.com/poll.aspx?p=388570

Thanks,

The jQuery Team




--
--
Scott Trudeau
scott.trudeau AT gmail DOT com
http://sstrudeau.com/
AIM: sodthestreets




--
--
http://cjordan.us



[jQuery] Re: [POLL] Online jQuery Training from John Resig

2008-03-06 Thread Chris Jordan


I know my blog isn't of much note, but consider this subject blogged!

http://cjordan.us/index.cfm/2008/3/6/John-Resig-to-Give-Online-jQueryJavaScript-Training

Chris

Rey Bango wrote:


The jQuery team is looking to gauge interest in jQuery training 
delivered in a live, online format by jQuery project lead John Resig.


Nobody knows jQuery better than John and in terms of JavaScript, he's 
considered one of the best in the world. So a training class delivered 
by him would surely help anyone become more proficient in JavaScript 
and jQuery.


So, if you could take a couple of minutes to participate in the 
following poll, that would be a big help in determining how to proceed:


http://www.polldaddy.com/poll.aspx?p=388570

Thanks,

The jQuery Team



--
--
http://cjordan.us



[jQuery] Re: Need help picking a Jquery Popup plugin

2008-03-06 Thread Chris Jordan
check out jQueryUI. I've been very happy with the dialog boxes it produces.

Cheers!
Chris

On Thu, Mar 6, 2008 at 1:26 PM, prakash123 [EMAIL PROTECTED] wrote:


 Hello

 I have  a list of links in  a page, i want the end user to click the
 link and read the content in a popup window. (not the greybox types,
 that basically lock the whole page). I need some clean unobstrusive
 popups.

 Can some one guide me to good popups in jquery?

 Thanks

 Prakash




-- 
http://cjordan.us


[jQuery] Re: Plugin Authoring Help pt 2

2008-03-05 Thread Chris Jordan
J,

I for one sure hope that someone follows up on your particular thoughts
here. I've not thought of doing what you're talking about here, and I'd love
to read other experts opinions on the subject.

Thanks for adding to this thread. :o)

Chris

On Wed, Mar 5, 2008 at 8:57 AM, J Moore [EMAIL PROTECTED] wrote:



 You might find it easier to simply create objects that use jquery,
 instead of writing a jquery plugin.

 The biggest advantage is that you actually have a normal instance of
 an object. You can pass this instance to other objects, call other
 methods on it... all the usual good stuff. (jquery plugins seem to be
 a one-shot deal. you call the method, pass in a bunch of parameters,
 and it works. If you need to access that instance again, you can't. i
 had this problem with the pagination plugin. i added more elements to
 my list, but there was no way to tell the pagination object that the
 list was longer. i would have to delete it and recreate it.)

 here's the pattern i use. let's say i wanted a 'fancy' textarea box.

  function TextBox(opts) {
this.jC = opts.container; // all jquery objects start with a 'j'
this.visible = 0;
  };

  TextBox.prototype.draw = function() {
this.jC.html('textarea/textara'); // could add lots of
 functionality to the textbox. key press handlers, etc.
this.visible = 1;
  };

  // how you use the object...
  $(document).ready(function() {
var txt = new TextBox({container:$('#text')}); // obviously need
 an element to be the container.
txt.draw();
  });


 Works well for me. Maybe one of the plug-in experts can comment on
 when it makes sense to write a jquery plugin versus write a normal
 object that uses jquery?

 -j

 On Mar 4, 2:09 pm, Leanan [EMAIL PROTECTED] wrote:
  Ok, I'm really trying to wrap my head around this, and it's irritating
  me.  I've checked out the following pages:
 
 
 http://docs.jquery.com/Plugins/Authoringhttp://www.learningjquery.com/2007/10/a-plugin-development-pattern
 
  And they help some but there's one problem I'm running into.
 
  I have:
 
  $.fn.myPlugin = function(options) {
$.myPlugin.defaults = $.extend($.myPlugin.defaults, options);
return(this);
 
  };
 
  $.myPlugin = {
defaults: {
  def1: 'default1',
  def2: 'default2',
  ...
  defx: 'defaultx'
},
 
myFunc: function() {
  var options = $.myPlugin.defaults;
  //do something here, anything really
},
 
myFunc2: function() {
var options = $.myPlugin.defaults;
//do something here, again, anything
}
 
  };
 
  Now, I want to do something like this:
 
  jQuery().myPlugin({def1: 'other_def1', def2: 'other_def2'}).myFunc();
 
  Can I?
 
  Because it's not working.  It tells me that jQuery().myPlugin({def1:
  'other_def1', def2: 'other_def2'}) is not a function.
 
  However, if I change it so that myFunc is $.fn.myFunc = function()
  { }, then I can, but I have to do it as:
 
  jQuery().myPlugin({def1: 'other_def1', def2:
  'other_def2'}).myPlugin.myFunc();
 
  Which I don't like.
 
  None of the tutorials or documentation I can find is clear on this
  point, though they do refer to the functions in $.myPlugin as being
  user-accessable... and they are, but only if I do $.myPlugin.myFunc.
  I can't chain.  And I want to be able to do that.




-- 
http://cjordan.us


[jQuery] Dell.com is using jQuery 1.2.2

2008-03-05 Thread Chris Jordan
Just a quick note to say that I noticed today that Dell.com is using jQuery
v. 1.2.2

Go to dell.com and look at the source for yourself if you want. It looks
like they're using some version of thickbox or something too. Click on My
Account and a modal-type window comes up for a login.

Pretty damn sweet if you ask me. Has anyone raised a pint to jQuery
recently? The jquery dev teams and this community ought to be damn proud of
the work they've done!

Cheers!
Chris

-- 
http://cjordan.us


[jQuery] Re: Problem with form validation (works in FF, but not in IE)

2008-02-25 Thread Chris Jordan

Just to let you know, that switching from jquery.validate.pack.js to
jquery.validate.js worked like a champ. I wonder if the packed version
can be fixed though as I'd rather use it.

On Feb 24, 4:11 pm, Chris Jordan [EMAIL PROTECTED] wrote:
 Thanks for the response! I'll let you know how it turned out.

 On Feb 20, 10:41 pm, Macarrão [EMAIL PROTECTED] wrote:

  Hails! Well, I've been using this plugin and it works nice!

  I think you'd better give the attribute name the same value as the
  id attribute. I believe IE and Opera selects by name insted of id.

  On 20 fev, 22:58, ChrisJordan [EMAIL PROTECTED] wrote:

   Hi folks,

   This page http://seifactory.com/login.php works in FireFox without
   problem, but doesn't do anything in IE. Now, I'm only talking about
   validation here, the form doesn't actually *do* anything just yet. All I 
   was
   trying to do was get the validation going.

   This is the first time I've attempted to use Jörn's validation plug-in, 
   and
   I'm kinda getting the hang of it (or so I thought), but now this isn't
   working in IE so I'm all stumped. I'd like to figure this out before I try
   to work on learning anything else (like error message placement ... hints 
   on
   that would be welcome too, though).

   Thanks heaps everyone,
  Chris

   --http://cjordan.us


[jQuery] validation plug-in and error placement -- need help

2008-02-25 Thread Chris Jordan

Hi folks,

I'm in need of some assistance in figuring out how to place error
messages via Jörn's form validation plug-in. I'm not sure I understand
how it works. So far what appears to happen is that the plug-in itself
adds a label tag with the class error and then the text of the
error that I've specified in my code or the default if I've left one
out.

I know there's some documentation on this, and I continue to read it,
but up to now I don't seem to be catching on to quickly. If someone
had a very simple example of how to place the error message anywhere I
wanted that would be fantastic. I will of course continue to work on
the problem myself, but any help would be greatly appreciated.

Cheers!
Chris


[jQuery] Re: validation plug-in and error placement -- need help

2008-02-25 Thread Chris Jordan

Just some clarification on what I'm trying to achieve. I'm looking at
the error container example for the validation plug-in and that's
darn close to what I want, but I was hoping for the error container to
be more like a modal dialog. Is there a way of placing these error
messages inside of a modal dialog?

Thanks heaps,
Chris

On Feb 25, 10:03 am, Chris Jordan [EMAIL PROTECTED] wrote:
 Hi folks,

 I'm in need of some assistance in figuring out how to placeerror
 messages via Jörn's formvalidationplug-in. I'm not sure I understand
 how it works. So far what appears to happen is that the plug-in itself
 adds a label tag with the class error and then the text of theerrorthat 
 I've specified in my code or the default if I've left one
 out.

 I know there's some documentation on this, and I continue to read it,
 but up to now I don't seem to be catching on to quickly. If someone
 had a very simple example of how to place theerrormessage anywhere I
 wanted that would be fantastic. I will of course continue to work on
 the problem myself, but any help would be greatly appreciated.

 Cheers!
 Chris


[jQuery] Re: validation plug-in and error placement -- need help

2008-02-25 Thread Chris Jordan


Jörn Zaefferer wrote:


Chris Jordan schrieb:

Just some clarification on what I'm trying to achieve. I'm looking at
the error container example for the validation plug-in and that's
darn close to what I want, but I was hoping for the error container to
be more like a modal dialog. Is there a way of placing these error
messages inside of a modal dialog?
  
If the modal dialog is the error container itself, the validation 
plugin could handle showing/hiding it.


Really tight integration into a modal dialog would most likely need 
some improvements in the validation plugin. You should recondisder 
actually trying to implement that, because it gets you quite close to 
alert-validation.


In any case it would help if you could show what you've got so far and 
describe in more details what you want to achieve.


Jörn


Hi Jörn,

Basically, what I didn't like was that I had a nice centered login 
screen and the errors appearing next to the elements where they did 
caused all of my elements to shift undesirably. It doesn't have to be in 
a modal (though I don't personally see what's wrong with that. What I'd 
really like to have is a message area that is always there and where the 
errors appear when they need to. Typically I handle this by 
incorporating a message container div which always takes up the space 
that a message would (so I always make sure my largest message will fit 
into it) and it is into that div that place all of my messages to the 
user. This is sort of like the status bar on a browser -- it's always 
there, and messages just appear when they need to -- and the display 
doesn't do any weird shifting about.


Does that make more sense? I don't feel like I'm explaining it very 
well. Right now, all I've done is left justify my whole login screen and 
let the plug-in work like it does so the shifting doesn't happen, and 
I've moved on to something else pending any response to this message.


Cheers!
Chris


[jQuery] Re: Problem with form validation (works in FF, but not in IE)

2008-02-24 Thread Chris Jordan

Thanks for the response! I'll let you know how it turned out.

On Feb 20, 10:41 pm, Macarrão [EMAIL PROTECTED] wrote:
 Hails! Well, I've been using this plugin and it works nice!

 I think you'd better give the attribute name the same value as the
 id attribute. I believe IE and Opera selects by name insted of id.

 On 20 fev, 22:58, ChrisJordan [EMAIL PROTECTED] wrote:

  Hi folks,

  This page http://seifactory.com/login.php works in FireFox without
  problem, but doesn't do anything in IE. Now, I'm only talking about
  validation here, the form doesn't actually *do* anything just yet. All I was
  trying to do was get the validation going.

  This is the first time I've attempted to use Jörn's validation plug-in, and
  I'm kinda getting the hang of it (or so I thought), but now this isn't
  working in IE so I'm all stumped. I'd like to figure this out before I try
  to work on learning anything else (like error message placement ... hints on
  that would be welcome too, though).

  Thanks heaps everyone,
 Chris

  --http://cjordan.us


[jQuery] Problem with form validation (works in FF, but not in IE)

2008-02-20 Thread Chris Jordan
Hi folks,

This page http://seifactory.com/login.php works in FireFox without
problem, but doesn't do anything in IE. Now, I'm only talking about
validation here, the form doesn't actually *do* anything just yet. All I was
trying to do was get the validation going.

This is the first time I've attempted to use Jörn's validation plug-in, and
I'm kinda getting the hang of it (or so I thought), but now this isn't
working in IE so I'm all stumped. I'd like to figure this out before I try
to work on learning anything else (like error message placement ... hints on
that would be welcome too, though).

Thanks heaps everyone,
Chris


-- 
http://cjordan.us


[jQuery] Re: OT: FCK editor now double spaces with enter key?

2008-02-13 Thread Chris Jordan
that's lame. enter should be a single line break. If I want a double line
break, I'll hit enter twice.

On Feb 13, 2008 1:29 AM, andrea varnier [EMAIL PROTECTED] wrote:


 On Feb 12, 8:32 pm, Andy Matthews [EMAIL PROTECTED] wrote:
  We've been using FCK editor for a while now. It used to create a single
  return when hitting the enter button. We recently upgraded to a newer
  version (2.5 I think) and now it creates a double space instead.

 shift + enter = single line break

 if you didn't know that :)




-- 
http://cjordan.us


[jQuery] Re: OT: FCK editor now double spaces with enter key?

2008-02-13 Thread Chris Jordan
Nice find. I'll bet that does it! :o)

On Feb 13, 2008 10:36 AM, tlphipps [EMAIL PROTECTED] wrote:


 I think I found the setting.  In the fckconfig.js file there are two
 lines:
 FCKConfig.EnterMode = 'p' ; // p | div | br
 FCKConfig.ShiftEnterMode = 'br' ;   // p | div | br


 Looks like if you change the first one to 'br' you'd be set.

 On Feb 13, 9:32 am, Andy Matthews [EMAIL PROTECTED] wrote:
  Right...
 
  You can force it to single space by hitting SHIFT + enter, but I'd like
 to
  know if there's a preference which can be changed to force it to revert
 to
  single spacing by default. This is changed in the new version of FCK.
 
  -Original Message-
  From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
 
  Behalf Of andrea varnier
  Sent: Wednesday, February 13, 2008 9:14 AM
  To: jQuery (English)
  Subject: [jQuery] Re: OT: FCK editor now double spaces with enter key?
 
  On 13 Feb, 16:03, Chris Jordan [EMAIL PROTECTED] wrote:
   that's lame.
 
  definitely.
  but I think it has something to do with editors like Dreamweaver. I
 remember
  using it once... is there a CTRL+Return combo or something?




-- 
http://cjordan.us


[jQuery] Re: Another jdMenu problem... IE specific...

2008-02-04 Thread Chris Jordan
Jonathan,

Thanks for the update! Sorry I didn't see it until now. I've been in the
hospital (just had gastric bypass surgery), and I'm finally at home
recovering. Again, thanks for the wonderful plug-in!

Chris

On Jan 31, 2008 11:01 AM, Jonathan Sharp [EMAIL PROTECTED] wrote:

 Hi Chris,

 Just wanted to give you a heads up, I've released jdMenu 1.4.0 at
 http://jdsharp.us/jQuery/plugins/jdMenu/1.4.0 (though I haven't posted
 notice of this yet) It's been updated to work with jQuery 1.2.2 and the
 latest dimensions plugin.

 Cheers,
 -Jonathan


 On 1/24/08, Chris Jordan [EMAIL PROTECTED] wrote:
 
  Sorry, I'm just now getting back to this guys (I was sick yesterday). I
  appreciate all the suggestions. I'll bet it's malformed markup. I don't
  create it though. This is an osCommerce shopping cart. I'll see if I can
  find where the HTML is getting messed up.
 
  Thanks heaps!
  Chris
 
  On Jan 21, 2008 7:02 PM, Karl Swedberg [EMAIL PROTECTED] wrote:
 
   Hi Chris,
  
   Sorry, I was looking in Firefox. I see now that the problem exists in
   IE only. It might have something to do with the fact that the page is
   running in quirks mode and that the markup is invalid. Try running it
   through an HTML validator ( e.g. 
   http://validator.w3.org/)http://validator.w3.org/%29.
   In particular, you have two extra DOCTYPE declarations throughout the 
   page.
   And if you want to stick with HTML 4.01 transitional, replace this ...
  
  
  
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
  
  
   with this ...
  
  
!DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
  http://www.w3.org/TR/html4/loose.dtd 
  
   If cleaning up the HTML doesn't help, we can look at some other stuff.
   In the meantime, I'll poke around the plugin code and the stylesheets a 
   bit
   to see how the positioning is being done.
  
  
  
  
   --Karl
   _
   Karl Swedberg
   www.englishrules.com
   www.learningjquery.com
  
  
  
  
  
On Jan 21, 2008, at 4:08 PM, Chris Jordan wrote:
  
   You said it was positioning correctly for you? What version of IE was
   that in? For me, in IE6 it shows up in the top left (0,0) of the view
   port... it's supposed to show just below the top-level menu choice.
  
   Also, I know there are broken images. Ignore those and look mostly at
   the ones that do have images. I'm still waiting on my graphic artist guy 
   to
   get me the rest of the images. I also don't see anywhere (unless I'm just
   missing it) where the sub-menus are being positioned. You can check out 
   all
   the css if you have the Web Developer extension for FF.
  
   Thanks again,
   Chris
  
   On Jan 21, 2008 1:01 PM, Chris Jordan [EMAIL PROTECTED]
   wrote:
  
going to lunch. I'd like to exchange emails with you about this.
I'll be back in about an hour or so. Thanks so much Karl.
   
Chris
   
   
On Jan 21, 2008 12:52 PM, Karl Swedberg  [EMAIL PROTECTED]
wrote:
   
 It looked to me like it was being positioned correctly. Also looks
 like you have a broken link to a rollover image for the top-level nav 
 items.
 I'm guessing that the sub-menus are using position:absolute for their
 positioning, so you'll need to have a parent element given 
 position:relative
 in order for the submenus to be positioned relative to those parent 
 elements
 rather than the body element.

 Hope that helps.



 --Karl
 _
 Karl Swedberg
 www.englishrules.com
 www.learningjquery.com




  On Jan 21, 2008, at 1:42 PM, Chris Jordan wrote:

 Hi folks.

 I'm having another problem with the jdMenu plug-in. In IE when I
 hover over the top-level menu the sub-menu appears in the absolute 
 top left
 of the view-port! Bah! I don't know what I've done wrong. I've used 
 jdMenu
 at another client of mine, and it works great in both FF and IE. This 
 time
 around however, I *am* customizing the css file quite a bit to better 
 suit
 my needs.

 The problem can be seen herehttp://seidal.com/dev/furniturehotspot/
 .

 This is causing me much aggravation, and more time at this one
 particular client that I should really be spending.

 I would *really* appreciate anyone's help on this problem. Of
 course, I'll keep working on finding a solution, but if someone knows 
 what
 I'm going through, or can offer suggestions, that'd be great.

 Thanks,

 Chris


 --
 http://cjordan.us




   
   
   
   
--
http://cjordan.us
  
  
  
  
   --
   http://cjordan.us
  
  
  
  
 
 
 
  --
  http://cjordan.us





-- 
http://cjordan.us


[jQuery] Re: Another jdMenu problem... IE specific...

2008-01-24 Thread Chris Jordan
Sorry, I'm just now getting back to this guys (I was sick yesterday). I
appreciate all the suggestions. I'll bet it's malformed markup. I don't
create it though. This is an osCommerce shopping cart. I'll see if I can
find where the HTML is getting messed up.

Thanks heaps!
Chris

On Jan 21, 2008 7:02 PM, Karl Swedberg [EMAIL PROTECTED] wrote:

 Hi Chris,
 Sorry, I was looking in Firefox. I see now that the problem exists in IE
 only. It might have something to do with the fact that the page is running
 in quirks mode and that the markup is invalid. Try running it through an
 HTML validator (e.g. http://validator.w3.org/)http://validator.w3.org/%29.
 In particular, you have two extra DOCTYPE declarations throughout the page.
 And if you want to stick with HTML 4.01 transitional, replace this ...

 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN

 with this ...

 !DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
http://www.w3.org/TR/html4/loose.dtd;

 If cleaning up the HTML doesn't help, we can look at some other stuff. In
 the meantime, I'll poke around the plugin code and the stylesheets a bit to
 see how the positioning is being done.


 --Karl
 _
 Karl Swedberg
 www.englishrules.com
 www.learningjquery.com



 On Jan 21, 2008, at 4:08 PM, Chris Jordan wrote:

 You said it was positioning correctly for you? What version of IE was that
 in? For me, in IE6 it shows up in the top left (0,0) of the view port...
 it's supposed to show just below the top-level menu choice.

 Also, I know there are broken images. Ignore those and look mostly at the
 ones that do have images. I'm still waiting on my graphic artist guy to get
 me the rest of the images. I also don't see anywhere (unless I'm just
 missing it) where the sub-menus are being positioned. You can check out all
 the css if you have the Web Developer extension for FF.

 Thanks again,
 Chris

 On Jan 21, 2008 1:01 PM, Chris Jordan [EMAIL PROTECTED] wrote:

  going to lunch. I'd like to exchange emails with you about this. I'll be
  back in about an hour or so. Thanks so much Karl.
 
  Chris
 
 
  On Jan 21, 2008 12:52 PM, Karl Swedberg  [EMAIL PROTECTED] wrote:
 
   It looked to me like it was being positioned correctly. Also looks
   like you have a broken link to a rollover image for the top-level nav 
   items.
   I'm guessing that the sub-menus are using position:absolute for their
   positioning, so you'll need to have a parent element given 
   position:relative
   in order for the submenus to be positioned relative to those parent 
   elements
   rather than the body element.
   Hope that helps.
  
  
   --Karl
   _
   Karl Swedberg
   www.englishrules.com
   www.learningjquery.com
  
  
  
   On Jan 21, 2008, at 1:42 PM, Chris Jordan wrote:
  
   Hi folks.
  
   I'm having another problem with the jdMenu plug-in. In IE when I hover
   over the top-level menu the sub-menu appears in the absolute top left of 
   the
   view-port! Bah! I don't know what I've done wrong. I've used jdMenu at
   another client of mine, and it works great in both FF and IE. This time
   around however, I *am* customizing the css file quite a bit to better suit
   my needs.
  
   The problem can be seen here http://seidal.com/dev/furniturehotspot/
   .
  
   This is causing me much aggravation, and more time at this one
   particular client that I should really be spending.
  
   I would *really* appreciate anyone's help on this problem. Of course,
   I'll keep working on finding a solution, but if someone knows what I'm 
   going
   through, or can offer suggestions, that'd be great.
  
   Thanks,
  
   Chris
  
  
   --
   http://cjordan.us
  
  
  
 
 
  --
  http://cjordan.us




 --
 http://cjordan.us





-- 
http://cjordan.us


[jQuery] Re: Another jdMenu problem... IE specific...

2008-01-24 Thread Chris Jordan
Karl,

I ran the site through the validator you linked to (thanks for that), but my
problem still remains. I should note that there are still 43 errors, but
they're things like No ALT specified and there is no attribute X

The errors that are bothering me most right now are:

   1. cannot generate system identifier for general entity osCsid
   2. general entity osCsid not defined and no default entity.
   3. reference to entity osCsid for which no system identifier could
   be generated.

I don't know how to fix these. osCommerce dynamically generates the code
that this is complaining about.

I notice now that I'm getting a javascript error in IE: Object does not
support this property or method unfortunately, as has been seen no such
error manifests itself in FF.

I've been given two hours to fix this, and I've only got an hour left. What
a pia...

Anyway, if anyone can help me out. I'd love the help. I'll of course keep
working on it from my end.

Thanks so much everyone,
Chris

On Jan 24, 2008 10:54 AM, Chris Jordan [EMAIL PROTECTED] wrote:

 Sorry, I'm just now getting back to this guys (I was sick yesterday). I
 appreciate all the suggestions. I'll bet it's malformed markup. I don't
 create it though. This is an osCommerce shopping cart. I'll see if I can
 find where the HTML is getting messed up.

 Thanks heaps!
 Chris


 On Jan 21, 2008 7:02 PM, Karl Swedberg [EMAIL PROTECTED] wrote:

  Hi Chris,
  Sorry, I was looking in Firefox. I see now that the problem exists in IE
  only. It might have something to do with the fact that the page is running
  in quirks mode and that the markup is invalid. Try running it through an
  HTML validator ( e.g. 
  http://validator.w3.org/)http://validator.w3.org/%29.
  In particular, you have two extra DOCTYPE declarations throughout the page.
  And if you want to stick with HTML 4.01 transitional, replace this ...
 
  !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
 
  with this ...
 
  !DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
 http://www.w3.org/TR/html4/loose.dtd 
 
  If cleaning up the HTML doesn't help, we can look at some other stuff.
  In the meantime, I'll poke around the plugin code and the stylesheets a bit
  to see how the positioning is being done.
 
 
  --Karl
  _
  Karl Swedberg
  www.englishrules.com
  www.learningjquery.com
 
 
 
  On Jan 21, 2008, at 4:08 PM, Chris Jordan wrote:
 
  You said it was positioning correctly for you? What version of IE was
  that in? For me, in IE6 it shows up in the top left (0,0) of the view
  port... it's supposed to show just below the top-level menu choice.
 
  Also, I know there are broken images. Ignore those and look mostly at
  the ones that do have images. I'm still waiting on my graphic artist guy to
  get me the rest of the images. I also don't see anywhere (unless I'm just
  missing it) where the sub-menus are being positioned. You can check out all
  the css if you have the Web Developer extension for FF.
 
  Thanks again,
  Chris
 
  On Jan 21, 2008 1:01 PM, Chris Jordan [EMAIL PROTECTED] wrote:
 
   going to lunch. I'd like to exchange emails with you about this. I'll
   be back in about an hour or so. Thanks so much Karl.
  
   Chris
  
  
   On Jan 21, 2008 12:52 PM, Karl Swedberg  [EMAIL PROTECTED]
   wrote:
  
It looked to me like it was being positioned correctly. Also looks
like you have a broken link to a rollover image for the top-level nav 
items.
I'm guessing that the sub-menus are using position:absolute for their
positioning, so you'll need to have a parent element given 
position:relative
in order for the submenus to be positioned relative to those parent 
elements
rather than the body element.
Hope that helps.
   
   
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
   
   
   
On Jan 21, 2008, at 1:42 PM, Chris Jordan wrote:
   
Hi folks.
   
I'm having another problem with the jdMenu plug-in. In IE when I
hover over the top-level menu the sub-menu appears in the absolute top 
left
of the view-port! Bah! I don't know what I've done wrong. I've used 
jdMenu
at another client of mine, and it works great in both FF and IE. This 
time
around however, I *am* customizing the css file quite a bit to better 
suit
my needs.
   
The problem can be seen herehttp://seidal.com/dev/furniturehotspot/
.
   
This is causing me much aggravation, and more time at this one
particular client that I should really be spending.
   
I would *really* appreciate anyone's help on this problem. Of
course, I'll keep working on finding a solution, but if someone knows 
what
I'm going through, or can offer suggestions, that'd be great.
   
Thanks,
   
Chris
   
   
--
http://cjordan.us
   
   
   
  
  
   --
   http://cjordan.us
 
 
 
 
  --
  http://cjordan.us
 
 
 


 --
 http

[jQuery] Re: $(window).scrollLeft is not a function ... help! :o(

2008-01-21 Thread Chris Jordan
Problem solved. I feel stupid. It was a typo in my path to the .js source
for the dimensions plug-in. Duh. :o/

Chris

On Jan 21, 2008 10:25 AM, Chris Jordan [EMAIL PROTECTED] wrote:

 Hi folks,

 I'm trying to use jdMenu for jQuery (which I have successfully used
 before), but I'm getting the following errors when trying to use it this
 time around (1.3.beta2).

 When using the unpacked version I get:

$(window).scrollLeft is not a function

 When using the packed version I get the following:

 missing ; before statement

 ... which then causes this error:

 $(ul.jd_menu).jdMenu is not a function

 Can anybody help? I really need this menu to work right now.

 Thanks so much,
 Chris

 --
 http://cjordan.us




-- 
http://cjordan.us


[jQuery] Another jdMenu problem... IE specific...

2008-01-21 Thread Chris Jordan
Hi folks.

I'm having another problem with the jdMenu plug-in. In IE when I hover over
the top-level menu the sub-menu appears in the absolute top left of the
view-port! Bah! I don't know what I've done wrong. I've used jdMenu at
another client of mine, and it works great in both FF and IE. This time
around however, I *am* customizing the css file quite a bit to better suit
my needs.

The problem can be seen here http://seidal.com/dev/furniturehotspot/.

This is causing me much aggravation, and more time at this one particular
client that I should really be spending.

I would *really* appreciate anyone's help on this problem. Of course, I'll
keep working on finding a solution, but if someone knows what I'm going
through, or can offer suggestions, that'd be great.

Thanks,

Chris


-- 
http://cjordan.us


[jQuery] Re: Another jdMenu problem... IE specific...

2008-01-21 Thread Chris Jordan
going to lunch. I'd like to exchange emails with you about this. I'll be
back in about an hour or so. Thanks so much Karl.

Chris

On Jan 21, 2008 12:52 PM, Karl Swedberg [EMAIL PROTECTED] wrote:

 It looked to me like it was being positioned correctly. Also looks like
 you have a broken link to a rollover image for the top-level nav items. I'm
 guessing that the sub-menus are using position:absolute for their
 positioning, so you'll need to have a parent element given position:relative
 in order for the submenus to be positioned relative to those parent elements
 rather than the body element.
 Hope that helps.


 --Karl
 _
 Karl Swedberg
 www.englishrules.com
 www.learningjquery.com



 On Jan 21, 2008, at 1:42 PM, Chris Jordan wrote:

 Hi folks.

 I'm having another problem with the jdMenu plug-in. In IE when I hover
 over the top-level menu the sub-menu appears in the absolute top left of the
 view-port! Bah! I don't know what I've done wrong. I've used jdMenu at
 another client of mine, and it works great in both FF and IE. This time
 around however, I *am* customizing the css file quite a bit to better suit
 my needs.

 The problem can be seen here http://seidal.com/dev/furniturehotspot/.

 This is causing me much aggravation, and more time at this one particular
 client that I should really be spending.

 I would *really* appreciate anyone's help on this problem. Of course, I'll
 keep working on finding a solution, but if someone knows what I'm going
 through, or can offer suggestions, that'd be great.

 Thanks,

 Chris


 --
 http://cjordan.us





-- 
http://cjordan.us


[jQuery] Re: Another jdMenu problem... IE specific...

2008-01-21 Thread Chris Jordan
You said it was positioning correctly for you? What version of IE was that
in? For me, in IE6 it shows up in the top left (0,0) of the view port...
it's supposed to show just below the top-level menu choice.

Also, I know there are broken images. Ignore those and look mostly at the
ones that do have images. I'm still waiting on my graphic artist guy to get
me the rest of the images. I also don't see anywhere (unless I'm just
missing it) where the sub-menus are being positioned. You can check out all
the css if you have the Web Developer extension for FF.

Thanks again,
Chris

On Jan 21, 2008 1:01 PM, Chris Jordan [EMAIL PROTECTED] wrote:

 going to lunch. I'd like to exchange emails with you about this. I'll be
 back in about an hour or so. Thanks so much Karl.

 Chris


 On Jan 21, 2008 12:52 PM, Karl Swedberg  [EMAIL PROTECTED] wrote:

  It looked to me like it was being positioned correctly. Also looks like
  you have a broken link to a rollover image for the top-level nav items. I'm
  guessing that the sub-menus are using position:absolute for their
  positioning, so you'll need to have a parent element given position:relative
  in order for the submenus to be positioned relative to those parent elements
  rather than the body element.
  Hope that helps.
 
 
  --Karl
  _
  Karl Swedberg
  www.englishrules.com
  www.learningjquery.com
 
 
 
  On Jan 21, 2008, at 1:42 PM, Chris Jordan wrote:
 
  Hi folks.
 
  I'm having another problem with the jdMenu plug-in. In IE when I hover
  over the top-level menu the sub-menu appears in the absolute top left of the
  view-port! Bah! I don't know what I've done wrong. I've used jdMenu at
  another client of mine, and it works great in both FF and IE. This time
  around however, I *am* customizing the css file quite a bit to better suit
  my needs.
 
  The problem can be seen here http://seidal.com/dev/furniturehotspot/.
 
  This is causing me much aggravation, and more time at this one
  particular client that I should really be spending.
 
  I would *really* appreciate anyone's help on this problem. Of course,
  I'll keep working on finding a solution, but if someone knows what I'm going
  through, or can offer suggestions, that'd be great.
 
  Thanks,
 
  Chris
 
 
  --
  http://cjordan.us
 
 
 


 --
 http://cjordan.us




-- 
http://cjordan.us


[jQuery] Re: Another jdMenu problem... IE specific...

2008-01-21 Thread Chris Jordan
Thanks Jack! I'm trying to fit troubleshooting this IE problem in with
working on other parts of this particular menu project, and I may not get a
chance to try out your suggestion tonight, but I appreciate your effort, and
would love to know if you find anything. Also, when I get a chance to try
out your suggestion, I'll report back my results.

Thanks,
Chris

On Jan 21, 2008 3:44 PM, Jack Killpatrick [EMAIL PROTECTED] wrote:

  Chris, I don't have time to dig into looking at your code right now, but
 I had a similar problem with jdMenu when the top level menu item did not
 have an A tag inside of it, due to how jdMenu handled either event binding
 or event bubbling. If I remember correctly, IE threw because a property was
 not present that jdMenu expected to have been bound to.

 I can rummage through our old code later tonight and look for diffs if
 that doesn't get you anywhere.

 - Jack


 Chris Jordan wrote:

 Hi folks.

 I'm having another problem with the jdMenu plug-in. In IE when I hover
 over the top-level menu the sub-menu appears in the absolute top left of the
 view-port! Bah! I don't know what I've done wrong. I've used jdMenu at
 another client of mine, and it works great in both FF and IE. This time
 around however, I *am* customizing the css file quite a bit to better suit
 my needs.

 The problem can be seen here http://seidal.com/dev/furniturehotspot/.

 This is causing me much aggravation, and more time at this one particular
 client that I should really be spending.

 I would *really* appreciate anyone's help on this problem. Of course, I'll
 keep working on finding a solution, but if someone knows what I'm going
 through, or can offer suggestions, that'd be great.

 Thanks,

 Chris


 --
 http://cjordan.us





-- 
http://cjordan.us


[jQuery] Re: Programmatically controlling cut and paste

2007-12-27 Thread Chris Jordan
Oh! Thanks for that little tidbit Yehuda... where can I find more
information on doing that? I probably won't do it, but for future reference
it'd be nice to know. :o)

Chris

On Dec 26, 2007 11:51 AM, Yehuda Katz [EMAIL PROTECTED] wrote:

 If you're only using IE, you're good to go. An alternative that works
 cross-browser is to hijack Flash's access to the clipboard via
 ExternalInterface.
 -- Yehuda

 On Dec 26, 2007, at 9:29 AM, Chris Jordan wrote:

 Okay, I think I just found it. Before I posted this question I was
 searching google for javascript programmatic cut and paste (and other
 variations on that theme), but getting no where. Just a bit ago it occurred
 to me that was I was really trying to do was get access to the clipboard.
 Duh. A search for javascript clipboard access returned what I was looking
 for -- window.clipboardData.setData();

 Before folks start writing to tell me that this is a security risk, keep
 in mind that a) my app is for company intranet use only and not available to
 the general public and b) I'm not using the control for evil... only for
 good ;o) I won't be storing the information for any long term use, or
 tracking what IP had what in their clipboard... nothing like that. I'm one
 of the good guys *show's everyone his white hat*

 Also, I realize that the method I mentioned above only works for IE which
 is okay for me because when users launch this app they don't get a browser
 choice. It's automattically using IE 6.

 All that said, comments are still welcomed. :o)

 Thanks,
 Chris


 On 12/26/07, Chris Jordan [EMAIL PROTECTED] wrote:
 
  Is there a way to use jQuery (or javascript in general) to
  programmatically controll copy and paste functions? I'd like to replace the
  right-click context menu and *only* offer the ability to cut and paste. I
  was looking at using Chris Domigan's ContextMenu plug-in to capture the
  right-click and replace the stock menu with my own, but then it occurred to
  me that I don't know how I would control the copying and pasting ability.
 
  Thanks,
  Chris
 
  --
  http://cjordan.us
 



 --
 http://cjordan.us





-- 
http://cjordan.us


[jQuery] Programmatically controlling cut and paste

2007-12-26 Thread Chris Jordan
Is there a way to use jQuery (or javascript in general) to programmatically
controll copy and paste functions? I'd like to replace the right-click
context menu and *only* offer the ability to cut and paste. I was looking at
using Chris Domigan's ContextMenu plug-in to capture the right-click and
replace the stock menu with my own, but then it occurred to me that I don't
know how I would control the copying and pasting ability.

Thanks,
Chris

-- 
http://cjordan.us


[jQuery] Re: Programmatically controlling cut and paste

2007-12-26 Thread Chris Jordan
Okay, I think I just found it. Before I posted this question I was searching
google for javascript programmatic cut and paste (and other variations on
that theme), but getting no where. Just a bit ago it occurred to me that was
I was really trying to do was get access to the clipboard. Duh. A search for
javascript clipboard access returned what I was looking for --
window.clipboardData.setData();

Before folks start writing to tell me that this is a security risk, keep in
mind that a) my app is for company intranet use only and not available to
the general public and b) I'm not using the control for evil... only for
good ;o) I won't be storing the information for any long term use, or
tracking what IP had what in their clipboard... nothing like that. I'm one
of the good guys *show's everyone his white hat*

Also, I realize that the method I mentioned above only works for IE which is
okay for me because when users launch this app they don't get a browser
choice. It's automattically using IE 6.

All that said, comments are still welcomed. :o)

Thanks,
Chris


On 12/26/07, Chris Jordan [EMAIL PROTECTED] wrote:

 Is there a way to use jQuery (or javascript in general) to
 programmatically controll copy and paste functions? I'd like to replace the
 right-click context menu and *only* offer the ability to cut and paste. I
 was looking at using Chris Domigan's ContextMenu plug-in to capture the
 right-click and replace the stock menu with my own, but then it occurred to
 me that I don't know how I would control the copying and pasting ability.

 Thanks,
 Chris

 --
 http://cjordan.us




-- 
http://cjordan.us


[jQuery] Re: jChess

2007-12-07 Thread Chris Jordan
Sweet! Thanks for the update. :o)

Chris

On Dec 7, 2007 6:38 AM, aldur [EMAIL PROTECTED] wrote:


 I'm in the process of setting up my web site again.

 it will be on the http://www.bloodmoongames.com site when the new
 version goes up.

 I've had to move hosting companies.




-- 
http://cjordan.us


[jQuery] Re: jChess

2007-12-06 Thread Chris Jordan
aldur,

Let's see a demo, dude!  :o)

-Chris

On Dec 6, 2007 9:05 AM, aldur [EMAIL PROTECTED] wrote:


 html
 head
 script src=jquery.js/script
 script src=jQuery.chess.js/script
 script

 $(document).ready(
function(){
$(#chessboard).chess();
}
 );
 /script
 style
table.board{border:1px solid black}
table.board td{border:1px solid black;display:table-cell}
table.board td.legend{background-color:white;border:1px solid
 white;text-align:center;}
table.board td.white{border:1px solid black;background-color:#f66}
table.board td.black{border:1px solid black;background-color:#666}
table.board td.black.highlight, table.board td.white.highlight
 {border:1px solid black;background-color:lightblue}
table.board td.black.incheck, table.board td.white.incheck {border:
 1px solid black;background-color:blue}
div.piece {display:none}
td.square {border:1px solid black;text-align:center;}
td.blackMove, td.whiteMove {vertical-align:top}
ul#gameoptions li {border:1px solid #006;background-
 color:#00a;color:#fff;margin:5px;padding:5px}
ul#gameoptions li:hover {border:1px solid #006;background-
 color:#00f;color:#fff}
 /style
 /head
 body

 div id='chessboard'/div
 /body
 /html




-- 
http://cjordan.us


[jQuery] Re: new jARIA plugin

2007-12-03 Thread Chris Jordan
This looks cool. I have to admit that to this point, I've not been required
to make sure that things are accessible by screen readers and the like. It
looks like if I'm ever required to do so, that this plug-in will make things
*much* easier! Nice work. :o)

Chris

On Dec 3, 2007 1:03 PM, Chris [EMAIL PROTECTED] wrote:


 On Dec 3, 5:31 am, Richard D. Worth [EMAIL PROTECTED] wrote:

  This looks really good. Especially, thanks for gathering a bunch of
 summary
  information in your well-written docs.

 Thank you, and you're welcome.

  1. I prefer acronyms exceeding 3 chars to be not all caps. AriaRole,
  AriaState, is a lot easier to read and type.

 As in XMLHttpRequest? I agree, and changed the method names. To keep
 with the convention of methods starting with lowercase letters, I've
 changed them to ariaState() and ariaRole(), etc.

  2. When I first saw hasARIARole and hasARIAState, I assumed it would
 return
  a boolean (has- and is- suggest boolean to me). Since it's returning a
 set
  of elements, perhaps something like AriaRoleFilter, AriaStateFilter
 would be
  more jQuery-like.

 They are now ariaRoleFilter() and ariaStateFilter(), respectively.

 I've also added a custom ariaready event that gets fired when the
 ARIA information in the document has been parsed.

 Thanks again for the feedback.

 Regards,

 Chris

 email: mistermuckle *at* gmail *dot* com




-- 
http://cjordan.us


[jQuery] Re: DateJS: Robust Date manipulation library

2007-11-28 Thread Chris Jordan
that's pretty dang cool. I like the syntactic sugar. I was amazed that for
all it's coolness when I entered tomorrow at 8:15PM that it understood
that as tomorrow at 8:15AM... it ignored my AM/PM designation! It only works
off of a 24 hour clock. That's a little disappointing, but not so much as
it's file size.

Still it's pretty sweet. :o)

Chris

On Nov 28, 2007 2:03 PM, Jörn Zaefferer [EMAIL PROTECTED] wrote:


 Erik Beeson schrieb:
  Hello all,
 
  This came through my feed reader this morning, and I thought it looked
  like the kind of thing jQuerians might enjoy:
 
  http://www.datejs.com/
 
  It's a Date library with lots of parsing capabilities and jQuery style
  chainable syntactic sugar. It's ~25k minified (!), so it's probably
  not for everyone, but I can imagine a lot of places where something
  like this would be very helpful.
 Thats good stuff. I like how it solves only Date related problems, would
 be nice if libraries could use that as a base.

 Though for that to happen its currently too big. Maybe they could split
 it into modules...

 Jörn




-- 
http://cjordan.us


[jQuery] Re: SITE: http://www.foodnetwork.com/

2007-11-06 Thread Chris Jordan

That's just got to give John and the rest of the jQuery core crew the
warm fuzzies, you know? It would if I were in their shoes! :o)

Chris

On Nov 6, 2007 7:28 PM, Andy Matthews [EMAIL PROTECTED] wrote:

 Don't know if this has already been posted or not, but it appears that
 FoodTV giant FoodNetwork.com is using jQuery (1.1.4):

 http://www.foodnetwork.com/

 We're taking over people...we'll soon be reaching critical mass where
 businesses will be LOOKING for people who know jQuery!

 hip hip hooray.


 andy





-- 
http://cjordan.us


[jQuery] Re: I just hate the way this mailing list handles grouping messages...

2007-10-30 Thread Chris Jordan
The way Gmail view emails as conversations really works for me. There may be
100 posts on a particular thread, but it only shows up as one line in my
inbox. I have an account on a Zimbra server that's also able to view the
inbox either as a list of individual emails or as conversations. I thought
outlook could do that too (well, full blown outlook, not express).

-Chris

On 10/30/07, Rick Faircloth [EMAIL PROTECTED] wrote:


 Thanks for the tip, Bil...

 I'll check out the header!

 (But if that is the problem, wouldn't it affect other lists?)

 Rick


  -Original Message-
  From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Bil Corry
  Sent: Tuesday, October 30, 2007 2:31 PM
  To: jquery-en@googlegroups.com
  Subject: [jQuery] Re: I just hate the way this mailing list handles
 grouping messages...
 
 
  Rick Faircloth wrote on 10/30/2007 12:04 PM:
   Can this be done differently?  This has to be a mailing list setting
 or
   something, because all my other mailing lists are able to have
   follow-up messages containing Re: automatically grouped with
   the original.
 
  I don't use Outlook, but threading works fine for me using Thunderbird
 on Windows XP for this
  list.
 
  One thought, choose one of the replies from this list and view the
 headers for it -- does it
  have the In-Reply-To header?  If not, then your SMTP server (or email
 gateway) is stripping
  that header out, which is used for threading.
 
 
  - Bil
 






-- 
http://cjordan.us


[jQuery] Re: noob: table row level link and hover

2007-10-20 Thread Chris Jordan
crybaby,

Given the following markup:

table border=1
tr link=site.com/tutorial/1tdRow 1 Cell 1/tdtdRow 1 Cell
2/td/tr
tr link=site.com/tutorial/1tdRow 2 Cell 1/tdtdRow 2 Cell
2/td/tr
/table

you could do something like this:

$(function(){
$(tr[link]).bind(click, function(){
var link = $(this).attr(link);
window.location.href = link;
});
});

In case you hadn't see this before, the
$(function(){
   // put all your jQuery goodness here.
});

bit of the code is short hand for

$(document).ready(function() {
// put all your jQuery goodness in here.
});

I hope this helps. If not, ping us back and keep askin' :o)

Cheers
Chris


On 10/20/07, crybaby [EMAIL PROTECTED] wrote:


 I need to have each table rows point to different link.  I am looking
 at table striping and how hover works in 15daysofjquery.com.

 http://15daysofjquery.com/table-striping-made-easy/5/

 I need to make the whole table row clickable and should take the user
 to a different link on the site.
 How do I do this in jquery?

 For example table is as follows:
 table border=1
 trtdRow 1 Cell 1/tdtdRow 1 Cell 2/td/tr
 trtdRow 2 Cell 1/tdtdRow 2 Cell 2/td/tr
 /table

 Row1 link: site.com/tutorial/1
 Row2 link: site.com/tutorial/2 and so on.




-- 
http://cjordan.us


[jQuery] Re: noob: table row level link and hover

2007-10-20 Thread Chris Jordan
I just noticed Glen's reply and looked at that example. It's almost
identical to what i was suggesting with a couple of minor differences that I
thought I'd point out.

His example:

var newURL;
$(td).click(function(){
newURL = $(this).parents(tr).attr(goto);
window.location.href = newURL; alert(newURL);
});

the click event is being bound to each td. While there's nothing
particularly wrong with that it's not really necessary. Just bind the click
event to the tr. That's where you wanted it anyway wasn't it? The only time
I really bind click events to td tags is when it's possible that clicking on
one td will do one thing, while clicking on a different td (in the same row)
will do something else.

Also, the code I provided does less work. The selector I chose:
$(tr[link])
... tells jQuery to look at only tr tags, and then return only those that
have an expando called link. While the other example looks at every single
td in the DOM and tries to apply a click to it based on the parent's
expando.

I should also point out that I should probably have var'd my link variable
outside of the function just as a matter of form.

The last difference I want to point out is the use of the .click() method
vs. the .bind() method. Both work just fine. I *think* that the .click()
method is essentially a shortcut for the .bind() method. I'm not sure which
is preferred or better. It probably comes down to a matter of style.
Someone please feel free to correct me if I'm wrong.

Cheers,
Chris

On 10/20/07, crybaby [EMAIL PROTECTED] wrote:


 I need to have each table rows point to different link.  I am looking
 at table striping and how hover works in 15daysofjquery.com.

 http://15daysofjquery.com/table-striping-made-easy/5/

 I need to make the whole table row clickable and should take the user
 to a different link on the site.
 How do I do this in jquery?

 For example table is as follows:
 table border=1
 trtdRow 1 Cell 1/tdtdRow 1 Cell 2/td/tr
 trtdRow 2 Cell 1/tdtdRow 2 Cell 2/td/tr
 /table

 Row1 link: site.com/tutorial/1
 Row2 link: site.com/tutorial/2 and so on.




-- 
http://cjordan.us


[jQuery] Re: AJAX and dynamically created dropdowns

2007-10-19 Thread Chris Jordan
Yaz,

View Source will never show you dynamically generated content. Download the
FireFox extension: View Source
Charthttps://addons.mozilla.org/en-US/firefox/addon/655.
It's quite handy, and shows you dynamically generated content. It's often
helped me to figure out problems where I really need to know what the
generated markup looks like.

Cheers,
Chris

On 10/19/07, Yaz [EMAIL PROTECTED] wrote:


 With the select plugin I get the same results.
 Added the form tag. Still no results.

 Btw, I noticed that even though in Firefox the dropdown does get
 populated, at view source there is no list of schools

 Thanks for the suggestion guys.

 -yaz

 On Oct 19, 2:31 pm, Jack Killpatrick [EMAIL PROTECTED] wrote:
  FWIW, I've never had any problems with id and name being the same on
  controls in IE. I don't see a form tag on the page, maybe that's the
  issue?
 
  You might also want to try this:
 
  http://www.texotela.co.uk/code/jquery/select/
 
  - Jack
 
  Chris Jordan wrote:
   Could it be because you're name and id are identical?
 
   select name=SchoolID id=SchoolID
   /select
 
   Perhaps IE doesn't like this?
 
   Just a guess.
 
   Chris
 
   On 10/19/07, *Yaz* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 wrote:
 
   Hello everyone,
 
   I have a script that basically just reads some data from an xml
 file,
   then the data gets loaded into a select dropdown, by dynamically
   creating option tags.
 
   Here's the working sample:
  http://yazmedia.com/sandbox/
 
   View source for the code. XML:
 http://yazmedia.com/sandbox/data.html
 
   It works fine in Firefox, but in IE 7 or 6 it doesn't. I tried
   using a
   function addOption() that I found online, to see if at least I
 was
   doing something wrong in my code, but still neither option works.
 
   Anything that could shed a little light into this would be much
   appreciated.
 
   -yaz
 
   --
  http://cjordan.us




-- 
http://cjordan.us


[jQuery] AjaxCFC + jQuery tutorial: part 2

2007-10-18 Thread Chris Jordan
I realize that this is way late in coming, but I've finally put together
part two of the AjaxCFC + jQuery tutorial. I feel seriously guilty about not
getting it out before now, so I hope anyone who was interested in seeing it
still is, will forgive my lateness in getting it published, and will find it
useful and informative.

Cheers,
Chris

-- 
http://cjordan.us


[jQuery] Re: Why people love the jQuery JavaScript library

2007-10-17 Thread Chris Jordan
Very cool. Thanks for the link Rey! :o)

Chris

On 10/17/07, Rey Bango [EMAIL PROTECTED] wrote:


 Read Ben Nadel's posting title jQuery And The Anticipation Of
 Greatness (http://www.bennadel.com/index.cfm?dax=blog:997.view)

 Rey...




-- 
http://cjordan.us


[jQuery] Re: creating drop down menus with JQuery?

2007-10-15 Thread Chris Jordan
check out jdMenu http://jdsharp.us/jQuery/plugins/jdMenu/. It's pretty
cool.

Chris


On 10/15/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


 Hi,

 Is there a plug-in that allows for menu creatio in JQuery?
 Specifically, I'm looking for something where when you roll over an
 arrow graphic, a menu will pop up beneath it.  I do not need submenus
 to pull out over individual menu items.

 Thanks for any advice, - Dave




-- 
http://cjordan.us


[jQuery] Re: Select box show/hide

2007-10-08 Thread Chris Jordan
bombaru,

I had just helped another user with almost this same question. I'm lazy, so
check out this short
threadhttp://groups.google.com/group/jquery-en/browse_thread/thread/61f29abca67a866c/075832c811ad0ee3#075832c811ad0ee3
.

He was doing things on a click, but you could do them on  the change event.
I've not used this event in jQuery so I'm making an assumption that it's
covered. Why wouldn't it be, right?

so in the code in that thread I do something like:

$(.someClass).bind(click, function(){
 // function goes here...
});

you would do something like:

$(#mySelectBoxElement).bind(change, function(){
 // function goes here...
});

or I think you could do:
$(#mySelectBoxElement).change(function(){
 // function goes here...
});

I'm not sure which is the preferable syntax. I think it's a matter of style.
I tend to use the bind function.

I hope this helps.

Cheers,
Chris


On 10/8/07, bombaru [EMAIL PROTECTED] wrote:


 Does anyone have any examples of how I could use a select box to show/
 hide different divs on a page.  To take it a level further, I would
 also like the same behavior to work if images are clicked.

 A little background:  I'm tring to build a payment options page and
 have a list of payment icons (Visa, MC, AmEx, etc) as well as a select
 box that lists the options.  The page would have all the forms in
 their own DIVs with an ititial value set to hide();.  clicking on an
 image would result in showing the appropriate DIV for that option as
 well as changing the select box to alert the customer of their
 choice.  Using the select box would have the same behavior but no need
 to highlight the image.  Does this make any sense?

 I've been messing around with this for a while and can not seem to get
 anything to work.  I'd appreciate any help you might be able to offer
 me.  Here's an example of the page:

 h1Payment Methods/h1
 pConfused about payment types? a href=#Learn more about your
 payment options here./a/p
 form
 select
 option id=value1Option 1/option
 option id=value2Option 2/option
 option id=value3Option 3/option
 option id=value4Option 4/option
 option id=value5Option 5/option
 option id=value6Option 6/option
 option id=value7Option 7/option
   /select
 /form
 div class=option id=option-1Option 1/div
 div class=option id=option-2Option 2/div
 div class=option id=option-3Option 3/div
 div class=option id=option-4Option 4/div
 div class=option id=option-5Option 5/div
 div class=option id=option-6Option 6/div
 div class=option id=option-7Option 7/div

 script type=text/javascript
 $(document).ready(function() {
 // (hide the divs on initial view)
 $('#option-1').hide();
 $('#option-2').hide();
 $('#option-3').hide();
 $('#option-4').hide();
 $('#option-5').hide();
 $('#option-6').hide();
 $('#option-7').hide();

 // (need help figuring out how to trigger the show)

 });
 /script

 Thanks for your help.




-- 
http://cjordan.us


[jQuery] Re: Select box show/hide

2007-10-08 Thread Chris Jordan
Also, I just noticed this code:
$(document).ready(function() {
 // (hide the divs on initial view)
 $('#option-1').hide();
 $('#option-2').hide();
 $('#option-3').hide();
 $('#option-4').hide();
 $('#option-5').hide();
 $('#option-6').hide();
 $('#option-7').hide();

 // (need help figuring out how to trigger the show)

});

you could simplify that code like this:
$(div[id^='option']).hide();

This says, get me all the elements of type div that have the attribute 'id'
that starts with 'option'.

Seven lines to one line! Isn't that cool!?

Have fun!

Chris

On 10/8/07, Chris Jordan [EMAIL PROTECTED] wrote:

 bombaru,

 I had just helped another user with almost this same question. I'm lazy,
 so check out this short 
 threadhttp://groups.google.com/group/jquery-en/browse_thread/thread/61f29abca67a866c/075832c811ad0ee3#075832c811ad0ee3
 .

 He was doing things on a click, but you could do them on  the change
 event. I've not used this event in jQuery so I'm making an assumption that
 it's covered. Why wouldn't it be, right?

 so in the code in that thread I do something like:

 $(.someClass).bind(click, function(){
  // function goes here...
 });

 you would do something like:

 $(#mySelectBoxElement).bind(change, function(){
  // function goes here...
 });

 or I think you could do:
 $(#mySelectBoxElement).change(function(){
  // function goes here...
 });

 I'm not sure which is the preferable syntax. I think it's a matter of
 style. I tend to use the bind function.

 I hope this helps.

 Cheers,
 Chris


 On 10/8/07, bombaru [EMAIL PROTECTED] wrote:
 
 
  Does anyone have any examples of how I could use a select box to show/
  hide different divs on a page.  To take it a level further, I would
  also like the same behavior to work if images are clicked.
 
  A little background:  I'm tring to build a payment options page and
  have a list of payment icons (Visa, MC, AmEx, etc) as well as a select
  box that lists the options.  The page would have all the forms in
  their own DIVs with an ititial value set to hide();.  clicking on an
  image would result in showing the appropriate DIV for that option as
  well as changing the select box to alert the customer of their
  choice.  Using the select box would have the same behavior but no need
  to highlight the image.  Does this make any sense?
 
  I've been messing around with this for a while and can not seem to get
  anything to work.  I'd appreciate any help you might be able to offer
  me.  Here's an example of the page:
 
  h1Payment Methods/h1
  pConfused about payment types? a href=#Learn more about your
  payment options here./a/p
  form
  select
  option id=value1Option 1/option
  option id=value2Option 2/option
  option id=value3Option 3/option
  option id=value4Option 4/option
  option id=value5Option 5/option
  option id=value6Option 6/option
  option id=value7Option 7/option
/select
  /form
  div class=option id=option-1Option 1/div
  div class=option id=option-2Option 2/div
  div class=option id=option-3Option 3/div
  div class=option id=option-4Option 4/div
  div class=option id=option-5Option 5/div
  div class=option id=option-6Option 6/div
  div class=option id=option-7Option 7/div
 
  script type=text/javascript
  $(document).ready(function() {
  // (hide the divs on initial view)
  $('#option-1').hide();
  $('#option-2').hide();
  $('#option-3').hide();
  $('#option-4').hide();
  $('#option-5').hide();
  $('#option-6').hide();
  $('#option-7').hide();
 
  // (need help figuring out how to trigger the show)
 
  });
  /script
 
  Thanks for your help.
 
 


 --
 http://cjordan.us




-- 
http://cjordan.us


[jQuery] Re: Select box show/hide

2007-10-08 Thread Chris Jordan
Karl, I was thinking that the ids seemed unnecessary too, but then I thought
that maybe he'd want to show only a subset of the items rather than all or
nothing.

Chris

On 10/8/07, Karl Swedberg [EMAIL PROTECTED] wrote:

 Here is one way you could do it, based on the index of the options and
 divs:

   $(document).ready(function() {
 var $optionDivs = $('div[id^=option]').hide();
 $('select').change(function() {
   var i = $('option', this).index( $(':selected')[0]);
   $optionDivs.hide().eq(i).show();
 });
   });

 tested successfully in FF 2.0.0.7

 The IDs on those divs seem superfluous. You could do the same thing with a
 common class:
 $('div.options').hide(); // etc.
 Or you could wrap all of those divs in another div with an id of
 options:
 $('#options  div').hide() // etc.

 Hope that helps.

 --Karl
 _
 Karl Swedberg
 www.englishrules.com
 www.learningjquery.com



 On Oct 8, 2007, at 4:23 PM, Chris Jordan wrote:

 Also, I just noticed this code:
 $(document).ready(function() {
  // (hide the divs on initial view)
  $('#option-1').hide();
  $('#option-2').hide();
  $('#option-3').hide();
  $('#option-4').hide();
  $('#option-5').hide();
  $('#option-6').hide();
  $('#option-7').hide();

  // (need help figuring out how to trigger the show)

 });

 you could simplify that code like this:
 $(div[id^='option']).hide();

 This says, get me all the elements of type div that have the attribute
 'id' that starts with 'option'.

 Seven lines to one line! Isn't that cool!?

 Have fun!

 Chris

 On 10/8/07, Chris Jordan [EMAIL PROTECTED] wrote:
 
  bombaru,
 
  I had just helped another user with almost this same question. I'm lazy,
  so check out this short 
  threadhttp://groups.google.com/group/jquery-en/browse_thread/thread/61f29abca67a866c/075832c811ad0ee3#075832c811ad0ee3
  .
 
  He was doing things on a click, but you could do them on  the change
  event. I've not used this event in jQuery so I'm making an assumption that
  it's covered. Why wouldn't it be, right?
 
  so in the code in that thread I do something like:
 
  $(.someClass).bind(click, function(){
   // function goes here...
  });
 
  you would do something like:
 
  $(#mySelectBoxElement).bind(change, function(){
   // function goes here...
  });
 
  or I think you could do:
  $(#mySelectBoxElement).change(function(){
   // function goes here...
  });
 
  I'm not sure which is the preferable syntax. I think it's a matter of
  style. I tend to use the bind function.
 
  I hope this helps.
 
  Cheers,
  Chris
 
 
  On 10/8/07, bombaru [EMAIL PROTECTED] wrote:
  
  
   Does anyone have any examples of how I could use a select box to show/
   hide different divs on a page.  To take it a level further, I would
   also like the same behavior to work if images are clicked.
  
   A little background:  I'm tring to build a payment options page and
   have a list of payment icons (Visa, MC, AmEx, etc) as well as a select
   box that lists the options.  The page would have all the forms in
   their own DIVs with an ititial value set to hide();.  clicking on an
   image would result in showing the appropriate DIV for that option as
   well as changing the select box to alert the customer of their
   choice.  Using the select box would have the same behavior but no need
   to highlight the image.  Does this make any sense?
  
   I've been messing around with this for a while and can not seem to get
  
   anything to work.  I'd appreciate any help you might be able to offer
   me.  Here's an example of the page:
  
   h1Payment Methods/h1
   pConfused about payment types? a href=#Learn more about your
   payment options here./a/p
   form
   select
   option id=value1Option 1/option
   option id=value2Option 2/option
   option id=value3Option 3/option
   option id=value4Option 4/option
   option id=value5Option 5/option
   option id=value6Option 6/option
   option id=value7Option 7/option
 /select
   /form
   div class=option id=option-1Option 1/div
   div class=option id=option-2Option 2/div
   div class=option id=option-3Option 3/div
   div class=option id=option-4Option 4/div
   div class=option id=option-5Option 5/div
   div class=option id=option-6Option 6/div
   div class=option id=option-7Option 7/div
  
   script type=text/javascript
   $(document).ready(function() {
   // (hide the divs on initial view)
   $('#option-1').hide();
   $('#option-2').hide();
   $('#option-3').hide();
   $('#option-4').hide();
   $('#option-5').hide();
   $('#option-6').hide();
   $('#option-7').hide();
  
   // (need help figuring out how to trigger the show)
  
   });
   /script
  
   Thanks for your help.
  
  
 
 
  --
  http://cjordan.us




 --
 http://cjordan.us





-- 
http://cjordan.us


[jQuery] Re: Does JQuery 1.2 solve the thickbox positioning problem when scrolling?

2007-10-01 Thread Chris Jordan

I'm having this same problem. I have a very long list of items that
are each clickable. When the user clicks on one it pops up a thickbox
that allows the user to edit that item. However, when the user clicks
on items far down in the list, they appear to get no thickbox. After a
little investigation, I find that the thickbox did indeed show up,
just off screen! Ack!

How can I fix this?

I'll continue investigating this, but if anyone has the answer right
off, I could really use it.

Thanks,
Chris

On Sep 21, 10:29 am, WebolizeR [EMAIL PROTECTED] wrote:
 Same problem in here, I have been playing with CSS ofthickboxbut
 nothing for now... :(

 On 11 Eylül, 17:02, Angelo Zanetti [EMAIL PROTECTED] wrote:

  Will do but dont have the time now.

  If I do will post the response and let you guys know.

  Thanks

  Alexandre Plennevaux wrote:
   Why not testing it yourself and letting us know of your conclusions?

   -Original Message-
   From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
   Behalf Of Angelo Zanetti
   Sent: mardi 11 septembre 2007 14:49
   To: jquery-en@googlegroups.com
   Subject: [jQuery] Does JQuery 1.2 solve thethickboxpositioningproblem
   when scrolling?

   Hi all

   Does JQuery 1.2 solve thethickboxpositioningproblem when scrolling?

   The problem is when you have scrolled down a page and then click on the
  thickboxlink, thethickboxpopup appears at the top of the page but as you
   have scrolled down its not centered?
   I see there are some changes to the CSS in the latest version.

   Please advise.
   Thanks

   Kind regards

   --
   
   Angelo Zanetti
   Systems developer
   

   *Telephone:* +27 (021) 552 9799
   *Mobile:*   +27 (0) 72 441 3355
   *Fax:*+27 (0) 86 681 5885
   *
   Web:*http://www.zlogic.co.za
   *E-Mail:* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

   Ce message Envoi est certifié sans virus connu.
   Analyse effectuée par AVG.
   Version: 7.5.485 / Base de données virus: 269.13.14/999 - Date: 10/09/2007
   17:43

  --
  
  Angelo Zanetti
  Systems developer
  

  *Telephone:* +27 (021) 552 9799
  *Mobile:*   +27 (0) 72 441 3355
  *Fax:*+27 (0) 86 681 5885
  *
  Web:*http://www.zlogic.co.za
  *E-Mail:* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]



[jQuery] Thickbox 3.1: Transparency issues in IE6

2007-09-10 Thread Chris Jordan

Hi folks,

I've just started using thickbox 3.1 and I notice that transparencies
are *not* working in IE6. Is anyone else having this issue? I've not
had this issue in the past, so it's confusing me. The CSS appears to
be correct to me, but for some reason, the background refuses to be
transparent.

Can anyone offer any advice?

Thanks heaps,
Chris



[jQuery] Re: Thickbox 3.1: Transparency issues in IE6

2007-09-10 Thread Chris Jordan

@Alexandre:
Sorry, but I don't have a publicly accessible url to be able to show
off this problem.

@Equand:
You think? ;o)

Chris

On Sep 10, 11:27 am, Equand [EMAIL PROTECTED] wrote:
 looks to me like an 'opacity' css problem

 On Sep 10, 7:23 pm, Alexandre Plennevaux [EMAIL PROTECTED]
 wrote:

  Do you have a link where we can check your problem?

  -Original Message-
  From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On

  Behalf Of Chris Jordan
  Sent: lundi 10 septembre 2007 17:09
  To: jQuery (English)
  Subject: [jQuery] Thickbox 3.1: Transparency issues in IE6

  Hi folks,

  I've just started using thickbox 3.1 and I notice that transparencies are
  *not* working in IE6. Is anyone else having this issue? I've not had this
  issue in the past, so it's confusing me. The CSS appears to be correct to
  me, but for some reason, the background refuses to be transparent.

  Can anyone offer any advice?

  Thanks heaps,
  Chris

  Ce message Envoi est certifié sans virus connu.
  Analyse effectuée par AVG.
  Version: 7.5.485 / Base de données virus: 269.13.12/997 - Date: 9/09/2007
  10:17



[jQuery] Re: Problem with a possible race condition

2007-07-05 Thread Chris Jordan

Bump.

Can anyone shed some light on this?

Thanks heaps,
Chris

On Jul 4, 3:42 pm, Christopher Jordan [EMAIL PROTECTED]
wrote:
 Okay, just an update for anyone thinking of helping. I ran the dialog
 page by itself (sans thickbox) and the focus gets set just fine. So this
 is somehow related to thickbox.

 I would greatly appreciate any help.

 Cheers,
 Chris



 Christopher Jordan wrote:
  Hi folks,

  I'm having a problem that I hope someone out here can help me solve.
  I'm using thickbox to popup a dialog that asks a user for one piece of
  information in a text box. I want to set focus to that text box once
  the dialog is on screen, but I seem to be running into arace
 condition(*I think*).

  As the dialog is popping up I get an error that says focus cannot be
  set because the item is either invisible or not of the type that
  accepts focus.

  I've got the instruction in the $(function(){}); section of my code,
  but no matter where in there I put the focus instruction, it seems to
  be running before the element is rendered on screen.

  Is this because I'm using thickbox? Or is there something else I may
  have missed?

  If example code is needed, I'll post it.

  Thanks heaps everyone!

  Chris

 --http://cjordan.us



[jQuery] Re: Problem with a possible race condition

2007-07-05 Thread Chris Jordan
 again. If you're
sure it's correct, then make sure\nthe customer is in CashWise and try
again.);
alert(Customer 
not found.  Please fill out name and customer
number for this applicant.);

parent.LastName.readOnly = false;

parent.FirstName.readOnly = false;

parent.CustomerNumber.readOnly = false;

parent.SSN.value = data.SSN;
}
else{

parent.LastName.value = data.LASTNAME;

parent.FirstName.value = data.FIRSTNAME;

parent.CustomerNumber.value = data.CUSTOMERNUMBER;

parent.SSN.value = data.SSN;
}
parent.TB_remove();
},
error: function(){
alert(Error);
}
});
}
else{
alert(Invalid SSN.);
}
}

/script
/head
CFOutput
body style=margin:0px; border: 0px dashed; width:99%; height:98%;
div id=MainContent style=width:300px; padding-top:7px; 
border:
0px dashed;
form name=f onsubmit=doSearch();return false;
style=display:inline;
table border=0 cellspacing=3 cellpadding=0 
style=width:100%;
border-collapse: collapse;
tr
td style=text-align:left; 
width:90px;Customer SSN/td
td style=text-align:left;input 
type=text name=SSN
id=SSNID value= onload=this.focus();/td
/tr
/table
div id=buttonRow style=padding-top:10px; border:0px 
dashed
green; text-align:right;
input type=submit value=Search
/div
/form
/div
/body
script
//$(##SSNID)[0].focus();
/script
/CFOutput
/html


I'll try the onShow callback, but if you can think of anything else,
I'd love to hear about it.

Many thanks,
Chris

On Jul 5, 11:45 am, Klaus Hartl [EMAIL PROTECTED] wrote:
 Chris Jordan wrote:
  Bump.

  Can anyone shed some light on this?

  Thanks heaps,
  Chris

  On Jul 4, 3:42 pm, Christopher Jordan [EMAIL PROTECTED]
  wrote:
  Okay, just an update for anyone thinking of helping. I ran the dialog
  page by itself (sans thickbox) and the focus gets set just fine. So this
  is somehow related to thickbox.

  I would greatly appreciate any help.

  Cheers,
  Chris

 Chris, which browser did that error occur in? I had a similiar one in IE
 when trying to focus (accidently) a form control that was hidden (in
 another tab for example). I filtered hidden ones and that worked out.

 So maybe you're trying to access that element just a little too early.
 Try a little timeout or maybe Thickbox also has an onShow callback
 (Thickbox Reloaded has ;-)).

 Another thing to look for (I also ran into this): Make sure your
 selector to fetch the input to get focus accidently matches an hidden
 input...

 --Klaus



[jQuery] dumb interface question

2007-06-28 Thread Chris Jordan

Hi folks,

I've never used the interface plug-in before, and I've just downloaded
it, but I'm not completely understanding how to install it.

The zip file contains a file called interface.js and then a folder
called compressed that contains all the effects js files. Am I
supposed to put the interface.js and any dependant .js files in the
directory where I keep the rest of my JS? If I include interface.js do
I need to include the specific effects .js files that I want to use,
or do I need to keep some special directory structure so that
interface.js will know where to look for the necessary dependencies?

I did a quick search of the archives for this sort of interface
question, but it's such a popular and much talked about plug-in that
it seems I run the risk of growing old while searching for the answers
I'm looking for.

Thanks,
Chris



[jQuery] Re: How do I find this error?

2007-06-27 Thread Chris Jordan

Thanks heaps, Mike! I've a question though.

That blog entry you point to says:

When you've enabled Script Debugging 'View-Script Debugger' will now
be present to help you break into the debugger.

But, I'm not finding that's the case. Also, it goes on to talk about
three applications that the author has used for script debugging. Do I
have to have one of those in order to debug? Why don't I have the
'View-Script Debugger'? Have you used this debugger in IE? How many
angels can dance on the head of a pin? What are the eleven secret
herbs and spices in Kentucky Fried Chicken? Can God make a rock so
heavy even He can't lift it? Are you tired of my questions yet? ;o)

Any help would be appreciated.

Thanks again,
Chris

On Jun 26, 11:07 am, Mike Alsup [EMAIL PROTECTED] wrote:
 IE has a powerful script debugger, but you have to enable it.
 Details can be found here:

 http://blogs.msdn.com/ie/archive/2004/10/26/247912.aspx

 Mike

  I've got a bit of a problem where by I get a JavaScript syntax error in
  IE6, but everything works fine (no errors show in firebug) in FF 2.0.0.4.



[jQuery] Re: New Plugin Repository

2007-06-25 Thread Chris Jordan

Okay, I've finally looked over this big ol' thread to see if my
question was covered or not... and it wasn't.

Back when this page was first released (and then removed after the
DDOS atack), I had registered and added my plug-in. The good news was
that I went to put my plug-in back in the repository, and found it
already there! Yay!

However, a question I had back then (and obviously still have now)
concerns SVN (CVS... whichever), and that is: Can plug-in authors
store their code in some jQuery SVN repository? Before this plug-in
page existed, I stored my code for folks to download on my own server.
Then I got permission to host it on riaforge.org, and that's where the
most up to date versions are kept today. But, it's only tangentially
related to the material that riaforge.org was created for.

If there is a way to do this on the jQuery plug-in page, then it
alludes me. I saw that I could upload files, but it adds a .txt
extension to them. And then it's got file attachments. What's the
difference between those and the part of the release form that says,
Choose the file that will be associated with this release?

Also, using SVN over at riaforge.org, I can create branches for
different implementations of my code, etc. Can I do that sort of thing
here?

Did I miss some handout with instructions or am I blind and missing
the online help? ;o)

Any help would be appreciated.

Cheers,
Chris

On Jun 19, 1:26 am, John Resig [EMAIL PROTECTED] wrote:
 Hi Everyone -

 One of the great aspects of jQuery is its extensibility, as evidenced
 by the many excellent plugins that have been developed for it. The
 jQuery team, and the Web team in particular, have been working hard
 behind the scenes to put together a repository to showcase these
 plugins:http://jquery.com/plugins/

 The new repository comes with a few features that are sure to help
 users to find what they're looking for and determine which plugins
 will best suit their needs. There's the (jQuery-based) ratings widget
 to let you know how highly others value eachplugin. The ratings are
 viewable by all, and you can rate them yourself by simply registering
 on the site with a user name and email address. You'll also have
 easier access to change logs, demos, and documentation, as well as bug
 reporting and feature requests.

 There are still a few rough edges to be smoothed out, and the list of
 plugins on the site is admittedly small so far. **We're requesting
 thatpluginauthors post their work to the newpluginrepository in
 the next couple weeks**, as we'll be gradually phasing out the plugins
 wikipage:http://docs.jquery.com/Plugins

 Special thanks to Mike Hostetler for the hours of work he put in to
 get the repository off to a great start.

 Check it out at:http://jquery.com/plugins/

 Feedback is appreciated, as always.

 --John



[jQuery] Can I select just one?

2007-06-14 Thread Chris Jordan

Hi folks,

I've not really had a need to do this before, but is it possible to
tell jQuery that when doing a selection I just want the first one
found?

I know that I can reference the zeroth element in the array of
matches. As it happens, right now I've got a need to just get the
first occurance of x, and instead of returning all of them, I'd like
to just return the first one.

Any thoughts?

Chris



[jQuery] Re: dynamic jdMenu help

2007-06-09 Thread Chris Jordan

Jonathan,

I've solved my problem. I didn't have the latest versions of
everything as I thought I did. Thanks for the tip on using $
(.jd_menu).jdMenu(); for my dynamic purposes.

Thanks!
Chris



On Jun 9, 12:42 pm, Chris Jordan [EMAIL PROTECTED] wrote:
 Hey, I've just simplified my html even more:

 html
 head
 titlejdMenu test/title
 /head
 body
 ul class=jd_menu jd_menu_slate
 liFile
 ul
 liNew #dblarrow#
 ul
 lispan Title Loan Evaluation 
 Worksheet/span/li
 lispan Repo Decision 
 Worksheet/span/li
 /ul
 /li
 lispan Logoff/span/li
 /ul
 /li
 /ul
 /body
 /head

 Of course, the includes are all still the same as in my last post. The
 firebug error is still the same.

 Thanks,
 Chris

 On Jun 9, 12:37 pm, Chris Jordan [EMAIL PROTECTED] wrote:

  Jonathan,

  Sorry it's taken me so long to follow up on the advice you've given
  me. I still seem to be having a bit of trouble.

  I'm using:
  jquery.js 1.1.2
  jquery.dimensions.js (version not listed in source)
  jquery.jdMenu.js 1.3.beta2 (2007-03-06)

  Here's my entire example page:
  style type=text/css@import url(CSS/jdMenu.css);/style
  style type=text/css@import url(CSS/jdMenu.slate.css);/style
  script type=text/javascript src=Include/js/jquery.js/script
  script type=text/javascript src=Include/js/jquery.dimensions.js/
  script
  script type=text/javascript src=Include/js/jquery.jdmenu.js/
  script

  script
  $(function(){
  $(.jd_menu).jdMenu();
  });
  /script
  html
  head
  titlejdMenu test/title
  /head
  body
  ul class=jd_menu jd_menu_slate
  liFile
  ul
  liNew #dblarrow#
  ul
  lispan class=link
  onclick=DisplayScreen('newTitleLoanEvaluation','displayNewTitleLoanEvaluationWorksheet');
  WindowStatus=New Title Loan EvaluationTitle Loan Evaluation
  Worksheet/span/li
  lispan class=link
  onclick=DisplayScreen('newRepoDecisionWorksheet',
  'displayRepoDecisionWorksheet'); WindowStatus=New Repo Decision
  Worksheet.Repo Decision Worksheet/span/li
  /ul
  /li
  lispan class=link onclick=logout(); 
  WindowStatus=Log out of
  the title loan program.Logoff/span/li
  /ul
  /li
  liAdmin
  ul
  !--- lispan class=link onclick=alert('coming 
  soon');Modify
  Loan Amount Matrix/span/li ---
  lispan class=link 
  onclick=DisplayScreen('AddUser',
  'displayAddNewUser');Add User/span/li
  lispan class=link onclick=alert('coming 
  soon');Edit User/
  span/li
  /ul
  /li
  /ul
  /body
  /head

  Here's the Firebug output when I click on File in the menu:

  elem.style has no properties
  [Break on this error] if (!force  elem.style[prop])
  jquery.js (line 414)

  Thanks,
  Chris

  On Jun 5, 11:02 am, Jonathan Sharp [EMAIL PROTECTED] wrote:

   On 6/5/07, Chris Jordan [EMAIL PROTECTED] wrote:

@Ben,

Thanks man. I appreciate it.

@Brian, I think you've hit the nail on the head, actually. Jonathan's
post seems to bear that out.

@Jonathan,

Thanks I think that's what I was missing when I was doing this in
1.2.1. However, I'm having a separate issue in 1.3 in that I can't get
it to work at all. Even on just a simple unordered list. I'm going to
try simplifying things even further with the 1.3 version to see if I
can't get *something* working. But I'll ask now, is there *anything*
that I need to do differently in 1.3 than I did in 1.2.1? In 1.2.1 all
I did was include the plug-in and write the unordered lists making
sure that the top most level had a specific class. Is that the same
procedure to use in 1.3?

   Yep, it's the same technique. You may have to add: 
   $('ul.jd_menu').jdMenu();
   in your $(...).ready(...) for 1.3.beta2

   Feel free to send me a HTML sample if you're still having problems and 
   I'll
   see if I can take a look at it.

   Cheers,
   -Jonathan



[jQuery] Re: dynamic jdMenu help

2007-06-05 Thread Chris Jordan

@Ben,

Thanks man. I appreciate it.

@Brian, I think you've hit the nail on the head, actually. Jonathan's
post seems to bear that out.

@Jonathan,

Thanks I think that's what I was missing when I was doing this in
1.2.1. However, I'm having a separate issue in 1.3 in that I can't get
it to work at all. Even on just a simple unordered list. I'm going to
try simplifying things even further with the 1.3 version to see if I
can't get *something* working. But I'll ask now, is there *anything*
that I need to do differently in 1.3 than I did in 1.2.1? In 1.2.1 all
I did was include the plug-in and write the unordered lists making
sure that the top most level had a specific class. Is that the same
procedure to use in 1.3?

Thanks for your help everyone. I'm feeling much calmer today even
though my deadline is that much closer. Yikes! :o)

Chris

On Jun 5, 8:53 am, Jonathan Sharp [EMAIL PROTECTED] wrote:
 Hi Christ,

 I hope I can clear up some of the confusion and frustration. jdMenu binds 
 unbinds it's events on each show/hide which allows for easy updating of a
 dynamic menu. The documentation is lacking quite a bit so I appologize.

 I realized that this works best for sub-menus as opposed to a top level menu
 so what you'll need to do is call $(...).jdMenu() at the end of your ajax
 call after you've appended your MenuLists.

 Cheers,
 -Jonathan

 On 6/4/07, Chris Jordan [EMAIL PROTECTED] wrote:



  Hi folks,

  I'm in need of some help using jdMenu. I've got a nice menu up and
  running using ver. 1.2.1, but it's static: meaning that I've hard
  coded the un-ordered lists that make up the menu contents. What I need
  now is a way for my app to build the menu on the fly depending on what
  screen the user is currently viewing.

  The app makes extensive use of ajax and so is only loaded one time at
  the beginning. I've tried having an empty ul element that contains
  the jdMenu class, like this:

  ul id=MainToolbar class=jd_menu jd/ul

  and then making an ajax call to the server which builds the rest of
  the list elements and then does an empty().append(MenuLists); upon
  returning, but that didn't work.

  I've tried just building the what I need in JavaScript into some
  variable that I then do an append() with, but that's not working
  either.

  Does anybody have any thoughts on this? Does anyone thing they can
  help?

  Thanks,
  Chris



[jQuery] Re: dynamic jdMenu help

2007-06-05 Thread Chris Jordan


On Jun 5, 8:53 am, Jonathan Sharp [EMAIL PROTECTED] wrote:
 Hi Christ,

Oh, and I am a great guy... but I don't walk on water, Jonathan...
lol! :o)


 I hope I can clear up some of the confusion and frustration. jdMenu binds 
 unbinds it's events on each show/hide which allows for easy updating of a
 dynamic menu. The documentation is lacking quite a bit so I appologize.

 I realized that this works best for sub-menus as opposed to a top level menu
 so what you'll need to do is call $(...).jdMenu() at the end of your ajax
 call after you've appended your MenuLists.

 Cheers,
 -Jonathan

 On 6/4/07, Chris Jordan [EMAIL PROTECTED] wrote:



  Hi folks,

  I'm in need of some help using jdMenu. I've got a nice menu up and
  running using ver. 1.2.1, but it's static: meaning that I've hard
  coded the un-ordered lists that make up the menu contents. What I need
  now is a way for my app to build the menu on the fly depending on what
  screen the user is currently viewing.

  The app makes extensive use of ajax and so is only loaded one time at
  the beginning. I've tried having an empty ul element that contains
  the jdMenu class, like this:

  ul id=MainToolbar class=jd_menu jd/ul

  and then making an ajax call to the server which builds the rest of
  the list elements and then does an empty().append(MenuLists); upon
  returning, but that didn't work.

  I've tried just building the what I need in JavaScript into some
  variable that I then do an append() with, but that's not working
  either.

  Does anybody have any thoughts on this? Does anyone thing they can
  help?

  Thanks,
  Chris



[jQuery] Re: dynamic jdMenu help

2007-06-04 Thread Chris Jordan

Ben,

I don't have an online demo that anyone can view.

I could have been a little clearer. MenuLists was just a non-sense
name I came up with for the post that was supposed to represent what
was sent back from the server which is the rest of the list
elements. It's being returned as a string of HTML. I could have just
as easily said,

.empty().append(the_HTML_string_returned_from_my_ajax_call_goes_here);

Yes. I'm sure it's passing back what I want.

Are you even familiar with the jdMenu plug-in?


On Jun 4, 5:53 pm, Benjamin Sterling
[EMAIL PROTECTED] wrote:
 Chris, a url would go a long way to helping you.

 what is MenuLists?
 what is being passed back from the server?  are you sure it is passing back
 what you want?
 How are you building your menu?

 Ben

 On 6/4/07, Chris Jordan [EMAIL PROTECTED] wrote:





  Hi folks,

  I'm in need of some help using jdMenu. I've got a nice menu up and
  running using ver. 1.2.1, but it's static: meaning that I've hard
  coded the un-ordered lists that make up the menu contents. What I need
  now is a way for my app to build the menu on the fly depending on what
  screen the user is currently viewing.

  The app makes extensive use of ajax and so is only loaded one time at
  the beginning. I've tried having an empty ul element that contains
  the jdMenu class, like this:

  ul id=MainToolbar class=jd_menu jd/ul

  and then making an ajax call to the server which builds the rest of
  the list elements and then does an empty().append(MenuLists); upon
  returning, but that didn't work.

  I've tried just building the what I need in JavaScript into some
  variable that I then do an append() with, but that's not working
  either.

  Does anybody have any thoughts on this? Does anyone thing they can
  help?

  Thanks,
  Chris

 --
 Benjamin Sterlinghttp://www.KenzoMedia.comhttp://www.KenzoHosting.com



[jQuery] Re: ANN: jQuery-Powered Sites: The List Continues to Grow

2007-05-17 Thread Chris Jordan

I added the ColdBox ColdFusion Framework website to the list. They're
using jQuery + thickbox.

Chris

On May 16, 9:34 am, rolfsf [EMAIL PROTECTED] wrote:
 I just spottedjqueryon John Edward's 
 site,http://www.supportthetroopsendthewar.com/

 I was curious about the script they'reusingfor the rotating google map,
 but that appears not to 
 bejqueryhttp://www.supportthetroopsendthewar.com/script/MapRotate.js

 Rey Bango-2 wrote:

  Just a quick reminder to everyone that thelistofsitesusingjQuery
  continues to grow at an amazing rate. Check out thesitesat:

 http://docs.jquery.com/Sites_Using_jQuery

  Rey...

 --
 View this message in 
 context:http://www.nabble.com/ANN%3A-jQuery-Powered-Sites%3A-The-List-Continu...
 Sent from theJQuerymailinglistarchive at Nabble.com.



[jQuery] CFJS now at version 1.0.5

2007-04-22 Thread Chris Jordan

Hi folks,

Just a quick note that I've made some significant improvements to the
CFJS for jQuery plug-in. Most noticeably is the inclusion of all but
one of the ColdFusion List functions. I've left out ListQualify()
because in the context of JavaScript it didn't seem particularly
useful to me. If anyone disagrees let me know and I'll add it too. :o)

There's also a changelog that I will make an effort to keep updated,
and it lives in the root of the SVN repository.

Also, shortly after sending this post, I'll be updating the home site
(http://cjordan.us) with examples and a demo or three. I'll also be
pointing the download links on the cfjs site to point to the SVN
repository on RIAForge.org. The version on cjordan.us is very old.

Hope everyone is having a great weekend. :o)

Cheers,
Chris



[jQuery] OT: How to request something from the google groups folks?

2007-04-22 Thread Chris Jordan

Does anyone know if you can request a feature for GoogleGroups?

Just in case someone from Google is monitoring (... they *do* do that
don't they?) here's my request:
I've got a request for the web based interface. I'd like to see a
method of adding code windows. Not unlike those in BlogCFC or over at
jQuery.com.

For example:

code
if(my.codeExampleWorks){
I.will.eat(my.hat);
}
/code

You know? It'd be really nice. I realize they'd have to do something
special so that the posts when sent as email appeared normal, but
that's probably doable right? :o)



[jQuery] Thickbox question: Passing variables to pages in the iframe

2007-04-21 Thread Chris Jordan

Hi folks,

First let me say that I *did* search the list, and I *did* find a
thread or two on this subject, but the solutions I found there seemed
hokey to me.

The problem is I'm trying to pass a JSON string on the URL (I'm using
TB_show directly), and my most recent guess as to the problem is that
the string is too long. :o(

Here's the code that opens the TB:

TB_show(Model Dialog, HELPER_SelectModel.cfm?Models= + thisVehicle
+ keepThis=trueTB_iframe=trueheight=90width=300, null,
CloseButtonImage);

Where thisVehicle is the JSON encoded string.

Is there another approach I should take?

I hope someone can help.

Thanks,
Chris



[jQuery] Re: Proposed modification of ThickBox 2.1.1

2007-04-21 Thread Chris Jordan

Okay, so viewing the post from the web interface the image didn't work
out. If you can't see the image, then you can view it here (http://
cjordan.us/images/example.png)

Cheers,
Chris

On Apr 21, 12:32 pm, Christopher Jordan [EMAIL PROTECTED]
wrote:
 Recently I started using ThickBox for my modal windowing needs, but
 wasn't happy with the close button that is hard coded into TB_show().

 I modified it like so:

 function TB_show(caption, url, rel, closeButton) {
 // closeButton can be a fully formed img tag or whatever text you
 want.
 // If not specified, it will be set to the word 'close'. - csj
 04/21/2007
 if(!closeButton){
 closeButton = close;
 }

 ...

 I then made appropriate changes to the lines where the word close used
 to be hard coded. In part, the lines look like this:

 div id='TB_closeWindow'a href='#' id='TB_closeWindowButton'
 title='Close' + closeButton +/a/div

 There are three such lines.

 I also made a small modification to the CSS. I'm not a CSS expert by any
 stretch, so if this can be improved then fantastic. This worked for me
 though.

 #TB_closeAjaxWindow{
 padding:5px 5px 7px 0px;
 margin-bottom:1px;
 text-align:right;
 float:right;

 }

 The change was really just to the padding.

 Also, the image I used was 16x16 and in order for things to look right I
 had to set the images margin and padding to 0px.

 The finished window looks like this (I hope this turns out for folks):

 Thoughts, comments? Am I nuts? I hope the image turns out for everyone.

 Cheers,
 Chris

 --http://cjordan.info



[jQuery] Re: CFJS Announcement: please get the latest version

2007-04-21 Thread Chris Jordan

I'm sorry for the maybe too frequent updates, but I've just spotted
another bug and have fixed it.

The newest version is 1.0.4. SVN Revision 20 (unpacked) or SVN
Revision 18 (packed).

Sorry for any inconvenience.

Cheers,
Chris




On Apr 21, 12:15 am, Chris Jordan [EMAIL PROTECTED] wrote:
 Hey folks,

 Anyone using the cfjs plug-in for jQuery is urged to go get the very
 latest version from the SVN repository over athttp://cfjs.riaforge.org.

 Why?

 Well, I accidentally left some debugging alerts in the code of my last
 update. The alerts were associated with my last bug fix for the
 DollarFormat() and _CurrencyForThousands() functions.

 Anyway, it's possible that you've got the alerts but haven't noticed
 them because you're not using DollarFormat(). To ensure you've got the
 latest code, look at the comments of the uncompressed version and it
 should be v1.0.3a (SVN revision 16). If you're using the packed
 version, be sure to get SVN revision 15.

 Sorry for any inconvenience.

 Hope everyone has a great weekend! I have to work. :o(
 Chris



[jQuery] CFJS Announcement: please get the latest version

2007-04-20 Thread Chris Jordan

Hey folks,

Anyone using the cfjs plug-in for jQuery is urged to go get the very
latest version from the SVN repository over at http://cfjs.riaforge.org.

Why?

Well, I accidentally left some debugging alerts in the code of my last
update. The alerts were associated with my last bug fix for the
DollarFormat() and _CurrencyForThousands() functions.

Anyway, it's possible that you've got the alerts but haven't noticed
them because you're not using DollarFormat(). To ensure you've got the
latest code, look at the comments of the uncompressed version and it
should be v1.0.3a (SVN revision 16). If you're using the packed
version, be sure to get SVN revision 15.

Sorry for any inconvenience.

Hope everyone has a great weekend! I have to work. :o(
Chris



[jQuery] Re: Class doesn't support Automation? -OR- I think there's a bug in jquery.dump.js

2007-04-19 Thread Chris Jordan

Okay, I think I figured this one out. I've put up a very simplified
page that shows the problem in action, and it was during the creation
of this page that I figured out what (or more accurately where) the
issue is.

view the page here (http://cjordan.us/test/ChrisTest.cfm).

My original function:

function DeleteGroup(){
var $group = $(#GroupKeyID)[0];
var index = $group.selectedIndex;
var groupname = $group.options[index];
$.dump(groupname);
return;
}

In it I was just trying to remember exactly how to access a specific
option (I know easy stuff, but sometimes i need reminding). So I used
$.dump() (available in jquery.dump.js) to dump the DOM element and
that reminded me, Oh! Right, the options array... I remember now.

So I adjusted my function to what you see above and ran it expecting
to see a dump of the option DOM element. But instead I got this weird
error (the one which is the subject of this thread).

I tried it in FireFox.

Of course, no problems there. It did exactly what I expected it to do
without complaining about Automation support (whatever that is...)

So in simplifying this example for the fine folks on this list to
view, I also decided to add the following line to the function

alert(groupname.value);

So now in addition to dumping the DOM Element, I'm alerting the value
that I expect to be there.

I tried it in FF just to see that all was still well. And it was (as
usual).

I tried IE... and the darn thing *worked*! Well... at least the
alert() statement worked. After clicking the 'ok' on the alert, the
error popped up again.

It was the *dump* that failed and caused this weird error!

So, the point is that I can continue life the way I was trying to
before, but that the author of $.dump() (Daemach, I think?) seems to
have a bug.

Just thought I'd share this with y'all in case anyone else gets bitten
by it.

Now... if we can just get that $.dump() bug fixed (if indeed it is
fixable in IE). Hmmm... ;o)

Cheers,
Chris



I've got a test page that shows this bug.

On Apr 19, 10:39 am, Christopher Jordan [EMAIL PROTECTED]
wrote:
 I'll see what I can to about getting an example page posted to the web where
 others can see it. My client currently has me working on another aspect of the
 project, but I should still be able to get it done today.

 Thanks,
 Chris

 PS...

  giggle/ What'd you call me?! snort/  guffaw/  I'm a newbie here
  too.  I only answer what look to be easy ones, because I know far too
  little yet.  :-)

 Meh, don't short-change yourself. I'm a noob in some areas, and in others I'm
 not. If you can help me, it doesn't matter what you *don't* know! :o)

 Thanks (again)
 Chris
 --http://www.cjordan.us



[jQuery] Re: Keyboard shortcuts

2007-04-19 Thread Chris Jordan

That shortkeys plugin is cool! I'm gonna have to remember that
one. :o)

Chris

On Apr 19, 2:49 pm, Leonardo K [EMAIL PROTECTED] wrote:
 http://sanisoft-demo.com/jquery/plugins/shortaccesskey/
 orhttp://rikrikrik.com/jquery/shortkeys/

 On 4/19/07, Glen Lipka [EMAIL PROTECTED] wrote:



 http://www.openjs.com/scripts/events/keyboard_shortcuts/

  This looks really cool.
  Is there a jQuery plugin like it?

  Glen



[jQuery] Re: ThickBox question

2007-04-18 Thread Chris Jordan

Rob,

That is essentially what I ended up doing. I got busy with the coding
so I didn't have time to update this thread, but that is exactly what
I ended up doing.

Thanks for the help though! :o)

Cheers,
Chris

On Apr 18, 3:51 am, Klaus Hartl [EMAIL PROTECTED] wrote:
 Chris Jordan schrieb:



  Hi folks,

  I've searched the archives, but didn't find what I was looking for. So
  if this has already been discussed and someone can point me to the old
  thread, that'd be awesome. Otherwise:

  Is it possible to trigger the opening of a thickbox without a link? In
  other words, I want to do this:
  script
  if(true){

  open.thickbox.somehow(url, width, height, etc, etc, etc)

  }
  /script

  Thanks,
  Chris

 You could hijack a link with trigger for that... If the link has been
 thickboxed:

 $('#trigger-thickbox').trigger('click');

 Don't know if that helps.

 -- Klaus



[jQuery] Re: unbind() fails on handler specified in the HTML

2007-04-18 Thread Chris Jordan

Is there any more information on this. I was curious if unbind() would
work on an event set specifically in the HTML, so I thought I'd search
the list... Looks like it was worth the search.

Can anyone on the dev team (or just anyone who knows the answer) tell
us if unbind() is meant to work on events set specifically in the HTML
or if it just won't work for some reason and we need to use the
removeAttr() method?

Thanks,
Chris

On Mar 13, 4:49 am, [EMAIL PROTECTED] (Rob Desbois) wrote:
 Thanks Olaf -- I discovered that fix whilst looking through the mailing list 
 archives.
 According to the documentation thoughunbind() should work - and it is there 
 for this purpose!

 rob

  I don't anything aboutunbind, i would try:

 function test()
 {
$(#testButton).removeAttr(onclick).html(Tested already);
 }

 --
 Viele Gr??e, Olaf

 ---
 olaf.bosch at t-online.dehttp://olaf-bosch.dewww.akitafreund.de
 ---

 ___
 jQuery mailing list
 discuss at jquery.comhttp://jquery.com/discuss/

 __
 This email has been scanned by the MessageLabs Email Security System.
 For more information please visithttp://www.messagelabs.com/email
 __

 

 -- Original Message --

 FROM:  Olaf Bosch olaf.bosch at t-online.de
 TO:jQuery Discussion. discuss at jquery.com
 DATE:  Mon, 12 Mar 2007 19:20:51 +0100

 SUBJECT:   Re: [jQuery]unbind() fails on handler specified in the HTML

 Rob Desbois schrieb:
  It seems thatunbind() will only remove event handlers that were attached to 
  elements by jQuery. The following does not remove the event handler 
  specified in the element's attributes.

 I don't anything aboutunbind, i would try:

function test()
{
   $(#testButton).removeAttr(onclick).html(Tested already);
}

 --
 Viele Gr??e, Olaf

 ---
 olaf.bosch at t-online.dehttp://olaf-bosch.dewww.akitafreund.de
 ---

 ___
 jQuery mailing list
 discuss at jquery.comhttp://jquery.com/discuss/

 __
 This email has been scanned by the MessageLabs Email Security System.
 For more information please visithttp://www.messagelabs.com/email
 __

 __
 This email has been scanned by the MessageLabs Email Security System.
 For more information please visithttp://www.messagelabs.com/email
 __



[jQuery] Class doesn't support Automation?

2007-04-18 Thread Chris Jordan

Hi folks,

I think I'm missing something simple here, but I can't seem to see it.

Here's my function:

function DeleteGroup(){
var $group = $(#GroupKeyID)[0];
var index = $group.selectedIndex;
var groupname = $group[index];
$.dump(groupname);
}


Calling this function (FROM IE) causes the error: Class doesn't
support Automation

FireFox (of course) has no complaints and works just fine.
G ;o)

Anyone who could help me figure this out would be my hero! :o)

Thanks,
Chris



[jQuery] Re: Plugin: CFJS updated

2007-04-18 Thread Chris Jordan

On Apr 18, 5:47 pm, Chris Jordan [EMAIL PROTECTED] wrote:
 In this case (for the sake of formatting) I shortened the array

Well, it seems that the formatting *still* didn't really work out...
but hopefully you get the idea. ;o)


 On Apr 18, 5:35 pm, Web Specialist [EMAIL PROTECTED]
 wrote:

  Looks like a great and nice job for all CFers! But where I can read any
  example to use that library in my app? ;-)

  Cheers

  2007/4/17, Rey Bango [EMAIL PROTECTED]:

   Great job Chris!!!

   Christopher Jordan wrote:

Hi folks,

Just a quick note to say that I've updated the library to fix a bug in
the DollarFormat() function.

Also, when I get a spare moment or three, I'll be adding heaps more
CFScript functions to the library.

The SVN on RIAForge (http://cfjs.riaforge.com) is probably the best
place to get the code right now. The most recent version is 1.0.3. If
you look at the top of the comments in the unpacked version that's what
should be there.

Thanks!
Chris

   --
   BrightLight Development, LLC.
   954-775- (o)
   954-600-2726 (c)
   [EMAIL PROTECTED]
  http://www.iambright.com



[jQuery] ThickBox question

2007-04-17 Thread Chris Jordan

Hi folks,

I've searched the archives, but didn't find what I was looking for. So
if this has already been discussed and someone can point me to the old
thread, that'd be awesome. Otherwise:

Is it possible to trigger the opening of a thickbox without a link? In
other words, I want to do this:
script
if(true){

open.thickbox.somehow(url, width, height, etc, etc, etc)

}
/script

Thanks,
Chris



[jQuery] Re: ThickBox question

2007-04-17 Thread Chris Jordan

Okay, I just took a look at thickbox.js and want to know if all I have
to do is call TB_show(caption, url, rel); ?

I'll play around with this, but would love it if anyone could tell me
if they've had this need before and how they solved it.

Thanks,
Chris

On Apr 17, 4:13 pm, Chris Jordan [EMAIL PROTECTED] wrote:
 Hi folks,

 I've searched the archives, but didn't find what I was looking for. So
 if this has already been discussed and someone can point me to the old
 thread, that'd be awesome. Otherwise:

 Is it possible to trigger the opening of a thickbox without a link? In
 other words, I want to do this:
 script
 if(true){

 open.thickbox.somehow(url, width, height, etc, etc, etc)

 }

 /script

 Thanks,
 Chris



[jQuery] Plugin: cfjs updated (again)

2007-04-10 Thread Chris Jordan

Hi folks,

I just wanted to let y'all know that I've added a few new functions to
the cfjs plugin. They seem pretty basic, but I thought we should have
them anyway.

Added 04/10/2007:
IsArray( value )
IsDefined( value )
IsStruct( value )

one thing to note is that (for now) the IsArray function doesn't
behave *exactly* like its CF counter part. It does not *yet* support
the 'number' argument. To quote the documentation on this optional
argument:

numberDimension; function tests whether the array has exactly this
dimension

Hopefully, I'll get that added soon.

I hope folks are finding this useful... I know I am. :o)

Cheers,
Chris



[jQuery] [Plugin update]: jquery.cfjs.js

2007-04-09 Thread Chris Jordan

Hi folks,

Just thought I'd drop a quick line to let everyone know that I've
added the ListPrepend() function to the ColdFusionJavaScript plugin
for jQuery.

This *is* a function that CF offers (though I hadn't occasion to use
it until recently), so I figured it needed to be in the plugin. It is
the opposite of ListAppend() and does what you probably suspect it
does

Example:

This code:
var List = 1,2,3,4;
$.ListAppend(List, 5); // sending the number five as a string
would work too.

produces this value for List:
1,2,3,4,5

now if we add this line to the above code:
$.ListPrepend(List, ChrisRocks);

the value for List is now:
ChrisRocks,1,2,3,4,5


Also, as an interesting (... or maybe I'm just easily amused) side
note, Ray Camden and The-Powers-That-Be over at RIAForge.org have
agreed to create a 'Miscellaneous'  category where projects like this
one can be hosted. I hadn't originally wanted to add it as a project
on RIAForge because I didn't think it met their established
requirements. However, at the prompting of a user, I shot Ray an
email, and presumably after some deliberation they added the new
category. Ray tells me it was something they were sort of considering
anyway.

Okay, well for what it's worth... there ya go. :o)

Cheers!
Chris



  1   2   >