Jump to content
Helio13

JQuery dialog

Recommended Posts

Helio13

Boas.

Estou com um problema que é, queria fazer aparecer um dialog, em vez de ter um alert...

Mas não estou a conseguir...

O que estou a fazer é:

		$.ajax(
		{
			type: "POST",
			url: "http://localhost:1049/Service1.svc/SendMail",
			data: JSON.stringify(mail),
			dataType: 'json',
			contentType: "application/json; charset=utf-8",
			success: function (data) {
				var bb = JSON.stringify(data)
				var cc = JSON.parse(bb)
				alert(cc.SendMailResult);
				$("#dialogg").dialog();
				if (cc.SendMailResult = "Email sent successfully") {
					Clear();
					window.location.href = "/#"
				}
			},
			error: function (xhr, status, error) {
				alert("failed " + error);
			}
		})

Estou a enviar um email, e caso fosse enviado com sucesso, em vez de apresentar o alert, apresentada um dialog...mas não dá, diz me dialog is not a function

Alguém me pode ajudar?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.