עבור לתוכן
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.

בעיה בהפעלת ג'אווה סקריפט מתוך PHP

Featured Replies

פורסם

שלום לכולם

יש לי את הקוד הבא:

<script language="javascript">
function test()
{
alart("test123");

}
</script>
<?php

include 'sqlfunc.php';
include 'UserClass.php';
$platform=get_platform();
session_start();
$user=$_SESSION['user'];


echo"<div id=newbug><table border=0 cellspacing=20 valign=center><caption align=center> New Bug Form</caption>
<form action=welcome.php method=post>
<tr><td>Bug Id:<input type=text size=6 name=lname disabled=disabled value=";print_r(get_last_bug_number());echo"></td>
<td>Project name:<SELECT NAME=project onchange=javascript:test();>
<OPTION SELECTED>Please select";
foreach(($user->proj) as $value)
{
echo"<OPTION>";print_r($value);
}
echo"</td>";
echo"<td></select> Platform:<SELECT NAME=platform>
<OPTION SELECTED>Please select";
foreach(($platform) as $value)
{
echo"<OPTION>";print_r($value);
}
echo"</select></td></tr><tr>
<td>Versio: <input type=text size=6 new=version></td>
<td>prioty:           <SELECT NAME=prioty>
<option> low
<option selected> regular
<OPTION >high
</td>
<td>assign to:<div id=citydiv>
<select name=select>
<option>Select City</option>
</select>
</div>

</td>
</tr>
<tr>
<td>
your preaction:<br>
<TEXTAREA ROWS=5 COLS=23 NAME=preaction WRAP=VIRTUAL title=Write your preaction here></TEXTAREA></td>
<td>
your comment:<br>
<TEXTAREA ROWS=5 COLS=23 NAME=preaction WRAP=VIRTUAL title=Write your comment here></TEXTAREA></td></tr>
</table>
</div>";



?>

הבעיה שלי היא בשורה הזו

<td>Project name:<SELECT NAME=project onchange=javascript:test();>

אני לא מצליח כאשר אני משנה איזהשהוא ערך ברשימה הנ"ל להפעיל את הסקריפט ...הסקריפט לא רץ ואני מקבל שגיאה בתחתית העמוד

מישהו יודע למה

תודה

פורסם

alert ולא alart.

פורסם
  • מחבר

אופס....תודה :kopfpatsch:

ארכיון

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

דיונים חדשים

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.