8/14/2025 5:26:28 AM
|
|
slxdeveloper.com Community Forums |
|
|
|
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
Forum to discuss the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
|
|
|
|
Javascript messages can not be displayed
Posted: 13 Oct 08 4:06 PM
|
Hi everyone, my question is.... why can not display Messageboxes in JavaScript?
i wrote this code, but this doesn't work
void displayMessage(string Message, Page Pagina) { String sbMsg="<script language=javascript>"; sbMsg += "alert('" + Message + "');"; sbMsg += "</script>";
if(!Pagina.IsStartupScriptRegistered("startup")) { Pagina.RegisterStartupScript("startup", sbMsg); } }
so i've tested that on IE and it works well, but over sage it doesn't work |
|
|
|
Re: Javascript messages can not be displayed
Posted: 14 Oct 08 4:34 AM
|
Setting client side page Load actions do not work too well in my experience in quickforms - I think maybe because they loaded via Ajax they do not always fire the client side page load event.
I would try showing the message using the DialogService.showMessage() route...if possible.... |
|
|
|
Re: Javascript messages can not be displayed
Posted: 22 Oct 08 11:41 AM
|
Hi , we can display javascript alert using the below the code, I used so many places like that for validation .........
StringBuilder jsstring = new StringBuilder(); jsstring.Append(" alert('You have entered ......);"); jsstring.Append(string.Format(" document.getElementById('{0}').focus();document.getElementById('{1}').value='';", txtPostalCode.ClientID, txtPostalCode.ClientID)); ScriptManager.RegisterStartupScript(Page, GetType(), ClientID, jsstring.ToString(), true);
----Elamparithi.C |
|
|
| |
|
You can
subscribe to receive a daily forum digest in your
user profile. View the site code
of conduct for posting guidelines.
Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
|
|
|
|
|
|
|
|