Hey Guys,
Just wandering if I can display alert message with a default sound. the current code is below and the problem is no sounds. -
function disp_alert()
-
{
-
alert("test")
-
}
-
and
-
$message="test";
-
echo '<script>alert("test");</script>';
-
Thanks
5 3988 TheServant 1,168
Recognized Expert Top Contributor
http://www.thescripts. com/forum/thread612487.ht ml
Long story short, there is no php alert function. You have to use javascript.
http://www.thescripts. com/forum/thread612487.ht ml
Long story short, there is no php alert function. You have to use javascript.
the current alert function will display alert message, but no sound
JavaScript -
function disp_alert()
-
{
-
alert("test")
-
}
-
PHP -
$message="test";
-
echo '<script>alert("test");</script>';
-
Markus 6,050
Recognized Expert Expert
the current alert function will display alert message, but no sound
JavaScript -
function disp_alert()
-
{
-
alert("test")
-
}
-
PHP -
$message="test";
-
echo '<script>alert("test");</script>';
-
This isn't php.
Ask in the javascript forum.
I will move this thread to the JavaScripr forum.
moderator
gits 5,390
Recognized Expert Moderator Expert
hi ...
you cannot really control that with the standard alert ... since that uses the users preferences and in this case the system sound-scheme. so one user gets a sound another don't. you may create a custom dhtml-alert-box and play a sound when displaying it ...
kind regards
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Justin Koivisto |
last post by:
Is there a way to create an alert-like message box that uses a custom
image? Basically, I want to replace the default ! image with something else.
--
Justin Koivisto - spam@koivi.com
PHP POSTERS: Please use comp.lang.php for PHP related questions,
alt.php* groups are not recommended.
|
by: Alistair Saldanha |
last post by:
I'm looking for the event that is fired by Internet Explorer to an "alert":
<SCRIPT>
Alert("You already have a session open")
</SCRIPT>
The event would be webBrowser.Document.????
Much appreciate any help you can give me.
Thanks,
|
by: bonehead |
last post by:
Greetings,
I'm working on an e-mail form (btw many thanks to Philip Ronan for the
very cool email address format tester function, best I've seen so far).
I've been trying, with limited success, to produce a javascript alert
box which shows the user a validation error message. The error message
itself is dynamic, i.e., it's contained within a php variable.
I seem to be running into two issues:
|
by: Ersin Gençtürk |
last post by:
hi,
I wrote a function like this :
public static void Alert(string message){
message=message.Replace("'","\'");
message=message.Replace("\n","\\n");
Response.Write("<script>alert('"+message+"');</script>");
|
by: John |
last post by:
hey guys this may not be possible, but i have an if statement that checks to
see if a value returned by a sql query is null or not..if it is i execute the
right code if it has a value i need to tell the user about the problem. i was
thinking just an alert box, but i dont know how to do that from the
codebehind aside from asigning it to the buttons onclick event, but the
button already has a confirm box in its onclick.
try {
myConnection...
| |
by: M. Simioni |
last post by:
Hi, i'm always auditing ASPNET's account accesses on my webserver, a
WIN2K_SP4 + IIS5 + SQLServer2K_SP3a machine.
Nearly all the applications work correctly, but i constantly find a
message in the event viewer under the protection log, that says:
---------------------------------------
Apertura oggetto:
Server oggetto: Security
Tipo oggetto: File
|
by: sebastien1101 |
last post by:
how to disable the alert sound (windows system) when a messagebox.show
appear ?
|
by: Z1P2 |
last post by:
Hello, I'm trying to find a way to replace the user's alert system sound with a custom sound in the following script. Can someone please point me in the right direction?
<script type="text/javascript">
var monitor = setTimeout("alert('The monitor is working');",0);
</script>
|
by: Kuldeep |
last post by:
Framework: Visual Studio 2005
Technology: ASP.NET 2.0
Language: C#.NET 2.0
Hi All,
I have an event procedure as shown below.
protected void lnkBtSendEmail_Click(object sender, EventArgs e)
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |