[jQuery] Image dimensions

2009-08-02 Thread Pops
I am trying to get some cross browser consistency of obtaining the true image size. In Firefox, there is two fields, image.naturalWidth image.natualHeight IE does not recognize these fields. I think I am either over thinking the issue, and probably not seeing something I thought jQuery

[jQuery] Request Path

2009-07-26 Thread Pops
This is probably isn't a jquery question, but I am using jQuery media plugin in this case, so I am wondering if someone can assist here. I have a http folder with my server-side scripts for media stuff /public/wcflash/wcflash.wcx<-- server side compiled script for our web server I f

[jQuery] Why do click events stopped after the first one?

2008-01-11 Thread Pops
I have this code below which I reduced to this for posting. Essentially, I have a bunch of screen shots which I display in reduced size as a block "menu" with the idea that when the user clicks on a image, it is fully displayed in a block below the "image menu." What is odd is when I have the

[jQuery] Re: autocomplete new dependency

2007-11-27 Thread Pops
Shelane, I recently made changes to jQuery.autocomplete.js that doesn't require jquery.dimensions.js and adds a exception trap for bgiframe non- existence. http://beta.winserver.com/public/test/MultiSuggestTest.wct This modified verison also offers support for scrolling large list that do

[jQuery] Re: Slickspeed from Mootools

2007-11-01 Thread Pops
Whoa! Rey, what a different between IE and FF. I am not interested in the half-truths in any of this, but rather what does the test show to improve jQuery, if anything? -- HLS On Nov 1, 1:59 pm, Rey Bango <[EMAIL PROTECTED]> wrote: > Hi Prit, > > Please do a search in the archives for this

[jQuery] Re: New Plugin: SimpleModal

2007-10-29 Thread Pops
On Oct 26, 12:19 am, Eric Martin <[EMAIL PROTECTED]> wrote: > > Ok, I checked into it and I have the FireFox NOSCRIPT plugin. Just too > > dangerous out there to willy nilly allow all sites use Javascript. So > > I turn it on on a site by site basis. NOSCRIPT puts alittle clickable > > icon in

[jQuery] Re: New Plugin: SimpleModal

2007-10-25 Thread Pops
speed, it worked very well. -- HLS On Oct 25, 9:12 pm, Pops <[EMAIL PROTECTED]> wrote: > Nice, but it doesn't work under FireFox. Started IE and I was able to > see the demo. Let me try Opera. Slow, but it worked. > > Good for your first plugin once you get the X-Br

[jQuery] Re: New Plugin: SimpleModal

2007-10-25 Thread Pops
Nice, but it doesn't work under FireFox. Started IE and I was able to see the demo. Let me try Opera. Slow, but it worked. Good for your first plugin once you get the X-Browser issues resolved. :-) -- HLS On Oct 25, 5:14 pm, Eric Martin <[EMAIL PROTECTED]> wrote: > On Oct 25, 8:05 am, "R. Raj

[jQuery] Re: Coming to jQuery from Prototype

2007-10-25 Thread Pops
Good slides, I like - but for whom? not sure. Now I have a better idea about prototype and comparible features, providing me some incentive to explore prototype. I love jQuery, but its QA, in particular consistent x-browser behavior is something to keeps bothering me. Anyway, the slides only sh

[jQuery] Best way/approach for updating table via ajax

2007-10-23 Thread Pops
I am still exploring all these, but currently with the idea of minimizing DOM and jQuery work, I have a table like so: c1c3c3 where block initially has no rows. The ajax call, runs a server side applet which returns the rows, a table without the tags and this result is injected

[jQuery] Client Side HTML filter and DOM readiness

2007-10-15 Thread Pops
I would like to see if I can move our server side mail tag injection to jQuery on the client side. I guess I am wondering if the logic I am thinking will prevent any premature browser processing before jQuery gets to perform the filtering. When a message is going to be displayed on our system, t

[jQuery] Simplifying this X/Y box display adjustment

2007-10-14 Thread Pops
I wrote a tip plugin for our needs and spent much of the design time getting the cross-browser correct placement of the tip box within a BODY container (viewport) or a user-defined viewport (a specific id passed to the plugin settings). I think I finally got it all worked out. The requirements

[jQuery] Re: event.pageX/Y in IE - RESOLVED

2007-10-13 Thread Pops
t 13, 5:24 am, Wizzud <[EMAIL PROTECTED]> wrote: > Can you make a test page available that demontrates this problem? > And what version of IE has the problem? > > On Oct 13, 6:47 am, Pops <[EMAIL PROTECTED]> wrote: > > > I am not sure how I missed this early in my plugi

[jQuery] event.pageX/Y in IE

2007-10-12 Thread Pops
I am not sure how I missed this early in my plugin development, but I see it now. For my new hover plugin, I noticed jQuery was extending the event structure with extra mouse information such as: event.pageY and event.pageX and that this extended event is passed to my show and hide handlers.

[jQuery] Re: How to iterate and manipulate an object

2007-10-12 Thread Pops
Hi Mike, I didn't analyze your code, but as I said (or maybe I was thinking of saying it but do not) is that JavaScript, to me, a guy is extremely strict and high software quality development practices, promotes bad coding habits. I say that because I have already caught myself doing stuff that

[jQuery] Re: How to iterate and manipulate an object

2007-10-11 Thread Pops
) break;//done > > copy[i] = cache[i]; > > copy.length++; > >} > >cache = copy;//replace the old cache > > > } > > > The other option is to have 2 parallel arrays of keys and values... > > Hope that helps. > > > Ariel Fl

[jQuery] Re: How to iterate and manipulate an object

2007-10-11 Thread Pops
ociated name with the array index. Thanks -- HLS On Oct 11, 4:26 am, "Michael Geary" <[EMAIL PROTECTED]> wrote: > > From: Pops > > > Is this the only way to iterate through an object? > > > for ( x in myObject) { > > } > > Ultimately

[jQuery] How to iterate and manipulate an object

2007-10-11 Thread Pops
Is this the only way to iterate through an object? for ( x in myObject) { } and how can you remove an field in an object? For example: var obj = { x1: 1123, x2: 212, x3: 123131 }; I want to remove obj.x2 the obj object to end up with: { x1: 1123, x3: 1

[jQuery] Re: Applying a string as a function?

2007-10-08 Thread Pops
as setting? var settings = { ... show: "slideDown". speed: 50, ... }; $box[ settings.show || 'show' ](settings.speed); Correct? -- HLS On Oct 9, 1:49 am, "Michael Geary" <[EMAIL PROTECTED]> wrote: > > F

[jQuery] Re: Applying a string as a function?

2007-10-08 Thread Pops
: xxx.apply(x,[y,z]); >From what I am understanding, x is "this" inside the function xxx and x,y is the parameter to the function? Is that correct in general when using .apply? or am I off base completely? --- HLS On Oct 9, 1:49 am, "Michael Geary" <[EMAIL PROTEC

[jQuery] Applying a string as a function?

2007-10-08 Thread Pops
I am completing a new plugin where I have a function JSON option to fade in instead of just show(). So the code is: settings.fadeIn?$box.fadeIn():$box.show(); settings.fadeIn is passed as a true or false value in the plugin function settings parameter: var settings = { ..

[jQuery] Re: Packing JS code

2007-10-08 Thread Pops
Thanks rey, this is good enough. I just needed something for our automated build/distribution process. - HLS On Oct 8, 9:24 am, Rey Bango <[EMAIL PROTECTED]> wrote: > Pops, > > Check out YUI compressor: > > http://www.julienlecomte.net/blog/2007/08/13/introducing-th

[jQuery] Packing JS code

2007-10-07 Thread Pops
What I can download to pack and "minified" my javascript code? Thanks

[jQuery] Re: setRequestHeader 1.1.4 vs 1.2.1

2007-09-26 Thread Pops
Tim, Try wrapping a try/catch around it to see if there any untrapped error: try { your stuff } catch(e) { alert(e.message?e.message:e); } Also, if you are using FireFox, install FireBug debugger plugin which will give you alot of debugging information with the ajax call. -- HLS

[jQuery] Re: Odd Ajax problem:

2007-09-25 Thread Pops
tion: "open2space", start: new Date("2007-09-24 18:14:00"), end: new Date("2007-09-24 22:14:00"), duration: "4", work_type: "Programming", project: "simpleTracker", description: "Tst 10" } ]}); jsonp (

[jQuery] Re: Odd Ajax problem:

2007-09-25 Thread Pops
I did the following to make it work: I wrapped the data as such: MyJSON({ items: [ your items here ] }); then I created a function: Function MyJSON(data) { var json = data.items; var tbl = ""; tbl += ""; tbl += "Id"; tbl += "Client"; tbl += "Project"; tbl += "Start"; tbl += "E

[jQuery] Re: filtering elements

2007-09-23 Thread Pops
there is a truncate plugin ... yup, there > > is (http://www.reindel.com/truncate/). I'm not sure if that helps > > or not. > > > -- > > Brandon Aaron > > > On 9/22/07, Pops <[EMAIL PROTECTED]> wrote: > > > Hi Brandon, > > > Maybe you can assist here as

[jQuery] Re: filtering elements

2007-09-22 Thread Pops
; $this.remove(); > // remove the element from the jQuery collection > return false; > } > // Otherwise keep the element in the jQuery collection > return true; >

[jQuery] Re: filtering elements

2007-09-22 Thread Pops
$this.remove(); > // remove the element from the jQuery collection > return false; > } > // Otherwise keep the element in the jQuery collection > return true; > }); > &

[jQuery] Re: filtering elements

2007-09-22 Thread Pops
l. -- HLS On Sep 22, 1:39 pm, "Brandon Aaron" <[EMAIL PROTECTED]> wrote: > The .not and .filter methods only run against the matched elements within > the jQuery collection. In order to filter all elements you will need to add > all elements to the collection. I think something l

[jQuery] filtering elements

2007-09-22 Thread Pops
I noticed some example using something like so: data = $(data).not("style, meta, link, script, title"); to filter out thes tags. I tried using this to filter img as well: data = $(data).not("style, meta, link, script, title, img"); and what I noticed is that this doesn't work if the elem

[jQuery] Gradient Filter for FireFox or Mozilla

2007-09-20 Thread Pops
I'm wondering if there a CSS gradient filter for FF/Mozilla like there is for IE? Here is an old Microsoft example for IE that I just changed using jQuery. http://beta.winserver.com/public/test/demo-gradient.wct -- HLS

[jQuery] Re: AJAX, sessions, and HTTP Status Codes

2007-09-19 Thread Pops
IGEST + COOKIE combined authentication logic. Its a "trick" used to force the browser credentials to be released. IE 6.0 now includes a Javascript command to release credentials. -- HLS On Sep 19, 8:42 am, Pops <[EMAIL PROTECTED]> wrote: > On Sep 19, 6:22 am, "Erik Bees

[jQuery] Re: AJAX, sessions, and HTTP Status Codes

2007-09-19 Thread Pops
On Sep 19, 6:22 am, "Erik Beeson" <[EMAIL PROTECTED]> wrote: > I know 410 isn't exactly made for this, but I'm wondering if there are > any side effects to the technique in generally, and specifically to > using 410. Would something else be more appropriate? Are there other > techniques for dealin

[jQuery] Re: Better way of initializing a show() or hide() state

2007-09-19 Thread Pops
played normally, and with js on, the css will be added and, in your > case, hide the elements you want to be hidden.. > > http://www.bobbyvandersluis.com/articles/dynamicCSS.php > > dennis. > > Pops wrote: > > Now that I finding myself doing the following in a few areas, I do

[jQuery] Re: AJAX, sessions, and HTTP Status Codes

2007-09-19 Thread Pops
Erik, Are you asking if using 410 is appropiate here? -- HLS On Sep 18, 5:43 pm, "Erik Beeson" <[EMAIL PROTECTED]> wrote: > I've been thinking about using HTTP Status codes and a global ajax event to > deal with session timeouts. Here's a little example: > > http://erikandcolleen.com/erik/proje

[jQuery] Better way of initializing a show() or hide() state

2007-09-19 Thread Pops
Now that I finding myself doing the following in a few areas, I don't quite like it for a finalization of the code. Basically, for the most part, a good bit of my jQuery usage is to add dynamic toggling of current views already established in various pages in our package. In some cases, I want t

[jQuery] Re: Finding selectors between two points

2007-09-18 Thread Pops
sionSection").click(function() { > $(this).nextUntil("tr.versionSection").toggle(); > > }); > > And here is John's test page: > > http://dev.jquery.com/~john/jquery/test/nextuntil.html > > Hope that he

[jQuery] Finding selectors between two points

2007-09-18 Thread Pops
I have a table with some is used as divide other rows: ... .. .. .. .. ... .. .. etc. In lieu of changng the HTML page, I want to see if I can find the after each class="versionSection" row. I want to do a toggler for each section. //-

[jQuery] Re: Convert new lines to br

2007-09-18 Thread Pops
Not a jQuery method but a String "replace" method. Try this: var s = $().text(); s.replace(/\n/g,""); --- HLS On Sep 18, 12:03 pm, Mike Miller <[EMAIL PROTECTED]> wrote: > Are there any jquery functions that can take a text value and convert > any newlines to tags?

[jQuery] Looking for OnMinimize/OnMaximize

2007-09-17 Thread Pops
I am wondering if there is a better solution than looking for a "onMinimize/OnMaximize" events. Basically, I have a hidden container with a tag that was injected with a button click. Once injected the applet is auto- activated. If the page is minimized and restored, the applet is reactivated a

[jQuery] Re: Injecting an tag

2007-09-16 Thread Pops
and > probably identically in the case where the container > element is already empty. > > -Mike > > > From: Pops > > > hmm, seems to work now. Never mind. > > On Sep 16, 2:57 pm, Pops <[EMAIL PROTECTED]> wrote: > > > Why do I need to .append() to a

[jQuery] Re: Injecting an tag

2007-09-16 Thread Pops
hmm, seems to work now. Never mind. -- HLS On Sep 16, 2:57 pm, Pops <[EMAIL PROTECTED]> wrote: > Why do I need to .append() to a container rather than use .html() for > tags? > > function PlayAudioWav(src) > { >var s = ""; >if (jQuery.browser

[jQuery] Injecting an tag

2007-09-16 Thread Pops
Why do I need to .append() to a container rather than use .html() for tags? function PlayAudioWav(src) { var s = ""; if (jQuery.browser.msie) { s += ''; } else { s += ''; s += ''; s += ''; } //$("#divAudio").html(s); // html() does not work, use append()

[jQuery] Re: finding the parent style

2007-09-15 Thread Pops
computed style from its parent -- HLS On Sep 15, 11:34 pm, Pops <[EMAIL PROTECTED]> wrote: > On Sep 15, 10:17 pm, "Erik Beeson" <[EMAIL PROTECTED]> wrote: > > > Oh, just read your message again. I'd say make your "widget" page fix > > itsel

[jQuery] Re: finding the parent style

2007-09-15 Thread Pops
Thanks Mike. I tried this but I think we need to get the "computedStyle" not sure if that is correct, but that seems to return something.I think I have it (close) but it comes back in rgb format which I need to convert, I think. Style exploring. :-) -- HLS On Sep 15, 10:45 pm, "Michael Ge

[jQuery] Re: finding the parent style

2007-09-15 Thread Pops
On Sep 15, 10:17 pm, "Erik Beeson" <[EMAIL PROTECTED]> wrote: > Oh, just read your message again. I'd say make your "widget" page fix > itself. I'm not sure how cross platform this is, but cursory testing > indicates that you can do: > > if(window.parent == window) { > // standalone page > >

[jQuery] finding the parent style

2007-09-15 Thread Pops
I have a master-detail display with an iframe to display the detail. The iframe URL is autonomous in that it was originally designed to be displayed in its own page and hence it has its own style sheet. What I would to do is automatically change the style sheet (colors mostly) of the iframe cont

[jQuery] Re: jQuery 1.2 seems to break the Treeview plugin

2007-09-12 Thread Pops
On Sep 12, 11:13 pm, "Brandon Aaron" <[EMAIL PROTECTED]> wrote: > On 9/12/07, Pops <[EMAIL PROTECTED]> wrote: > > IMO, whatever excuse there is, this pattern of showing a lack of > > backward compatibility, altered method behavior pattern with the > >

[jQuery] Re: Waiting for Ajax Response

2007-09-12 Thread Pops
Hi, You are not clear on what the issue is, "waiting for Ajax response" Are you saying that you don't see anything? I'm working on a jQuery Ajax improvement and I can't wait to finish it up and get it releases as a plugin replacement. It resolves quite a few issues with the jQuery AJAX implemen

[jQuery] Re: jQuery 1.2 seems to break the Treeview plugin

2007-09-12 Thread Pops
Alex, For what it is worth, I was able to confirm with three recent working v1.1.4 treeview applications are now no longer working "the same" when I simply change the

[jQuery] Re: Find textNodes and wrapping it with a tag

2007-09-09 Thread Pops
Yes thank you. Incidently, I just found a .wrapText() method in the jQuery MoreSelectors plugin that does the same thing! // Plugin to wrap html around non-empty text node(s) within an element: // (ignores text in child elements) // Eg: $("LI").wrapText("") // B

[jQuery] Re: Find textNodes and wrapping it with a tag

2007-09-08 Thread Pops
On Sep 8, 10:09 pm, "Piotr Petrus" <[EMAIL PROTECTED]> wrote: > Wow, now that's big. I'd try just this: > > $('ul > li').each(function() { > if (this.firstChild && this.firstChild.nodeType == 3) { > $(this.firstChild).wrap('') > }}) So you can wrap() this.firstC

[jQuery] Re: Find textNodes and wrapping it with a tag

2007-09-08 Thread Pops
On Sep 8, 6:38 am, Pops <[EMAIL PROTECTED]> wrote: > For my List tree plugin, it needs to handle situations where the > structure contains LI tags with text and not text wrapped with a HTML > tag (normally a A tag) > > ... > > So short of removeNode()/createNode,

[jQuery] Find textNodes and wrapping it with a tag

2007-09-08 Thread Pops
For my List tree plugin, it needs to handle situations where the structure contains LI tags with text and not text wrapped with a HTML tag (normally a A tag) For example: title ... ... My CSS and tree code handles it nicely when the text wrapped with a

[jQuery] Re: Quite big performance issue

2007-09-07 Thread Pops
Hi, I took a moment to look are your stuff and I am not sure what you are expecting. Of course your jQuery version will be slower than your native version. I personally think it can reduced tremedously, there is alot of overhead in there for a rather simply application. I can see immediately t

[jQuery] IE vs FF with height: issues

2007-09-07 Thread Pops
I have a tree with I noticed that when the UL are collapsed, with IE there is "visible space" where with FF there is none. The solution for me was to add logic in my initialization code: function prepareTree(idTree) { ... // // IE Needs this to remove "whi

[jQuery] Re: Expanding a sub-tree - obtaining the path to a node/tag

2007-09-07 Thread Pops
On Sep 7, 6:31 pm, "Glen Lipka" <[EMAIL PROTECTED]> wrote: > Some random helpful hints. (or not) All comments are helpful even if it may not apply. These do apply! :-) > $("ul:visible") gives you just the ones that are not display:none. Ok! I was using .is(":hidden") > $("ul.open") might b

[jQuery] Re: Expanding a sub-tree - obtaining the path to a node/tag

2007-09-07 Thread Pops
Ok, got it! $("[EMAIL PROTECTED]").show().parents("ul").show(); Duh! It reads so logical from left to right! That gives me the exact number of elements and show() events! With my real tree many list, its a major different in speed! -- HLS On Sep 7, 5:14 pm, Pops <[

[jQuery] Re: Expanding a sub-tree - obtaining the path to a node/tag

2007-09-07 Thread Pops
Item 1.3 --- HLS On Sep 7, 4:49 pm, Pops <[EMAIL PROTECTED]> wrote: > That worked! Perfect! Thanks! > > I did get an idiom to work but it was returning too many recursive > elements: > > var $v = $("[EMAIL PROTECTED] :first-ch

[jQuery] Re: Expanding a sub-tree - obtaining the path to a node/tag

2007-09-07 Thread Pops
d that .parents(filter) will continue to propapate upward! That's perfect! Thanks again -- HLS On Sep 7, 4:10 pm, "Glen Lipka" <[EMAIL PROTECTED]> wrote: > How about this? (in the open function) > $(this).parents("ul").show(); > > Glen > > On 9/7/0

[jQuery] Expanding a sub-tree - obtaining the path to a node/tag

2007-09-07 Thread Pops
I have a tree list and when I toggle a deep item to expand/show, I want all its parents to expand as well. What selector or method will give me this? I guess this is expanding the sub-tree which I can do natively, but would like to do it via jQuery. TIA -- HLS

[jQuery] Re: Request: Quick tutorial on jQuery filtering/limiting methods

2007-09-06 Thread Pops
On Sep 6, 4:50 am, Klaus Hartl <[EMAIL PROTECTED]> wrote: > Pops wrote: > > Sorry if I am a dounce, but I still don't see the invalidity of it. > > > Do you have an example to show how this is incorrect in relationship > > to anything (DOM? CSS?) ? >

[jQuery] Re: Request: Quick tutorial on jQuery filtering/limiting methods

2007-09-06 Thread Pops
blah > > blah > > > > > But these are invalid: > > > > blah > > > > > blah > > blah > > > > Browsers probably attempt to twist the invalid code into a valid > format, but you can&#x

[jQuery] Re: Request: Quick tutorial on jQuery filtering/limiting methods

2007-09-05 Thread Pops
Klaus, Today, this has thrown me for a loop: > Is that reallly the HTML? If so, it is invalid and you cannot expect any > selector to be reliable in any browsers. I'm not refering to the missing > slashes in the closing tag - I assume you just left them out in the > example here -, but the incor

[jQuery] Re: Request: Quick tutorial on jQuery filtering/limiting methods

2007-09-05 Thread Pops
On Sep 5, 4:11 am, Klaus Hartl <[EMAIL PROTECTED]> wrote: > Is that reallly the HTML? If so, it is invalid and you cannot expect any > selector to be reliable in any browsers. I'm not refering to the missing > slashes in the closing tag - I assume you just left them out in the > example here -,

[jQuery] Re: Request: Quick tutorial on jQuery filtering/limiting methods

2007-09-05 Thread Pops
o inject an hidden div with id that might conflict with yours? Thanks for your comments. -- HLS On Sep 5, 4:36 am, "Aaron Heimlich" <[EMAIL PROTECTED]> wrote: > On 9/5/07, Pops <[EMAIL PROTECTED]> wrote: > > > > > No, I am not describing CSS. > > Perhap

[jQuery] Re: Request: Quick tutorial on jQuery filtering/limiting methods

2007-09-05 Thread Pops
On Sep 5, 2:40 am, "Aaron Heimlich" <[EMAIL PROTECTED]> wrote: > On 9/5/07, Pops <[EMAIL PROTECTED]> wrote: > > > > > Yes, $('#foobar') returns the 1st one, but you can have as many > > id="foobar" your applications needs and

[jQuery] Re: Request: Quick tutorial on jQuery filtering/limiting methods

2007-09-04 Thread Pops
On Sep 4, 2:53 pm, "Andy Matthews" <[EMAIL PROTECTED]> wrote: > One issue though...$('#foobar') would only return the first occurrence of > foobar because it uses getElementbyID which returns the first occurrence. > That's desired behavior as there should only ever be one ID of a certain > name

[jQuery] Re: Request: Quick tutorial on jQuery filtering/limiting methods

2007-09-04 Thread Pops
DIVs, etc, the long way :-) -- HLS On Sep 4, 5:44 pm, Klaus Hartl <[EMAIL PROTECTED]> wrote: > Pops wrote: > > You can so do multiple selects, like find all divs and h3 > > > $('div h3') > > > but if you use the comma: > > > $('di

[jQuery] Re: Request: Quick tutorial on jQuery filtering/limiting methods

2007-09-04 Thread Pops
On Sep 4, 2:42 pm, Pops <[EMAIL PROTECTED]> wrote: > You can so do multiple selects, like find all divs and h3 > > $('div h3') > > but if you use the comma: > > $('div,h3') > > that says find the H3 tag that is within div, I think I kn

[jQuery] Re: Request: Quick tutorial on jQuery filtering/limiting methods

2007-09-04 Thread Pops
On Sep 4, 10:11 am, "Andy Matthews" <[EMAIL PROTECTED]> wrote: > Hrm... > > But that didn't work. So I'm wanting to learn HOW I can do this sort > of thing and a tutorial on these methods would help immensely. Have you tried the interactive Selector tester tool? http://www.woods.iki.fi/interac

[jQuery] Re: Request: Quick tutorial on jQuery filtering/limiting methods

2007-09-04 Thread Pops
Andy, I'm not selector expert (yet), but this worked for me: var $l = $('label').filter(function() { return $(this).html() != " "; }); --- HLS On Sep 4, 10:11 am, "Andy Matthews" <[EMAIL PROTECTED]> wrote: > Hrm... > > That didn't seem to work. Using this HTML: > > A > N >   > D > Y > > Wit

[jQuery] Re: Getting lazy with GET and changing STATE

2007-09-03 Thread Pops
I pressed SEND to fast before correcting some typos and adding some needed clarification: Here is the general rule of thumb: Use POST when the data: 1) Produces a command line over 1024 characters. GET has its line limits. Do not assume all servers will accept anything much longer than that

[jQuery] Re: Getting lazy with GET and changing STATE

2007-09-03 Thread Pops
Duncan, Here is the general rule of thumb: Use POST when the data: 1) Produces a command line over 1024 characters (GET has its line limits) 2) Complex and by I mean: - - > think it will do no harm. GET operations change state, and links > > that change state are confusing to u

[jQuery] Re: document.ready in jQuery 1.1.4 - IE and FF inconsistent behavior

2007-09-02 Thread Pops
Done John. Thanks -- HLS On Sep 2, 2:09 pm, "John Resig" <[EMAIL PROTECTED]> wrote: > Can you post this to the jquery-dev list as opposed to the general > discussion list? Thanks.http://groups.google.com/group/jquery-dev > > --John > > On 9/2/07, Pops <[

[jQuery] document.ready in jQuery 1.1.4 - IE and FF inconsistent behavior

2007-09-02 Thread Pops
Hi, A number of folks have independently come across this issue. What I would like to hear from John Resig or from other team members if the change was intentional? and why? In short, what I found is that $(document).ready() behaves differently in 1.1.4 for FF and IE. In appears to me that the

[jQuery] Re: AJAX GetElementByID problem

2007-09-01 Thread Pops
; http://jquery.com/blog/2007/08/24/jquery-114-faster-more-tests-ready-... > > --Erik > > On 9/1/07, Pops <[EMAIL PROTECTED]> wrote: > > > > > Kevin, > > > Thats interesting. I just switched it to 1.1.3 and I now see what you > > were talking about. Oh

[jQuery] Re: AJAX GetElementByID problem

2007-09-01 Thread Pops
Kevin, Thats interesting. I just switched it to 1.1.3 and I now see what you were talking about. Oh gosh, you weren't making things up. :-) I have to keep this mind for future stuff when we begin to embed current html with native DOM reference statements. -- HLS On Sep 1, 10:44 am, <[EMAIL P

[jQuery] Re: AJAX GetElementByID problem

2007-09-01 Thread Pops
On Aug 31, 6:38 pm, <[EMAIL PROTECTED]> wrote: > as you suggested and while it does run the alert message, it > still fails out on the document.getElementByID in the destination > page with the same error: TypeError: document.getElementById("blah1") > has no properties > > Would you be able to

[jQuery] Re: Some jQuery Questions

2007-08-31 Thread Pops
On Aug 31, 4:51 pm, "Michael Geary" <[EMAIL PROTECTED]> wrote: > > Here is a example JSON: > > > var json = { > > fields: > > [ > >{prompt1: "Login Name"}, > >{prompt2: "Real Name"}, > >{prompt3: "Location"}, > >{prompt4: "Password"}, > >{prompt5: "Security Group"}, > >

[jQuery] Re: Some jQuery Questions

2007-08-31 Thread Pops
On Aug 31, 2:37 pm, "John Beppu" <[EMAIL PROTECTED]> wrote: > > 2) Best way to create a toJSON() string or object. > > anyObject.toSource() Hi John, Yes, at first, that is what I thought and at first, i said "Ah ha!, thats it!" But its not quite right for all situations and worst, atleast up

[jQuery] Re: Document Ready - It lost me!?

2007-08-31 Thread Pops
On Aug 30, 5:25 am, Klaus Hartl <[EMAIL PROTECTED]> wrote: > Simulating block scope in which you can safely use the $ shortcut... Ok, and now that I came across the need, I saw you and Michael talk about this. Before I discovered jQuery 3 weeks ago, I discovered the simple "alias" trick for $

[jQuery] Re: The Mitchies. Rating the Best GUI Plugins

2007-08-31 Thread Pops
On Aug 30, 4:45 pm, Mitch <[EMAIL PROTECTED]> wrote: > I am so pleased you took the time to look closely at my project. Your > analysis is perfect, but I do have some questoins below. Some may > sound dumb because I am so new to all this. My pleasure. I learning from all this too. :-) > > > >

[jQuery] Re: Some jQuery Questions

2007-08-31 Thread Pops
Michael Geary wrote: > > IE doesn't like: > > > > json = {}; > > > > but will accept: > > > >var json = {}; > > Let me take a guess... > > You are executing this code inside a function, and you have an HTML element > in your page with the id 'json'. > ... > Did I get it right? Gawd, I sh

[jQuery] Re: Some jQuery Questions

2007-08-31 Thread Pops
Michael Geary wrote: > > I figured it out know. You got to look at the constructor type to see > > if its an Object, Array or String. From there you can decide to use > > for each or for in or for loop. > > You don't have to write that code yourself: > > http://jollytoad.googlepages.com/json.j

[jQuery] Re: next() problems

2007-08-31 Thread Pops
Sean wrote: > Oh, I just tried it and actually you're right! Bummer. It worked in > the code I was using, anyway ;-) > > That behavior actually doesn't make much sense to me; it doesn't seem > like, in practive, you'd ever have immediate siblings that could be > some class (or whatever) that yo

[jQuery] Re: Some jQuery Questions

2007-08-31 Thread Pops
Klaus Hartl wrote: > Yes, there is a direct method, just use a for loop: > > for (var key in json) { > console.log(key); // key > console.log(json[key]); // value > } > > Maybe I didn't get the question right? Hi Klaus, Ok, Now I see why I asked the question. Yes, I did try the abov

[jQuery] Re: Some jQuery Questions

2007-08-31 Thread Pops
Klaus Hartl wrote: > I'm going to answer the first question (low hanging fruit)... :-) > Yes, there is a direct method, just use a for loop: > > for (var key in json) { > console.log(key); // key > console.log(json[key]); // value > } > > Maybe I didn't get the question right? I don

[jQuery] Re: AJAX GetElementByID problem

2007-08-31 Thread Pops
Kevin, I am not sure why you get this property error, but I believe that the blah1 script will not be evaluated when you go native with getElementById(). Atleast not here when I did a quick emulated test of your code. However, changing it to: $("#destDiv1").html(thehtml); worked perfectly, wit

[jQuery] Some jQuery Questions

2007-08-31 Thread Pops
Now that getting a handle on the JS/jQuery language, I have these basic questions 1) For an JSON object, how do you get the key name? Example var json = {field1: "data2", field2: "data2"}; I know how to get the data, but how do you get the field names? IOW, I want to get the names of the keys

[jQuery] Re: JS stops running

2007-08-30 Thread Pops
I see you have a typo and wrong id? $("#commentform form").submit(function(){ var uname = $("#commenter").val(); ^^ wrong id? var email = $('#email').val(); var url = $('#website').val();

[jQuery] Re: New plugin: elementReady

2007-08-30 Thread Pops
Thinking about this, ideally, this would the way a "ideal JS/DOM/HTML" system would behave: function divConstructor(self) { ... } What happens now is that when the page is being rendered (spit out by the server and received by the browser), when DOM sees elements like tis with the onC

[jQuery] Re: New plugin: elementReady

2007-08-30 Thread Pops
Rey, I think, if its the same thing I am thinking would be where many developers and working sites mix up HTML and

[jQuery] Re: Document Ready - It lost me!?

2007-08-30 Thread Pops
example. What would be its purpose to have this wrap? --- HLS On Aug 30, 4:37 am, Pops <[EMAIL PROTECTED]> wrote: > Whoa! I thought I was beginning to understand this stuff, and > then. > > Ok, I thought that this piece of JS code in the tag like so: > &

[jQuery] Document Ready - It lost me!?

2007-08-30 Thread Pops
Whoa! I thought I was beginning to understand this stuff, and then. Ok, I thought that this piece of JS code in the tag like so: (function($) { ... Does it see HTML tags? ... })(jQuery); html tags .. That the whole purpose of (function($) {.. })(jQuery) was so it

[jQuery] Re: The Mitchies. Rating the Best GUI Plugins

2007-08-29 Thread Pops
Mitch, I have to say - excellent job, very nice. I do have some comments, and this is not just you but nearly all the web 2.0 sites: - No Javascript Since it depends on JavaScript, and you don't want to make it work in web 1.0, then add the following: This site requires JavaScript to be enab

[jQuery] Re: Ajax Authentication Question

2007-08-29 Thread Pops
r with the URL paths are different. Not just with XHR. So I need to continue looking to see if this can be solved for FireFox. Any "time saving" comments would be appreciated. :-) --- HLS On Aug 29, 6:01 pm, Pops <[EMAIL PROTECTED]> wrote: > I'm pulling my hair on this

[jQuery] Ajax Authentication Question

2007-08-29 Thread Pops
I'm pulling my hair on this one. It might not be a jQuery issue but just the BROWSER issue. But since I am planning to use jQuery, the issue applies to it as well. First, this is under FIREFOX only. I don't see this behavior with IE and OPERA. But I think maybe it may something by FF design an

[jQuery] Re: null vs Vriables containing null

2007-08-29 Thread Pops
Thanks mike On Aug 29, 3:21 pm, "Michael Geary" <[EMAIL PROTECTED]> wrote: > > From: Pops > > > This might be slightly off topic, a javascript script > > question, but its being applied to jQuery. :-) > > > Ok, there is a different in other languag

  1   2   3   >