Need some help with responseHTML...
Archives of the forum. The responseHTML attribute and the display of text loaded.
Content not displayed
Mon, 10 Sep 2007 19:01:13
I would like to know why the code below is not displaying any contents in the <textarea>... The Code:
I have used anaa framework to extract html content from another website. But that doesn`t work.. hope someone helps me... (I`d like to have a correct version of the code above.) Thanks.
Tue, 11 Sep 2007 12:34:57
First of all, replace the URL by something as test2.html or any valid filename... Try the to upload the demo "demo-get-html". Do you have tested your file locally or online? The demo works only on line.
Tue, 11 Sep 2007 14:33:42
Actually i`m trying it only online. This forum does not allow external links, that`s why i have put 'Some External HTML File' in the quoted code above. I want to get the contents of the body of a webpage in the text format between the text area tags.. would it be possible?...
Wed, 12 Sep 2007 18:27:25
Fri, 06 Feb 2009 05:03:47
Fri, 06 Feb 2009 20:18:16
responseHTML.js makes the HTML loaded lowercase
Fri, 01 Feb 2008 20:09:40
So I'm having a problem with the responseHTML.js and ajax.js files. I'm using them to load the content of another page into the original page. What happens is the content loads fine but all the letters that were capitals, turn to lowercase. I thought I could fix this by removing the first line of getBody (content) which is " content = content.toLowerCase(); " however it still does not work. If you look at the demo "Reading an HTML page", it also makes the capital letters in anotherpage.html lower case. Is there anyway to fix this? Also, is there any reason why I should not use this code on a site that gets a lot of traffic. I'm quite new to ajax and I'm looking for an easy way to make an ajax nav bar that does this. Thanks for all your help!
Sat, 02 Feb 2008 11:00:26
I have uploaded a new version. Download the new responseHTML.txt file, and use the "reload" command to make sure the version in cache is not loaded again. Actually the changes in the function was submitted by a contributor to handle case sensitivity in tags, and I have not take care to the uppercase issue in the text. About your question, Google use Ajax, there is not reason to not use it on a big website. But one must avoid to fill too much content in a dynamic way as it is not indexed by search engines. responseHTML is intended to overcome the problem.
Sun, 03 Feb 2008 19:29:38
Thank you very much for the reply. I do have one more question though. How would I apply this type of fast AJAX load, for a submit. So that when I hit submit, the page doesn't reload but the content of the display div changes. Thanks again.
Mon, 04 Feb 2008 19:12:08
If you want to replace the div that contains the form by the content of another page, maybe
could work? content (returned by Ajax) may be stored into another div at load.
divid.innerHTML = content
© 2007-2013 Xul.fr