آموزش های این وب سایت به صورت رایگان در دسترس است. اطلاعات بیشتر
بروز خطا
   [message]
اشتراک در سوال
رای ها
[dataList]

مشکل در ارتباط با هاست رایگان

namdar79  8 سال پیش  8 سال پیش
0 0

وقتی می خوام جی سون رو در یافت کنم با این خطا مواجه می شم که می گه باید جاوا اسکریپت رو فعال کنم

This site requires Javascript to work, please enable Javascript in your browser or use a browser with Javascript support

صفحه در مرورگر باز میشه و کار می کند

 
 برای این سوال 3 پاسخ وجود دارد. مشاهده پاسخ صحیح
پاسخ به سوال 
Borhani  8 سال پیش
0 0

سلام

 Google Chrome

  1. On the web browser menu click on the "Customize and control Google Chrome" and select "Settings".
  2. In the "Settings" section click on the "Show advanced settings..."
  3. Under the the "Privacy" click on the "Content settings...".
  4. When the dialog window opens, look for the "JavaScript" section and select "Allow all sites to run JavaScript (recommended)".
  5. Click on the "OK" button to close it.
  6. Close the "Settings" tab.
  7. Click on the "Reload this page" button of the web browser to refresh the page.

 

 

Mozilla Firefox

  1. In the address bar, type about:config and press Enter.
  2. Click "I'll be careful, I promise" if a warning message appears.
  3. In the search box, search for javascript.enabled
  4. Toggle the "javascript.enabled" preference (right-click and select "Toggle" or double-click the preference) to change the value from "false" to "true".
  5. Click on the "Reload current page" button of the web browser to refresh the page.

 

این لینک رو ببین :https://www.enable-javascript.com/

0 0
در داخل مرورگر که قرار نیست بازش کنم در زمان اجرا برنامه این خطا ظاهر میشه به جای رشته جی سون تو سرور (8 سال پیش)
0 0
کد دریافت جیسون رو بگذار تا بتوان نظر بهتری داد (8 سال پیش)
0 0
گذاشتم ولی مشکل از کد ها نیست (8 سال پیش)
پاسخ به سوال 
namdar79  8 سال پیش
0 0

 پاسخ صحیح

این کدی هست که برای دیافت کد جیسون استفاده کردم

Log.i("tag", "start");
HttpClient httpClient = new DefaultHttpClient();
HttpPost httpPost = new HttpPost("http://androiddostan.ss0.ir/test.php");
try {
HttpResponse httpResponse = httpClient.execute(httpPost);
Log.i("tag" ,"StatusCode = "+ httpResponse.getStatusLine().getStatusCode());
InputStream content = httpResponse.getEntity().getContent();
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(content));
StringBuilder stringBuilder = new StringBuilder();
String s;
while ((s = bufferedReader.readLine()) != null) {

stringBuilder.append(s);
}
Log.i("tag", stringBuilder.toString());
} catch (IOException e) {
e.printStackTrace();
}
+1 0
سلام به هاست رایگان نمیشه وصل شد به خاطر همونه ... شما با ابزاری مثل راکت یا پستمن تست کن ببین اصلا میشه یا نه (8 سال پیش)
پاسخ به سوال 
Borhani  8 سال پیش
0 0

اگر این دستور کد 200 رو داره برمیگردونه که اکی میباشد

 
 Log.i("tag" ,"StatusCode =  "+ httpResponse.getStatusLine().getStatusCode());

یک هاست ارزان حداقل 20هزار تومان هست برای تست هایت استفاده کن

0 0
درسته مشکل از هاست های رایگان هستند هاست خریدم درست شد 4 هزار تومن (8 سال پیش)

پاسخگویی و مشاهده پاسخ های این سوال تنها برای اعضای ویژه سایت امکان پذیر است .
چنانچه تمایل دارید به همه بخش ها دسترسی داشته باشید میتوانید از این بخش لایسنس این آموزش را خریداری نمایید .