الانتقال إلى المحتوى
View in the app

A better way to browse. Learn more.

مجموعة مستخدمي أوراكل العربية

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

تحقق لحقل عن طريق الجافا سكربت

Featured Replies

بتاريخ:

يا شباب لقد عملت تحقق لحقل عن طريق الجافا سكربت ، ولكن يظهر لي خطأ عجزت ان احله
مع ملاحظة اني استعمل الـADF مع صفحات الـ JSP ، والخطأ هو :

javax.servlet.jsp.JspException: Must specify type attribute if name is specified



أما صفحة الـ JSP هي :

<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ page contentType="text/html;charset=windows-1256"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
<title>untitled</title>

-- هذه هي الـجافا سكربت للتحقق

[color=red]<script type="text/javascript">

function check_form4(){

       if (document.f4.T4.value >= 9){

               alert("يجب أن لا يتعدى 9 طرق");

               document.f4.T4.focus();
               document.f4.T4.value="";
               return false;

       }
       
</script>[/color]</head>
<body>
 <html:errors/>

--هنا الخطأ حيث يطلب مني كما فهمت من الرسالة بلابد من وجود type للفورم

[color=red] <html:form  name="f4" action="dataPage1.do" scope="page">[/color]
   <input type="hidden" name="<c:out value='${bindings.statetokenid}'/>" value="<c:out value='${bindings.statetoken}'/>"/>
   <table border="0" width="100%" cellpadding="2" cellspacing="0">
     <tr>
       <td>
         <c:out value="${bindings['Id'].label}"/>
       </td>
       <td>
         <html:text property="Id"/>
       </td>
     </tr>
     <tr>
       <td>
         <c:out value="${bindings['Name'].label}"/>
       </td>
       <td>
         <html:text property="Name"/>
       </td>
     </tr>
     <tr>
       <td>
         <c:out value="${bindings['road1'].label}"/>
       </td>
       <td>
         <html:text property="road1"/>
       </td>
     </tr>
     <tr>
       <td>
         <c:out value="${bindings['road2'].label}"/>
       </td>
       <td>
         <html:text property="road2"/>
       </td>
     </tr>
     <tr>
       <td>
         <c:out value="${bindings['road3'].label}"/>
       </td>
       <td>[color=red]

-- على هذا الحقل يتم التحقق من الشرط

         <html:text property="road3" name="T4"  onchange="return check_form4()" />[/color]        </td>
     </tr>
   </table>
   <br/>
   <c:out value="${bindings.editingMode}"/>
   <br/>
   <br/>
   <input type="submit" name="event_Create" value="Create" <c:out value="${bindings.Create.enabledString}" />/>
   <input type="submit" name="event_Commit" value="Commit" />
 </html:form>
</body>
</html>

انضم إلى المناقشة

يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.

زائر
أضف رد على هذا الموضوع...

برجاء الإنتباه

بإستخدامك للموقع فأنت تتعهد بالموافقة على هذه البنود: سياسة الخصوصية

Account

Navigation

البحث

إعداد إشعارات المتصفح الفورية

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.