[jQuery] Looking for more efficient code: String Matching

2009-09-06 Thread Mat
s("margin-left", "5px"); } if (matchThree == "---") { $(this).css("margin-left", "15px"); } }); }); Although this works I'm sure there must be a cleaner way of doing this. Any suggestions JQuery gurus? Thanks, Mat

[jQuery] Triggering a select list from a div onclick

2009-08-28 Thread Mat
I need to be able to trigger (open) a select list when I click on a div. I would love something like this to be possible: Click me Option 1 Option 2 Option 3 Is there anything remotely similar/possible to what I am trying to achieve? Thanks, Mat.

[jQuery] Ajax call? Possible?

2009-08-04 Thread Mat
me sort of similar markup possible? HTML: About JS: $('#load_about').click(function(){('#about).load('about.html')}); Thanks in advance, Mat. P.S. If my bad description of my site is confusing you, you can see what it looks like at the moment: http://www.matthewhill.name/

[jQuery] Re: hoverIntent not working?

2009-07-28 Thread Mat
Ah, of course! Thanks a lot, I am very appreciative haha! Mat. On Jul 28, 2:43 pm, Brian Cherne wrote: > Sorry for taking so long to get back to you. Hopefully you've figured this > one out already... hoverIntent expects either two functions or one > configuration object: > $

[jQuery] hoverIntent not working?

2009-07-27 Thread Mat
Here is my simple bit of JS that isn't working; $('#trigger').hoverIntent(function(){$('#info').slideDown('500')}); Maybe it is conflicting with the other plugins I am using; scrollTo, localScroll and serialScroll? (I don't see why it would.) Thanks in advance, Mat.

[jQuery] Safari reader "Article Length" with jQuery?

2009-05-25 Thread Mat
My idea is to allow my viewers the ability to shorten/lengthen the content of divs containing news articles on my archive page, much like the safari reader does. Would this be possible with jquery, and if yes, cross-browser compatible? Thanks, Mat.

[jQuery] Change li class to "current" and remove all other "current" classes onclick

2009-04-17 Thread Mat
my HTML: About Me My Portfolio Contact Me Thanks a lot, Mat.

[jQuery] Re: Show/Hide element

2009-03-16 Thread Mat Schaffer
Tried something like this? $("legend").click(function() { $("fieldset ul").toggle(); }); On Mar 15, 2009, at 10:40 AM, shapper wrote: Hello, I have a list of fieldsets and each one has a legend. I am thinking in having something like: Personal Data first element second element

[jQuery] Re: Please help me SPEED UP my dev. MySQL => PHP => JSON => AJAX => jQueryUI

2009-03-14 Thread Mat Schaffer
lease put forward the pros and cons. Seems reasonable. If you're stuck on PHP, you might want to also check out http://www.phpfuse.net. I find it to be a little less verbose than CakePHP. -Mat

[jQuery] Re: Variable scope: Newbie Question

2008-12-06 Thread Mat
} and that improved speed greatly. It appeared I was binding the autocomplete script and data source to the #city field with every iteration of my XML file query and this of course was causing a huge speed bump. Once I moved the autocomplete binding statement outside of my XML

[jQuery] Re: Variable scope: Newbie Question

2008-12-06 Thread Mat
primarily used by those in Alberta so I though if I loaded the array with Alberta city names by default when the script loads it might speed things up. DO you think the JSON approach you mentioned would be quicker? Thanks, Mat On Dec 6, 12:15 pm, Mat <[EMAIL PROTECTED]> wrote: > H

[jQuery] Re: Variable scope: Newbie Question

2008-12-06 Thread Mat
't really know much about JSON. Once again thank you so much, I expected to have to spend hours trying to get this to work today! Mat On Dec 5, 11:55 am, "Michael Geary" <[EMAIL PROTECTED]> wrote: > Hi Mat, > > 1) You're defining towncity like this: > >    

[jQuery] Variable scope: Newbie Question

2008-12-05 Thread Mat
dataType: "xml", success: function(xml) { $(xml).find("[EMAIL PROTECTED]'"+ currprov +"'] > TOWN_CITY_NAME").each(function(){ towncity = $(this).text(); }); } }); }); }); }); Anyone have any ideas? Thanks, Mat

[jQuery] Re: New plugin - date picker

2008-08-28 Thread Mat
mple. I've looked at your example and it doesn't appear to happen but then I've stripped my version down to what yours is and it does occur. The problem isn't related to just my machine, it also occurs on other peoples. Thanks in anticipation, Mat On Jul 30, 4:42 pm, Stefan <