Ditutup

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.

PB

Kemahiran: JavaScript, jQuery / Prototaip, PHP, AJAX, HTML

Lihat lagi: 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

Tentang Majikan:
( 0 ulasan ) United States

ID Projek: #31873598

47 pekerja bebas membida secara purata $20/jam untuk pekerjaan ini

(127 Ulasan)
9.2
(736 Ulasan)
9.3
(567 Ulasan)
8.5
sergioes

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 / jam
(294 Ulasan)
7.9
(38 Ulasan)
8.1
(73 Ulasan)
8.0
shailendra041090

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 Lagi

$16 USD / jam
(218 Ulasan)
7.2
devstart1234

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 Lagi

$15 USD / jam
(326 Ulasan)
7.6
(14 Ulasan)
6.9
(35 Ulasan)
6.8
(99 Ulasan)
6.6
florinbacu

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 / jam
(47 Ulasan)
6.3
(28 Ulasan)
5.4
hladunkonstantyn

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 Lagi

$20 USD / jam
(19 Ulasan)
5.4
alexvinnik

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 Lagi

$15 USD / jam
(84 Ulasan)
5.6
EkaterinaVl4

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 Lagi

$20 USD / jam
(5 Ulasan)
5.3
(36 Ulasan)
5.4
designoxyll22

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 Lagi

$20 USD / jam
(19 Ulasan)
5.4
rexwaan

*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 Lagi

$15 USD / jam
(16 Ulasan)
4.9
Syedhammadhafeez

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 / jam
(19 Ulasan)
5.2