[jQuery] Re: jQuery called twice, if I delete one, all jQuery scripts stop working

2009-09-13 Thread Alex Weber
did you get it to work? On Sep 12, 1:33 pm, Adrian Chen wrote: > On Sep 12, 10:09 am, Alex Weber wrote: > > > That's totally weird! > > > I would start over, delete all the include files and add it once > > before any other external js script.  Test it and gra

[jQuery] Re: jQuery called twice, if I delete one, all jQuery scripts stop working

2009-09-12 Thread Alex Weber
That's totally weird! I would start over, delete all the include files and add it once before any other external js script. Test it and gradually add the others one by one afterwards... This is really a weird problem, its the best I can think of because this hasn't happened to me!! Also, re-dow

[jQuery] Re: IDE supporting jQuery

2009-09-12 Thread Alex Weber
as a year ago or > so. > > On Sep 11, 9:20 am, Alex Weber wrote: > > > Just confirming: Aptana and Netbeans are excellent choices! :) > > > On Sep 11, 8:15 am, szymon jankowski > > wrote: > > > > NetBeans IDE also has jquery support. > > >

[jQuery] Re: Selects populating other selects from JSON data

2009-09-12 Thread Alex Weber
Hey, two suggestions: First off, if you're using JSON data to populate it then I assume the data will come from an external source and you are only generating it in your script for testing purposes. In that case, perfect. If not, and the data is actually hard-coded, then you shouldn't really be

[jQuery] Re: IDE supporting jQuery

2009-09-11 Thread Alex Weber
Just confirming: Aptana and Netbeans are excellent choices! :) On Sep 11, 8:15 am, szymon jankowski wrote: > NetBeans IDE also has jquery support. > > best regards, > > SJ > > On Sep 10, 7:58 pm, MorningZ wrote: > > > Are you looking for something where Intellisense would work for > > jQuery?  

[jQuery] Re: tooltips not working on content loaded via ajax

2009-09-09 Thread Alex Weber
I'm not sure I understand completely, if you mean that the tooltip doesnt work with elements dynamically generated via load(), then it could be a binding issue... try binding an alert() and see if that works. in case it doesn't its because when the event was bound the elements didn't exist... the

[jQuery] Re: post an array

2009-09-09 Thread Alex Weber
You can't post a javascript object, its gotta be key-value pairs if the data is coming from a form you can do: var serial = $('#myform').serialize(); and post the variable serial if not then as far as I know you gotta convert the object into key- value pairs some other way! On Sep 9, 6

[jQuery] Re: how can I treat a string as JSON?

2009-09-09 Thread Alex Weber
en 1.3.3 will be released, but you can always check out the > code from Subversion if you want to see the very latest: > > http://jqueryjs.googlecode.com/svn/trunk > > Or if you want *all* the tagged versions: > > http://jqueryjs.googlecode.com/svn > > -Mike > > O

[jQuery] Re: how can I treat a string as JSON?

2009-09-08 Thread Alex Weber
        data = JSON.parse( data ); >                 } else { >                     data = (new Function("return " + data))(); >                 } >             } > > -Mike > > On Mon, Sep 7, 2009 at 11:02 PM, Alex Weber wrote: > > > I use $.getJSON for all my ajax stuff and it wor

[jQuery] Re: WP-Cumulus

2009-09-08 Thread Alex Weber
Its definitely possible although it would probably not run so smooth on anything but the latest generation of browsers due to the heavy-ish JS required... I've never seen anything like it done but "Dynacloud" is a very good tag cloud plugin for jQuery, it could be a good starting point! On Sep 8,

[jQuery] how can I treat a string as JSON?

2009-09-07 Thread Alex Weber
I use $.getJSON for all my ajax stuff and it works beautifully but there is one particular situation where I use an iframe hack to do an ajax file upload and even though the returned value is a json object (created with PHP), jQuery treats it like a string. I'm using json2.js right now and it doe

[jQuery] possible to override inline onchange() event?

2009-09-04 Thread Alex Weber
I have a select box with an inline "onchange()" event that reloads the page. Using jQuery I've created a $('#myForm select').live('change', function (e){...}) event handler to intercept the onchange() behavior and even though I have e.preventDefault() and e.stopPropagation() after my jquery event

[jQuery] context issues when using $.ajax please help!

2009-06-05 Thread Alex Weber
I'm having problems returning values from within functions that make use of $.ajax functions For example: var obj = { this.foo = 'foo', this.bar = function(variable){ $.post('myscript.php', 'var='+variable, this.callback, 'json'); }, this.callback = function(json){

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

2008-10-15 Thread Alex Weber
wrote: > Correct.  We use yuimin to manuall compress/minify the original .js > file. > Then this script handles the gzip compression on-the-fly. > I really wish we could do the yuimin on the fly as well, but we > haven't found a good way to handle that. > > On Oct 15, 10:35 

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

2008-10-15 Thread Alex Weber
t;         echo file_get_contents($fn); >         echo ";\n"; // accommodate scripts which are missing a trailing > semicolon} > > ob_end_flush(); //output the content > ?> > > On Oct 15, 10:12 am, "Chris Jordan" <[EMAIL PROTECTED]> wrote: > > >

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

2008-10-15 Thread Alex Weber
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 file

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

2008-10-15 Thread Alex Weber
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 writ

[jQuery] Re: help with $.getJSON() ... just cant figure it out

2008-10-13 Thread Alex Weber
secure as plain ol text > > The advantage of using the $.getJSON method (which remember, is just > $.ajax but with the dataType set to "json") is that you don't need to > do anything special to parse it when you get it back from the call > > > > > On Oct 13, 12:04

[jQuery] Re: help with $.getJSON() ... just cant figure it out

2008-10-13 Thread Alex Weber
quot;; > Params.Method = "GET";  // or "POST", which it defaults to > reqJSON( >        "url of server page", >        Params, >        function(json) { >            // if here, then "json" *is* a JSON object >        }, >        function(x,y,z) {

[jQuery] help with $.getJSON() ... just cant figure it out

2008-10-13 Thread Alex Weber
first off, i dont get the difference between using $.ajax, $.post or $.get instead since the concept is the same afaik: you send a request and receive a response. the only difference in this case is that the response would be a JSON object... right? anyway... i've managed to generate tons of JSO

[jQuery] Re: Thickbox vs jqModal

2008-10-13 Thread Alex Weber
i use SimpleModal! :) http://www.ericmmartin.com/projects/simplemodal/ On Oct 13, 8:22 am, MorningZ <[EMAIL PROTECTED]> wrote: > I also use jqModal  i'm not sure what "view" you are looking > for...  use which ever one makes more sense for you and is easier for > you to code/understand > > fu

[jQuery] implementing double cookie submit with jquery?

2008-10-12 Thread Alex Weber
anyone have any suggestions on where to start? read pretty much everything on google but still kinda confused... thanks Alex

[jQuery] [off-topic] Jyte Users Unite!

2008-10-08 Thread Alex Weber
theres a jquery community on jyte and some of the usual js library bashing and arguments going on... just inviting you all to join the cause! (no urls on purpose in not trying to spam or anything!)

[jQuery] Re: Is it possible to avoid jumpy / disappearing content

2008-10-08 Thread Alex Weber
Thanks Karl! Unfortunately I havan't yet become a huge adopter of "progressive enhancement"/"graceful degrading" :) i just assume that users have js (and cookies for that matter) enabled... lol it works most of the time and i haven't really had to do any mission critical stuff yet :) thx for the

[jQuery] intercept navigation away from page?

2008-10-08 Thread Alex Weber
i have a modal window and when the "close" button gets clicked i log the time and date the user closed the modal. but what about if he just closes the browser or directly navigates to another page? is there any way to implement "cleanup" stuff here? thanks

[jQuery] Re: Is it possible to avoid jumpy / disappearing content

2008-10-08 Thread Alex Weber
Just a random question here: why would you hide the element with jQuery as opposed to using CSS? (on pageload that is...) On Oct 7, 5:50 pm, "John D." <[EMAIL PROTECTED]> wrote: > Ok I found the culprit. There was a JavaScript for our Google site > search. Commenting it out solves the problem. >

[jQuery] Re: OT : javascript editor (with code formatting)

2008-10-08 Thread Alex Weber
NetBeans is good and free :) I do all of my design in Dreamweaver and PHP in nuSphere so I write my JS in whatever IDE i'm using at the time :) On Oct 8, 5:14 am, zizi <[EMAIL PROTECTED]> wrote: > Komodo (I use it under Ubuntu, but it has a Win version, too) > > under Win Ultraedit rulez, but it

[jQuery] Re: dealing with multiple forms having same id

2008-09-30 Thread Alex Weber
for example if you bind something to that ID only the first one will work. so yeah i suggest either using classes or even prefixing the id so you can access them all with 1 selector $("div[id^=prefix_]") this is also similar to the valid CSS to style it (using selectors- but unfortunately it wont

[jQuery] Re: form select...

2008-09-27 Thread Alex Weber
$('#fruits').val() On Sep 28, 2:12 am, GARIL <[EMAIL PROTECTED]> wrote: > How do I use jQuery to determine which item was selected from the > forms below? > Thank you for the help. > > > Select your favorite fruit: > >   Apple >   Orange >   Pineapple >   Banana > > > > > Select your favorit

[jQuery] Re: no callback for css/addClass?

2008-09-25 Thread Alex Weber
gt; to put that image in it's right place in the XHTML, a floated DIV > separate from the product list (ol). > > - ricardo > > On Sep 25, 1:36 pm, Alex Weber <[EMAIL PROTECTED]> wrote: > > > absolutely! > > >www.weberseguros.com/productos.php > > >

[jQuery] Re: no callback for css/addClass?

2008-09-25 Thread Alex Weber
dering difference is to blame (rather than > jQuery).  Do you have any sample pages live on the web that I could > check out? > > On Sep 25, 9:18 am, Alex Weber <[EMAIL PROTECTED]> wrote: > > > Thanks Eric about the fadeIn() params that was careless of me but it > > does

[jQuery] Re: no callback for css/addClass?

2008-09-25 Thread Alex Weber
and by "sometimes" i mean "all the time" :) On Sep 25, 10:18 am, Alex Weber <[EMAIL PROTECTED]> wrote: > Thanks Eric about the fadeIn() params that was careless of me but it > doesn't seem to have made a difference... :( > btw the div has no padding an

[jQuery] Re: no callback for css/addClass?

2008-09-25 Thread Alex Weber
]> wrote: > Does #produtos_contato have any padding added to it?  If so, IE could > be calculating the width of the overall element as more than "350px", > causing it to get bumped to the next line. > > On Sep 24, 5:05 pm, Alex Weber <[EMAIL PROTECTED]> wrote: >

[jQuery] Re: no callback for css/addClass?

2008-09-24 Thread Alex Weber
ts under it... On Sep 24, 5:48 pm, ricardobeat <[EMAIL PROTECTED]> wrote: > There is no way a css() and show() could happen in the wrong order, as > the second one only executes after the first one returns the object. > Is it an animated resize? > > On Sep 24, 3:59 pm, Alex

[jQuery] Re: no callback for css/addClass?

2008-09-24 Thread Alex Weber
yeah bud thats a given i just wanted to confirm that there wasn't a callback and why not. thanks for all the replies! ajpiano wrote: > that sounds like an issue that needs debugging, not a (superfluous) > change to the library core... > > > > On Sep 24, 1:06�pm, Alex

[jQuery] Re: no callback for css/addClass?

2008-09-24 Thread Alex Weber
i realize that... i just needed this in a rare case where jquery is showing an element before resizing it, even though the resize statement (css) is before the show()... On Sep 23, 9:05 pm, ricardobeat <[EMAIL PROTECTED]> wrote: > Yeah, it's just like doing > > $('color','red'); alert('color chan

[jQuery] no callback for css/addClass?

2008-09-23 Thread Alex Weber
i guess it makes sense since in most cases its instant but it would be useful to have a callback as in: $('#myDiv').css('color','red', function(){ alert('color changed!'); }); addClass() doesnt have a callback either... is there any particular reason for this? thanks!

[jQuery] Re: custom / slimmed-down jquery possible?

2008-09-19 Thread Alex Weber
times in most cases. > > Matt Kruse > > On Sep 18, 3:50 pm, Alex Weber <[EMAIL PROTECTED]> wrote: > > > That's possibly the smartest thing I've heard all day! :) > > > The content INSIDE the lightbox/modal does need jquery but the biggest > > p

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

2008-09-19 Thread Alex Weber
SimpleModal is great http://code.google.com/p/simplemodal/ And also Thickbox best afaik On Sep 18, 5:30 pm, "Chris Jordan" <[EMAIL PROTECTED]> wrote: > 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 A

[jQuery] Re: custom / slimmed-down jquery possible?

2008-09-18 Thread Alex Weber
; > page. In addition, if you are using compression, you should hardly > > notice the loading time for the script(s). > > > -Eric > > > On Sep 17, 1:20 am, Alex Weber <[EMAIL PROTECTED]> wrote: > > > > and no i dont mean packing or minifying! :) > >

[jQuery] Re: best/standard way to benchmark your own scripts?

2008-09-18 Thread Alex Weber
rker.flesler.com/ > The deploy part isn't included in the js. It's OO, you can create > Benchmarker instances. > > I used it mainly to check different approaches for frequent problems. > Also some experiments. > > -- > Ariel Fleslerhttp://flesler.blogspot.com/ >

[jQuery] Re: Finding DIVS with similar IDs

2008-09-18 Thread Alex Weber
$('div[id^=test]').hide(); :) if it doesnt work i think its just a case of syntax $("[EMAIL PROTECTED]").hide(); On Sep 17, 9:14 pm, ripple <[EMAIL PROTECTED]> wrote: > Try this. >   > $("div[id*=test]").hide(); >   > The second attempt evaulates the text in the div. Not the id of the div

[jQuery] custom / slimmed-down jquery possible?

2008-09-17 Thread Alex Weber
and no i dont mean packing or minifying! :) basically all i need is 1 plugin (simplemodal) and because of that i'm forced to load the entire jquery library, which is crippling load times... we use jquery extensively in our website but we have banners in other sites that open a simplemodal (light

[jQuery] best/standard way to benchmark your own scripts?

2008-09-17 Thread Alex Weber
looking to find possible bottlenecks and basically optimize the hell outta my js which relies heavily on jquery and the occasional plugin... is there a more elegant and efficient way to do this than to toss a few document.write()s at my code?? =P thanks!! -Alex

[jQuery] Re: input box on change event?

2008-09-16 Thread Alex Weber
I'm not sure I understand exactly what you mean but I can answer the question in the title of your thread :) instead of using the 'blur' event use the 'change' jquery event (analogous to onChange() traditional js) http://docs.jquery.com/Events/change -Alex On Sep 16, 11:08 pm, bombaru <[EMAIL

[jQuery] Re: jQuery prototype magic

2008-09-16 Thread Alex Weber
Just a bump here since I'm curious too! :) I just kind if take things like jQuery for granted and use and abuse them without really knowing or caring how it does what it does, so long as it works :) (I guess that's a textbook OOP abstraction definition lol) Anyway, wanna know the answer too if any

[jQuery] Re: How to load remoate jquery code with document.write() that works with IE6/7?

2008-09-11 Thread Alex Weber
check this thread out: http://groups.google.com/group/jquery-en/browse_thread/thread/f4277815d73f06ca?hl=en its mainly about loading multiple libraries but the concept of appending elements to the DOM vs using document.write() might work for you :) On Sep 10, 4:39 pm, henry <[EMAIL PROTECTED]> w

[jQuery] Re: Determining visible elements in an overflowed div

2008-09-11 Thread Alex Weber
not sure about the whole overflowed DIV thing but in general $('p:visible') will select only visible elements On Sep 10, 9:06 pm, spaceage <[EMAIL PROTECTED]> wrote: > Is there any way to use jQuery to determine which elements/items are visible > within a div that is overflowing? > > ie. let's

[jQuery] Re: Timeout/sleep in jQuery?

2008-09-11 Thread Alex Weber
.mouseout( function() { setTimeout('$ (this).children("ul").css("display","none");', 500); Another option that works better instead of using getTimeout and such in jQuery is to use animate(callback) on an already visible element... ex: .mouseout(function(){ $("#main-

[jQuery] Re: JQuery Form Plugin and json

2008-09-11 Thread Alex Weber
Stefan, Any particular reason why you'd want to do this?? Usually its the opposite... posting form fields normally (usually easier to interpret by the server-side script) and then returning a JSON object to jQuery, in which case you can use $.getJSON() Alex On Aug 29, 3:19 am, "Stefan Sturm" <

[jQuery] Re: best techniques to optimize loading of multiple libraries?

2008-09-03 Thread Alex Weber
js file? > > On Aug 29, 11:04 pm, Bil Corry <[EMAIL PROTECTED]> wrote: > > > Alex Weber wrote on 8/29/2008 10:15 AM: > > > > i'd rather use packed then minified though :) > > > Use minified, not packed.  Although a packed file is smaller

[jQuery] Re: best techniques to optimize loading of multiple libraries?

2008-09-03 Thread Alex Weber
-- > > Your script goes here > > ;//---- > > That way you get a nice visual separation between the scripts, and the extra > semicolons won't hurt anything. > > -Mike > > > From: A

[jQuery] Re: best techniques to optimize loading of multiple libraries?

2008-09-02 Thread Alex Weber
Thanks again Mike! I reckon I have it down to a 'T' now! :) Just one doubt (sorry i've taken so much of your time already!): When you say: "Concatenate all of your scripts into a single file." Do you mean the entire jquery library as well? Is this feasible? Like, copy and paste the entire jq

[jQuery] Re: Best practices - js includes, plugins, greasemonkey

2008-09-01 Thread Alex Weber
this thread might shed some light on your problem! :) http://groups.google.com/group/jquery-en/browse_thread/thread/f4277815d73f06ca?hl=en On Aug 14, 7:50 pm, mickes <[EMAIL PROTECTED]> wrote: > Can the jquery powerusers shed some light onbestpractices for using > multiple plugins and or any ext

[jQuery] Re: best techniques to optimize loading of multiple libraries?

2008-09-01 Thread Alex Weber
get executed in the > order they are written to the document. > > It will also cut at least .9 seconds off your page load time, since the > existing code waits at least .3 seconds after loading each file. > > Now, the question of *where* host your .js files and whe

[jQuery] Re: best techniques to optimize loading of multiple libraries?

2008-08-31 Thread Alex Weber
or 2) use google code or some other proper hosting service to host jquery and plugins 3) gotta work on mts_loader.js see what i mean now? it checks for the existence of jquery and once its there loads the plugins and tests if its there and only then does it load my file (mts_finan.js) hope th

[jQuery] Re: best techniques to optimize loading of multiple libraries?

2008-08-30 Thread Alex Weber
rudimentary approach? Thanks again! -Alex On Aug 29, 3:04 pm, Bil Corry <[EMAIL PROTECTED]> wrote: > Alex Weber wrote on 8/29/2008 10:15 AM: > > > i'd rather use packed then minified though :) > > Use minified, not packed.  Although a packed file is smaller, it's ove

[jQuery] Re: best techniques to optimize loading of multiple libraries?

2008-08-29 Thread Alex Weber
gt; > > > And host the rest of your files on Amazon S3. Let them worry about the > scaling. > > Combine the plugin and the other JS file into a single .JS file and minify > it. > > How big are the JS files and the images? > > -Mike > > > From: Alex Weber

[jQuery] best techniques to optimize loading of multiple libraries?

2008-08-28 Thread Alex Weber
First off hi! Here's the scenario: I have a banner that I'm going to put up on various different websites. The banner relies on the packed jquery core library, 1 plugin and another simple js file. Oh, and obviously, I can't host anything on the destination site's servers. What's happening is