Jul
15
Written by:
Project Complete
7/15/2009 3:25 PM
Do you need to post to an external site from your DotNetNuke site? Here is one simple solution.
I recently needed to embed a newsletter subscription form into one of my DotNetNuke pages. As I found out, this can be a bit problematic. I tried several approaches including Gumbosoft's Script Injector, but to no avail. I'm still not sure why the post to my email marketing provider using Script Injector did not work, as according to my Firefox add-in HttpFox, the post was sent correctly, albeit with a lot of extra DNN related stuff.
When all was said and done, the solution was quite simple. I simply created two standard HTML files; a file containing the API code (form) and a file containing the thanks for subscribing text. I placed an IFrame module on a DNN page and pointed it to the API file. The API code then redirected the user to the thanks for subscribing file. If you would like to see the actual page I am referring to, click this link.