الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

رسالة تظهر للمستخدم لما الأبليت ما تتحمل

مغلق
بدأه ليلك في 3 فبراير 2007 · 4 رد · 586 مشاهدة · في JavaSE
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

السلام عليكم

شي غريب شوي..بس طولوا بالكم

(طُلب) مني أظهر رسالة خطأ للمستخدم اللي ماعنده جافا إنه عشان تتمكن من مشاهدة الأبليت لازم تروح هذا الموقع وتحمل جافا!!!!

is it possible to display an error msg when the applet is not initiated to tell the user that he must download a java software to be able to see the applet?

I'm thinking about having a flag that checks the initialization, and then it is gonna be sent to a java script function to display the msg.

but how can I use that flag with the applet tag?is there a function that can help to retrieve the applet status?

كتبت هذا بأحد المنتديات ردوا علي بهذا

http://jsmooth.sourceforge.net/

بس ما استوعبت :(

شكراااااااااااااااااا جزيلااااااااااااااااااا مقدماااااااااااااااااااااا

#3

السلام عليكم

if(AppletID.isActive) 
   alert(AppletID.isActive())

او ضعي ال AppletID.isActive() في try statment

try{alert(AppletID.isActive())
}catch(e){alert("the downloading message or enable java virtual machine")}

والله أعلم

تم تعديل هذه المشاركة بواسطة Mo7eb_Alrasool في 7 فبراير 2007 في 04:16

سبحانك اللهم وبحمدك أشهد ان لا اله الا أنت

أستغفرك وأتوب اليك

الهم صلي وسلم وبارك على سيدنا وحبيبنا محمد

#4

السلام عليكم

أخوي عيسى جربت هذا بس مايسوي شي

<APPLET
	code	= "Bridge.class" codebase="Bridge"
	width	= "800"
	height	= "600"
	alt="any text">
   </APPLET>

أخوي محب الرسول

حطيت try statement في جافا سكربت فنكشن, بس وين أناديها :D

----

أحس إنكم تقصدوا شي وأنا أسوي شي ثاني (h)

#5

السلام عليكم

أسف على التاخير

try this one

<APPLET id="AppletID"
	code	= "Bridge.class" codebase="Bridge"
	width	= "800"
	height	= "600"
	alt="any text">
   </APPLET>
<script>
var _APPLET_ERROR_MESSAGE="show the user the downloading message or enable java virtual machine";
function RaisAppletError()
{
 alert(_APPLET_ERROR_MESSAGE)
 /*
  or display the error message to the user
  and a link to the sun java vm download 
 */
}
var AppletID=document.getElementById('AppletID')

//use this one its better
if(!AppletID.isActive) 
	RaisAppletError();

try
  {var isActive=AppletID.isActive()}
catch(e){RaisAppletError();}
</SCRIPT>

والله أعلم

سبحانك اللهم وبحمدك أشهد ان لا اله الا أنت

أستغفرك وأتوب اليك

الهم صلي وسلم وبارك على سيدنا وحبيبنا محمد

هذا الموضوع مغلق.

مواضيع مشابهة

عدد الزوار حالياً

المتواجدون خلال آخر دقيقتين · يتحدّث كل ٣٠ ثانية

—الإجمالي—أعضاء مسجّلون—زوار بدون تسجيل

جارٍ التحقق من المتواجدين…