There is still a lot of code in the fiddle that does not concern the actual request, which maybe is not the problem anyway. Also; in jsfiddle you only have to post your html code between the body tags into the html "editor-window" .. you can leave out all the <head> stuff. If you need MooTools you add it to the left, if you need some external JS or CSS you can add it there on the left too under "add resource".. check it out, play with jsfiddle for 2 hours and read the documentation so you know what is possible etc. it's pretty handy and cool.
Ok, back to your problem. Did you make the original code, so that you understand what is going on overall? If I was you I would put console.log statements everywhere for Firebug and comment out all the "extra" stuff that does not concern the content loading and the result from it. I have little time at the moment so I only did some rude work here: http://jsfiddle.net/BhbG4/24/ I use the Request.HTML tester from jsfiddle, see how that one is setup. It is not actually fetching your content, because you are not on your own domain, you have to simulate the request. (read the doc here about Request in jsfiddle: http://doc.jsfiddle.net/use/echo.html If I leave out all the extra stuff like loading an image or updating content div after loading another image I can update your textHolder div with the fake Request.HTML. If you have console.log tracements everywhere you can check if everything works when you click a link as expected. Do you see in Firebug that content is requested from your (local) server? Does it request the expected url? What is the response if you check firebug? In your success handler you work with the html content, so check if that exists in what is returned. On Friday, March 30, 2012 10:22:55 PM UTC+2, mr smith wrote: > > Here is the more streamlined fiddle: http://jsfiddle.net/smeeeth/BhbG4 > This code is not working in jsfiddle, even with 1.2.5 set, so I'm not sure > how to set up jsfiddle to test an html request... Anyway there it is, if > you still want to take a look at it. > > On Friday, March 30, 2012 2:57:47 PM UTC-5, mr smith wrote: >> >> Thanks, I'm going to try to get it formatted correctly and jsfiddle set >> up properly. I will re-post when it's ready. >> >> On Friday, March 30, 2012 1:49:26 PM UTC-5, Sanford Whiteman wrote: >>> >>> > I'll try, but not sure how it can run without the html... I'm new to >>> the >>> > jsfiddle game so bear with me. In fact, the function I posted >>> originally >>> > seems to be the problem in a nutshell... if you want me to paste that >>> into >>> > jsfiddle I can...?? But I've already tried stripping it down and >>> > simplifying the function to so that its just a Request.HTML using >>> > Element.filter on a selector and it doesn't so I don't know how I >>> could get >>> > it to work in jsfiddle. >>> >>> You don't need all the surrounding HTML. You just need the elements >>> that are relevant. jsFiddle provides its own HEAD element and wraps >>> yours in a BODY. >>> >>> -- S. >>> >>> >>>
