Skip to main content
Participant
June 2, 2008
Question

Spry & Developer Toolkit - Page Refresh ;-(

  • June 2, 2008
  • 1 reply
  • 358 views
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
This topic has been closed for replies.

1 reply

Inspiring
June 3, 2008
doms1973 wrote:
> In .asp (old I know!), I am using a Devleopers Toolkit Dynamic Form witin 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 page refreshing the entire page... In the previous version of
> InterAKT you could simply remove the response.redirect lines and bingo... but
> now it's not that simple....

No idea how ADDT handles Ajax driven content, but I'd suggest that you ask your question in the ADDT forums:
http://www.adobeforums.com/cgi-bin/webx/.3bc3909a/



--
Danilo Celic
| http://blog.extensioneering.com/
| Adobe Community Expert