This has to do with loading a specific element from the results. The url will except (space separated) the url then a selector of an element(s) to be be the replacement. This is useful for doing partial refreshed, $('#toBeUpdate').load('thisUrl #toBeUpdated'). While this is a nice feature, I am not sure putting anything but a url in the url paramater is the best idea. So wether this is a bug or not, I am not sure, but in the meaning you have to encode the space like you are doing.
On Sat, May 24, 2008 at 12:21 PM, 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? > -- http://morglog.alleycatracing.com Lets make up more accronyms! http://www.alleycatracing.com LTABOTIIOFR! ROFL! ROFL! ROFL! Upcoming alley cats, reviews, touring logs, and a general congregation of bike nerdity.