Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Thursday, August 14, 2025 
 
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!
 Web Forums - SalesLogix Web Platform & Application Architect
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.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Platform & Application Architect | New ThreadView:  Search:  
 Author  Thread: Javascript messages can not be displayed
Misael Ochoa M.
Posts: 45
 
Javascript messages can not be displayedYour last visit to this thread was on 1/1/1970 12:00:00 AM
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
[Reply][Quote]
Nick Hollis
Posts: 549
Top 10 forum poster: 549 posts
 
Re: Javascript messages can not be displayedYour last visit to this thread was on 1/1/1970 12:00:00 AM
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....
[Reply][Quote]
Elamparithi.C
Posts: 17
 
Re: Javascript messages can not be displayedYour last visit to this thread was on 1/1/1970 12:00:00 AM
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
[Reply][Quote]
Misael Ochoa M.
Posts: 45
 
Re: Javascript messages can not be displayedYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 22 Oct 08 11:58 AM
Hi Elamparithi.C.
That was so helpful for me
Thank you
Misael.
[Reply][Quote]
 Page 1 of 1 
  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!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 8/14/2025 5:34:54 AM