T
TarheelsFan
I am creating a web site that allows admins to edit the website from
within the site (add contacts, events, etc.) After modifying the
content by either adding, editing, or deleting some info, I want to
display a Javascript alert.
When I write the Javascript in the markup and add the event to the
attributes of the submit button, everything works fine. The only
problem with that is the confirmation alert will run regardless of
whether there is an error or not. So I was going to try to write the
alert in the submit function using: Response.Write("<script
language=javascript>alert('text');</script>"); However, when I do
this, it changes the text formatting on the page. Some text that is
originally white changes to black, and all of the text increases in
size.
Can anyone see what I am doing wrong?
Thanks in advance.
within the site (add contacts, events, etc.) After modifying the
content by either adding, editing, or deleting some info, I want to
display a Javascript alert.
When I write the Javascript in the markup and add the event to the
attributes of the submit button, everything works fine. The only
problem with that is the confirmation alert will run regardless of
whether there is an error or not. So I was going to try to write the
alert in the submit function using: Response.Write("<script
language=javascript>alert('text');</script>"); However, when I do
this, it changes the text formatting on the page. Some text that is
originally white changes to black, and all of the text increases in
size.
Can anyone see what I am doing wrong?
Thanks in advance.