Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Spry & Developer Toolkit - Page Refresh ;-(

Community Beginner ,
Jun 02, 2008 Jun 02, 2008
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
TOPICS
Extensions
358
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 02, 2008 Jun 02, 2008
LATEST
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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines