http://docs.jquery.com/Ajax/load

Load can accept a selector inside the url, to get only a specific part
of the returned data.

Note that urls shouldn't have whitespaces and think names either.

In short, not a bug.

Thanks

--
Ariel Flesler
http://flesler.blogspot.com

On 24 mayo, 16:21, simjo <[EMAIL PROTECTED]> wrote:
> Hi, I recently started working with jquery 1.1.3.1.
> I made extensive use of the "load" function eg:
>
>         $("#content").load($(this).attr("name"));
>
> After updating to 1.2.5 none of the load functions except for one
> worked any more.
> Searching the internet did not bring the solution and after trying to
> find the problem myself I found out that 1.2.5 does not like the
> spaces in the filenames of the files I tries to load.
> I solved it by changing the code to:
>
>         var filename = $(this).attr("name");
>         //replace spaces with %20 because the load function does not
> work when the filename contains spaces
>         $("#content").load(filename.replace(/ /g,"%20"));
>
> Is this a bug in 1.2.5 or is this by design?

Reply via email to