[jQuery] Re: How save is Jquery with JSON

2009-01-27 Thread Shawn Grover
Three options: jsonp - allows ajax type requests to other domains iframes - set the src attribute on an iframe to the remote page, use JS to extract the info you need from that frame server side - do an http request via your server side code, extract what you need there, and make it available

[jQuery] Re: getting to a variable in the parent frame - stumped

2009-01-24 Thread Shawn Grover
By declaring var module inside the function, that variable only exists inside the function. If you need access to that variable outside the function, you need to either return it from the function (i.e. return module; ) or declare the variable in the global scope. Something like this:

[jQuery] Re: change image scr of all images in a page

2009-01-20 Thread Shawn Grover
Giovanni Battista Lenoci wrote: Maybe I confused you. You've mixed two types of syntax. You can achieve this with 2 syntax: 1. $('img').each(function(){ $('img').attr({'src': http://localhost/s.demo/+$(this).attr('src')}); }); 2. $('img').each(function(){

[jQuery] Re: Odd issues passing JSON to server [resolved]

2008-12-15 Thread Shawn Grover
to be changed to read $data = json_decoe(stripslashes($_GET[p)); At which point it worked as expected. Shawn Shawn Grover wrote: I'm not sure if I have a server side issue or a client side issue. The problem is that I am generating a JSON string in my plugin, and passing it to a php page

[jQuery] Odd issues passing JSON to server

2008-12-13 Thread Shawn Grover
I'm not sure if I have a server side issue or a client side issue. The problem is that I am generating a JSON string in my plugin, and passing it to a php page (though the back end shouldn't matter in the long run). I can see that a parameter is infact passed, but trying to decode that

[jQuery] Re: getBoxObjectFor() is deprecated

2008-11-26 Thread Shawn Grover
I see this occasionally, but on pages that I didn't write, or even use jQuery. This is a FF issue, I believe I could be wrong though... Shawn edzah wrote: Well I am getting the same error and I'm not using the flash plugin. Anyone else get this? Ed **Since I can't reopen this old

[jQuery] Re: How to find the first parent?

2008-11-24 Thread Shawn Grover
$(#myElement).parent(); Shawn Debby wrote: How to find very first parent of perticular element?

[jQuery] Re: get top most parent

2008-11-24 Thread Shawn Grover
$(#header2).children(p.submenu); or $(#header2).find(.submenu); or make use of context: $(.submenu, #header2); - read that as all items with class of .submenu under the #header2 object. The #header2 part can be a selector, DOM element, or jQuery object. HTH Shawn Liam Potter wrote:

[jQuery] Re: Instantiating multiple plugin instances on the same page

2008-11-24 Thread Shawn Grover
Depends how your plugin is set up. If you didn't implement the chaining techniques, then chances are you only have one instance. But if you did implement chaining, you *should* have multiple instances. Do you have something like this line in your plugin? return $(this).each( function () {

[jQuery] Re: How to create own jQuery plugin?

2008-11-18 Thread Shawn Grover
http://www.learningjquery.com/2007/10/a-plugin-development-pattern This assumes some basic jQuery knowledge, but gives a nice how and why of building a better plugin. (hope this info is still current cuz I use it often) Shawn Debby wrote: Hello, Can anybody expalin how to create own

[jQuery] Modernized Portlets?

2008-11-15 Thread Shawn Grover
I found the jQuery Portlets at http://sonspring.com/journal/jquery-portlets. This appears to be outdated (makes use of the interface library for the sortables rather than ui.jquery...). Does anyone know if there is a more current version of this? And one that doesn't necessarily depend on

[jQuery] Re: Modernized Portlets?

2008-11-15 Thread Shawn Grover
://ui.jquery.com/repository/real-world/layout/ --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Nov 15, 2008, at 5:31 PM, Shawn Grover wrote: I found the jQuery Portlets at http://sonspring.com/journal/jquery-portlets. This appears to be outdated (makes use

[jQuery] Re: A real modal window... is it possible?

2008-11-14 Thread Shawn Grover
This is a coding approach issue, rather than a modal window issue. To me at least. When I needed behavior like this, I wrote my code in such a way that a function was called that set up the environment and then opened the modal window. Now that the modal window is open, I know that

[jQuery] Re: Animating table rows

2008-11-13 Thread Shawn Grover
Another option is to wrap each of your TDs within the row with a DIV. Then you can do something like $(#myRow div.animateMe).slideUp(); Then the row has no vertical height because it's content is now invisible. Just a thought Shawn Karl Swedberg wrote: Chris, The .fadeIn() and

[jQuery] Sortable type behavior?

2008-11-12 Thread Shawn Grover
I need to allow the user to re-order a number of DIVs on the screen, each of which contains a title DIV that would be the drag handle. UI's sortables seems almost perfect, but I don't see how I can apply it to the divs in my case... Any suggestions? A sample div might look something like:

[jQuery] Re: Event Capture Architecture

2008-11-12 Thread Shawn Grover
For ease of coding, a separate bind method for each element is pretty straight forward. However when you are dealing with a large number of elements, and your processing needs to look at those large number of elements, then performance can get to be a problem. For instance

[jQuery] Remove CSS setting (not class)?

2008-11-11 Thread Shawn Grover
I have an odd situation where a DIV can be displayed in one of 3 states: - normal (X x Y pixels in dimension), - minimized (hidden) - maximized - the height value removed so that the div grows/shrinks to show the contents of the div. The first two are done, but I'm hitting a wall on the

[jQuery] Re: Remove CSS setting (not class)?

2008-11-11 Thread Shawn Grover
Thanks - auto did the trick. I might be back in a bit with questions about animating this, but I'm looking at the animate() method first... Shawn Liam Potter wrote: $(#myElement).css(height, auto); MorningZ wrote: try $(#myElement).css(height, null); On Nov 11, 7:52 am, Shawn

[jQuery] Re: pirobox plugin released

2008-11-11 Thread Shawn Grover
I'd think that leaving the spaces and such in there make it more readable. And the more readable, the more reusable the code is by others. If you really want lightweight, then minimize or pack the library and use that version. But the developer version should be as developer friendly as