Problem loading pages with ajax

I'm using XMLHttpRequest() to load pages into a div from a menu.

Using innerHTML (which I think is part of the problem) the HTML loads fine, but I have no javascript.

I've tried many of the suggestions offered on StackOverflow, but still no luck.

Presently, I can only get the js to work is through using a button to call the js function - which means it must be there somewhere. Indeed, it is 'there' as I can see it in Source. However, I cannot 'call' it - even JS embedded in the loaded page does not work - even [login to view URL]()!

I am using old style code, PHP with no classes or framework, and the same for js. I would like to keep it that way, but would settle for a jquery solution as long as it is a solution and the overhead is not too great. From what I can gather, one source of the problem is that I am not 'binding' code to elements, though I am unsure what that means.

Having spent some time on this I would say I have a couple of problems. One, of course is the right code, but the other may be one of design. It may be that I am trying to do either the wrong thing, or using the wrong way of looking at it and the relevant tools - for want of a better word.

I enclose some of the code in the attached file and a couple of screenshots.


Taidot: JavaScript, jQuery / Prototype, PHP, AJAX, HTML

Näytä lisää: php loading pages target location, ajax searchsuggestphp couldnt load, php scraping pages ajax, ajax java code load list box, problem loading 20000 markers googlemap, problem redirect pages php oscommerce, open wordpress pages ajax, loading pages error fixc, problem categories pages oscommerce, product order problem virtuemart pages, smoothgallery problem loading images, php display mysql result pages ajax, loading indicator ajax jquery, loading files ajax scrolling, dynamic ajax database content load, fix problem loading page, jquery ajax loading pages javascript, load pages ajax php

Tietoa työnantajasta:
( 0 arvostelua ) United States

Projektin tunnus: #31873598

47 freelanceria on tarjonnut keskimäärin $20/tunti tähän työhön

(127 arvostelua)
(736 arvostelua)
(567 arvostelua)

Hi, why don't you migrate to the fecth API? XHR is outdated and you should not use it. Regards, Sergio. --- * Blog/portfolio [login to view URL]

$25 USD / tunti
(294 arvostelua)
(38 arvostelua)
(73 arvostelua)

Hi there, - My name is Shail. I’ve read your brief and checked your attached document. I am 100% sure I can resolve this issue. I have integrate ajax in many project. I have deep knowledge of integrating ajax. I ca Lisää

$16 USD / tunti
(218 arvostelua)

Hi, We are a team and have checked your requirement "Problem loading pages with ajax". We are ready to sign NDA, If required. Websites: [login to view URL] [login to view URL] [login to view URL] htt Lisää

$15 USD / tunti
(326 arvostelua)
(14 arvostelua)
(35 arvostelua)
(99 arvostelua)

Hello, I am willing to help you with this project and that is why I am here. Contact me if you are interested.

$20 USD / tunti
(47 arvostelua)
(28 arvostelua)

Hi. How are you? I have read your job description and I have understood your requirements I am a senior developer and I have rich experience in web developments using PHP5, PHP7, HTML, HTML5, CSS, CSS3, Javascript, jQu Lisää

$20 USD / tunti
(19 arvostelua)

Hello. I will look into you code later ( its to late here for now). I believe there is some small mistake. Hope it can wait until tomorrow for you. We can discuss all things in chat before start the project. Thank you Lisää

$15 USD / tunti
(84 arvostelua)

Hi, there. I have read your job post carefully. I have 7+ years experience in javascript and javascript framework. I saw your code. Can you share me full code? this code that you shared is part. if you offer me th Lisää

$20 USD / tunti
(5 arvostelua)
(36 arvostelua)

Greetings! I just read your posting (Problem loading pages with ajax) it sounds like you need a professional developer. I have experience with html, css, php and javascript for 5 years. This is PIECE OF CAKE. Here a Lisää

$20 USD / tunti
(19 arvostelua)

*HAVE A LOOK AT REVIEWS* Hey there. I hope you are having a good day. I have seen your requirement and I can work with you for a long time on a Jx in a given deadline. if you have any other requirements can you message Lisää

$15 USD / tunti
(16 arvostelua)

Hey, It can be done just according to your requirements. kindly have a chat session for better understanding. Regards, Syed hammad hafeez I

$20 USD / tunti
(19 arvostelua)