Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Saturday, July 5, 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: Problems with javascript code that should fire when a dialog opens? It won't run at all!
NixDev
Posts: 98
 
Problems with javascript code that should fire when a dialog opens? It won't run at all!Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 28 Jul 09 6:28 PM
I have some very simple code inside an ascx that is displayed as a dialog

<script type="text/javascript">
alert("HELLO");
</script>

It won't run at all. Is there anything else that needs to be done, is this some limitation imposed by how dialogs are implemented in SLX, what?

Thanks
[Reply][Quote]
Alberto Chiesa
Posts: 49
 
Re: Problems with javascript code that should fire when a dialog opens? It won't run at all!Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 Jul 09 2:18 AM
IIRC, script tags in <head> section are not processed at all in case o Ajax calls.

You should rely on scriptmanager object to do this (watch for the RegisterClientScriptBlock method).
[Reply][Quote]
NixDev
Posts: 98
 
Re: Problems with javascript code that should fire when a dialog opens? It won't run at all!Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 Jul 09 12:16 PM
I'm not sure to be following you 100%. This script is not inside the head tag, it's right there mixed up with the ASCX html source of the control i'm displaying as modal dialog. As far as I know, ASCX controls don't even have head tags. I'm also not completely sure what you mean with that about AJAX calls. Is there an AJAX call issued when the dialog window opens?

Thanks!
[Reply][Quote]
Alberto Chiesa
Posts: 49
 
Re: Problems with javascript code that should fire when a dialog opens? It won't run at all!Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 Jul 09 12:28 PM
AFAIK, an update panel uses the browser's AJAX support to open Iframes.
So I think that every single dialog opened in SLX Web is using an AJAX call (strictly speaking). And the browser is not firing onload events for ajax calls.

I really don't know about your particular problem, however.

Maybe we could check some code just to figure out what's going on? (maybe it's just some Javascript issue?)
[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): 7/5/2025 7:43:16 AM