Question
Spry & Developer Toolkit - Page Refresh ;-(
In .asp (old I know!), I am using a Developers Toolkit
Dynamic Form within a Spry Tab (displayed within a DIV)... When the
form is submitted, the database is updated - but how do I get the
Triggers to run the javascript to refresh the DIV (I have the code
for this - but it's not running as a Trigger). I also need to stop
the main page refreshing itself... In the previous version of
InterAKT you could simply remove the response.redirect lines and
bingo... but now it's not that simple....
Simply removing the "upd_Events.registerTrigger Array("END", "Trigger_Default_Redirect", 99, "">" line does not seem to have any affect.
I have set the last Trigger to:
upd_Events.registerTrigger Array("END", "Trigger_Reload_Ajax", 99)
and the function I call is:
<%
'start Trigger_Reload_Ajax trigger
Function Trigger_Reload_Ajax (ByRef tNG)
%>
<script type="text/javascript">
<!-- alert('Hello World!'); -->
Spry.Utils.updateContent('SubContent', '/management/setup/event/setup_frame.asp?EventID=8');
</script>
<%
Set Trigger_Reload_Ajax = nothing
End Function
'end Trigger_Reload_Ajax trigger
%>
Ideally I would like to force the redirect to stop!
Any help - much appreaciated
Dom
Simply removing the "upd_Events.registerTrigger Array("END", "Trigger_Default_Redirect", 99, "">" line does not seem to have any affect.
I have set the last Trigger to:
upd_Events.registerTrigger Array("END", "Trigger_Reload_Ajax", 99)
and the function I call is:
<%
'start Trigger_Reload_Ajax trigger
Function Trigger_Reload_Ajax (ByRef tNG)
%>
<script type="text/javascript">
<!-- alert('Hello World!'); -->
Spry.Utils.updateContent('SubContent', '/management/setup/event/setup_frame.asp?EventID=8');
</script>
<%
Set Trigger_Reload_Ajax = nothing
End Function
'end Trigger_Reload_Ajax trigger
%>
Ideally I would like to force the redirect to stop!
Any help - much appreaciated
Dom
