User Profile

Collapse

Profile Sidebar

Collapse
Iashalth
Iashalth
Last Activity: Jan 13 '14, 07:39 PM
Joined: Jan 13 '14
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • They were mostly typos of methods and one essential bracket was missing, final version:
    Code:
    var xmlHttp = createXmlHttpRequestObject();
    
    //create object
    function createXmlHttpRequestObject() {
    	var xmlHttp;
    	if (window.XMLHttpRequest){
    		xmlHttp = new XMLHttpRequest();
    	} else {
    		xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
    	}
    	return xmlHttp;
    }
    ...
    See more | Go to post

    Leave a comment:


  • ok fixed it, i just needed a monologue i guess xD
    See more | Go to post

    Leave a comment:


  • it just hasn't updated the file, i fixed it but it's still not displaying anything
    See more | Go to post

    Leave a comment:


  • ok, i kind of made stupid mistake and fixed it, i lacked one curly bracket that's it and started getting error alerts
    but i get an error from xml I found it and fixed it but it's still the same:
    Code:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!-- Edited by XMLSpy® -->
    <RESPONSE>
    	<TOPICS>
    		<ARTICLE>
    			<TITLE>The Lean UX Manifesto: Principle-Driven Design</TITLE>
    ...
    See more | Go to post

    Leave a comment:


  • oh you're right, fixed it but it still doesn't work
    I'm using xampp but ajax is just ignored other javascript works just fine.
    Still im getting the same error from the console
    Uncaught ReferenceError: process is not defined webdesign.html: 71
    onclick
    See more | Go to post

    Leave a comment:


  • Yeah ive changed the code but it still doesn't work, ive runthe website on google console and the errors ive got are
    Uncaught SyntaxError: Unexpected end of input for line 1 of moje.js
    Uncaught ReferenceError: process is not defined for line 71 of webdesign.html which is basically the button with process() function

    So it's basically the first line of my javascript file: var xmlHttp = createXmlHttpRe questObject();
    and...
    See more | Go to post

    Leave a comment:


  • cannot load data from xml file, html not affected

    my ajax function is triggered on window.load but it doesn't affect html at all. Here's my ajax:

    Code:
    function titleTopic(url)
    {
    var xmlhttp;
    var txt,txt2,xxx,xx,x;
    if (window.XMLHttpRequest)
      {// code for IE7+, Firefox, Chrome, Opera, Safari
      xmlhttp=new XMLHttpRequest();
      }
    else
      {// code for IE6, IE5
      xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    ...
    See more | Go to post
    Last edited by Rabbit; Jan 13 '14, 04:56 PM. Reason: Please use [CODE] and [/CODE] tags when posting code or formatted data.
No activity results to display
Show More
Working...