עבור לתוכן
View in the app

A better way to browse. Learn more.

HWzone

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.

בעיה בטופס בASP.NET

Featured Replies

פורסם

יש לי טופס שעובד בHTML בלי שום בעיה, וכשאני עושה העתק הדבק של כל העמוד עצמו של האתר כולל הטופס ל-ASP.NET זה לא מבצע את מה שהוא אמור לבצע. זה הטופס :

<form name="f">
<h1>Surfboard Size Converter - From Feets and Inches To Centimeters</h1>
<h2>Insert Elements And Get Your Surfboard Size in Centimeters</h2>
<input name="inch" type="text" size="2" title="Inches" value="Inches" onblur="if(this.value=='') this.value='Inches';" onfocus="if(this.value=='Inches') this.value=''" />
<input name="feet" type="text" size="2" title="Feets" value="Feets" onblur="if(this.value=='') this.value='Feets';" onfocus="if(this.value=='Feets') this.value=''" />
<br />
<input type="button" value="Calculate" onclick="f.output.value=calculate()" />
<br />
<h2>Your Surfboard Size In Centimeters</h2>
<input type="text" size="4" readonly name="output" value=""/>
</form>

הנה הפונקציה :



function calculate() {
var cm = ((f.feet.value) * 0.3084) * 100 + (f.inch.value) * 2.5;
cm = Math.round(cm);
return cm;
}

הטופס אמור להחזיר מספר מסויים בסנטימטרים בtext שקוראים לו output

במאתר הבאגים הוא אומר לי ש-f לא מוגדר, כלומר הטופס עצמו.

אני חוזר, בHTML זה עובד בלי שום בעיה .

אשמח אם תעזרו לי, תודה

ארכיון

דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.

דיונים חדשים

Configure browser push notifications

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.