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
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:
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(){
$('img').attr('src',"http://localho
I've seen this caching problem before as well. I handle it by just
adding a random number to the URL I'm requesting.
i.e.
$.ajax({
url: "mypage.cfm?r=" + Math.random(),
data: myData,
//. . .
});
If you are doing a GET request, the random parameter can go into the
Data then. The para
Sounds like a bad design in terms of usability to me. What happens when
the user wants to click the last visible item in the menu, and it tries
to scroll? Frustration.
I think a better option would be to put a scroll "block" at the bottom
of the menu and only scroll when the user hovers ov
scaped. So the line needed
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
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
stri
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 top
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 () {
$("#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 P
$("#myElement").parent();
Shawn
Debby wrote:
How to find very first parent of perticular element?
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
a rudimentary one in the jQuery UI demos:
http://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-portle
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
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 nothing
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 .fade
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
$(".myclass"
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:
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 a
yElement").css("height", null);
On Nov 11, 7:52 am, Shawn Grover <[EMAIL PROTECTED]> wrote:
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 th
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 maximi
21 matches
Mail list logo