Script Garage

 

there is a square like smybol is displaying whenever i run the php scripts, what kind of error is this ?

there is a square like smybol (a special character imagine a square box)is displaying whenever i run the php scripts, what kind of error is this ? function onready1() { if(xml.readyState == 4 || xml.readyState == 'complete') { str1 = xml.responseText; s = str1.split(":"); for(i=0; i<s.length; i++) { if(s.length == 5 ) { document.getElementById("address1").value = s[0]; document.getElementById("address2").value = s[1]; document.getElementById("location").value = s[2]; document.getElementById("grade").value = s[3]; document.getElementById("business_sector").value = s[4]; } else { document.getElementById("address1").value =""; document.getElementById("address2").value =""; document.getElementById("location").value =""; document.getElementById("grade").value =""; document.getElementById("business_sector").value =""; } } } } function getaddress() { var address = document.getElementById('client_name').value; xml = GetXmlHttpObject(); if(xml == null) { alert("Your browser is not supporting ajax!"); } else { url = "/marketing_call_detail dude i cant send u whole codes, or else give ur email id , will post u the whole code........

Public Comments

  1. You didn't manage to post enough of the source code to tell what is going on. I don't have Ajax anyway. The rectangle means that the character wasn't found in the current font. Sometimes you'll want to display the character and one way is to use UTF8 encoding in the document and have arialuni.ttf as the font. This gives you access to thousands of special characters. Other times the rectangle just means that you made a mistake somewhere if you didn't want a special character like Greek, Hebrew, Arabic, Japanese etc.
Powered by Yahoo! Answers