Incorporating Forms from AWeber

Topics: Support Request
Jan 25, 2009 at 3:10 PM
Hello to all,

I'm having one heck of a time trying to get the code (raw) from AWeber to work with the dasBlog software.  A typical form would look like this:

<center><form method="post" action="http://www.aweber.com/scripts/addlead.pl" target="_new">
<input type="hidden" name="meta_web_form_id" value="1313240952">
<input type="hidden" name="meta_split_id" value="">
<input type="hidden" name="unit" value="thebigc">
<input type="hidden" name="redirect" value="http://www.aweber.com/form/thankyou_vo.html" id="redirect_1f57feb40d49ae722009e056e2028d35">
<input type="hidden" name="meta_redirect_onlist" value="">
<input type="hidden" name="meta_adtracking" value="">
<input type="hidden" name="meta_message" value="1">
<input type="hidden" name="meta_required" value="from">
<input type="hidden" name="meta_forward_vars" value="0">
<table>
<tr><td colspan=2><center><div>Stay updated by joining of FREE subscription. </div></center></td></tr>
<tr><td>Name:</td><td><input type="text" name="name" value="" size="20"></td></tr>
<tr><td>Email:</td><td><input type="text" name="from" value="" size="20"></td></tr>
    <tr><td colspan=2><center><div>Your privacy if very important.&nbsp; We do not sell, give a way, or in any way distribute the information you provide.</div></center></td></tr>
<tr><td align="center" colspan="2"><input type="submit" name="submit" value="Submit"></td></tr>
</table>
</form>

<img src="http://forms.aweber.com/form/displays.htm?id=jMyMzEwsDJysTA==" border="0" />
</center>

I tried from within dasBlog to incorporate the code (using the default theme) and tried others.  Nothing seems to work.

I also tried WLW to get the forms to work but no success using it either.

Any ideas?

To see the results please visit www.waynestrnad.info/myblog/

The site is hosted on GoDaddy.  dasBlog was installed by GoDaddy as an application.

Any assistance would be appreciated.

Thanks
Wayne



Developer
Jan 25, 2009 at 4:38 PM
I don't think this code will ever work, because it includes a form tag, and ASP.NET pages already incorporate a form tag as part of the basic code of the page, and you can't have a sub form. Does that sound right everyone else?

On Sun, Jan 25, 2009 at 10:10 AM, WayneS <notifications@codeplex.com> wrote:

From: WayneS

Hello to all,

I'm having one heck of a time trying to get the code (raw) from AWeber to work with the dasBlog software. A typical form would look like this:

<center><form method="post" action="http://www.aweber.com/scripts/addlead.pl" target="_new">
<input type="hidden" name="meta_web_form_id" value="1313240952">
<input type="hidden" name="meta_split_id" value="">
<input type="hidden" name="unit" value="thebigc">
<input type="hidden" name="redirect" value="http://www.aweber.com/form/thankyou_vo.html" id="redirect_1f57feb40d49ae722009e056e2028d35">
<input type="hidden" name="meta_redirect_onlist" value="">
<input type="hidden" name="meta_adtracking" value="">
<input type="hidden" name="meta_message" value="1">
<input type="hidden" name="meta_required" value="from">
<input type="hidden" name="meta_forward_vars" value="0">






<center>
Stay updated by joining of FREE subscription.
</center>
Name: <input type="text" name="name" value="" size="20">
Email: <input type="text" name="from" value="" size="20">
<center>
Your privacy if very important. We do not sell, give a way, or in any way distribute the information you provide.
</center>
<input type="submit" name="submit" value="Submit">

</form>

http://forms.aweber.com/form/displays.htm?id=jMyMzEwsDJysTA==" border="0" />
</center>

I tried from within dasBlog to incorporate the code (using the default theme) and tried others. Nothing seems to work.

I also tried WLW to get the forms to work but no success using it either.

Any ideas?

To see the results please visit www.waynestrnad.info/myblog/

The site is hosted on GoDaddy. dasBlog was installed by GoDaddy as an application.

Any assistance would be appreciated.

Thanks
Wayne



Read the full discussion online.

To add a post to this discussion, reply to this email (dasBlog@discussions.codeplex.com)

To start a new discussion for this project, email dasBlog@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com




--
-------------------------------------------
Nicholas Schweitzer
nick@nickschweitzer.net

The World According to Nick
http://www.nickschweitzer.net

The Coding Monkey
http://www.thecodingmonkey.net
-------------------------------------------
Jan 25, 2009 at 4:56 PM
Thank you for the reply.

If one scrolls down to the entry "Chicago Water...." and fills in the form, it actually does work.

I don't understand why is works in one case and not another when the code is basically the same.

Then another strange thing is the the submit button is somehow turned into a submit query when the code (html) clearly shows submit only.  View the first two entries to see an example of what I'm talking about.

As an alternative I could set up a link to a different page and throw on the form on that page but I really would like to do it in dasBlog.

As a note, according to the folks at AWeber, a web page can two or more forms on it.  They thought the problem was with the aspx page that generated the user view.

Once again, thank you for the replay.  Any more ideas?

Wayne



Jan 25, 2009 at 6:25 PM
Nick your right a form can not have a form as a child element.  You can sometimes get them to work how ever if you ad two.  For some reason the first form will not work and the second will
so
 <form >Parent form.
<form>toss away</form>
<form>form i want to work</form>
</form>

This is why your second form works for you Wayne.
Jan 26, 2009 at 10:27 AM
Thanks for the information.

It's sort of disappointing that one cannot do this.  I took the approach of placing a graphic on the page that links to a page outside of dasblog.  That does work as a straight html file.

Once again, thanks for all the info.  I appreciate it.

Sincerely,
Wayne
Jan 26, 2009 at 2:00 PM
I should have mentioned this before but you could embed these forms in an iframe.  They would still have to reside on a separate webpage, but they would function in your blog posts.
Jan 27, 2009 at 11:19 AM
I tried to find information about embedding an iframe while using WLW but the docs on it seems to be lacking.  I did a search in this forum and discovered one entry - the post above.  I guess we're threading new waters here (no pun intended).

I simply do not know how to, nor can I find any ref on how to do it.  Can you please give a little more info on the how to within WLW?  Apparently various posts suggest using WLW with dasBlog so it might be benificial for many.

Once again, thanks for the input.

Sincerely,
Wayne
Developer
Jan 27, 2009 at 1:19 PM
I'm confused. Are you trying to incorporate a single ad in a single post, or are you trying to modify your template? If you're trying to modify your template to have an ad (in the side bar for instance), then you need to simply modify homeTemplate.blogtemplate. If you want the ad to appear below each post, then I would modify itemTemplate.blogtemplate instead of using WLW.
Nick

On Tue, Jan 27, 2009 at 6:19 AM, WayneS <notifications@codeplex.com> wrote:

From: WayneS

I tried to find information about embedding an iframe while using WLW but the docs on it seems to be lacking. I did a search in this forum and discovered one entry - the post above. I guess we're threading new waters here (no pun intended).

I simply do not know how to, nor can I find any ref on how to do it. Can you please give a little more info on the how to within WLW? Apparently various posts suggest using WLW with dasBlog so it might be benificial for many.

Once again, thanks for the input.

Sincerely,
Wayne

Read the full discussion online.

To add a post to this discussion, reply to this email (dasBlog@discussions.codeplex.com)

To start a new discussion for this project, email dasBlog@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com




--
-------------------------------------------
Nicholas Schweitzer
nick@nickschweitzer.net

The World According to Nick
http://www.nickschweitzer.net

The Coding Monkey
http://www.thecodingmonkey.net
-------------------------------------------
Jan 27, 2009 at 2:56 PM
The object is to put a form within a post.  It might be the case that a different post will lead to a different form.  The form itself is html code generated by AWeber.  It allows one to create a mailing list.  Thus, someone might like to create a mailing list that deals with the issue of contaminated drinking water throughout the United States.  Another list might be natural alternatives to healing cancer.  So the senario would look something like this:

Post #1
   some text
   to subscribe fill in the form below
     (at this point aweber code kicks in after user hits submit and then produces a confirmation page that the user clicks to close)
   more text for this post
end of Post #1

Post #2
   some text
   different subscription form
   more text
end of Post #2

Each subscription form could be different and is part of a different mailing list.  Reason:  Not everyone cares to subscribe to a list specifically addressing cancer and its problems, as per the example at the start of this reply, but they might be interested in learning things about the water they drink.

There is no limit to the number of lists that I can create with AWeber, as long as I pay the bill (hehehe).

Thus far, I guess, the thoughts are leading to something that says it cannot be done without having an error, at least one out of two times.  (Please see post on Sunday by Pretzelfisch).  The matter of iframes was suggested but I simply do not know how to incorporate into the post when I use WLW.

Are there any other thoughts on the matter?

Thanks for the input and I hope I've added clarification and not more confusion.  I did work around the matter by adding a graphic that linked to a page outside of the blog which allows a person to subscribe to more than one list.  I really like the idea of using the iframe though because the user does not have to be taken off the page and simply sees the form as part of the post.  Does this make sense?

Thanks again,
Wayne
Developer
Jan 27, 2009 at 2:58 PM
Well, to use WLW to insert HTML code, you need to change the View (from the tool bar or menu bar) so that it's showing the raw HTML. From there, you can copy and paste any HTML you want, including IFRAME code.

On Tue, Jan 27, 2009 at 9:56 AM, WayneS <notifications@codeplex.com> wrote:

From: WayneS

The object is to put a form within a post. It might be the case that a different post will lead to a different form. The form itself is html code generated by AWeber. It allows one to create a mailing list. Thus, someone might like to create a mailing list that deals with the issue of contaminated drinking water throughout the United States. Another list might be natural alternatives to healing cancer. So the senario would look something like this:

Post #1
some text
to subscribe fill in the form below
(at this point aweber code kicks in after user hits submit and then produces a confirmation page that the user clicks to close)
more text for this post
end of Post #1

Post #2
some text
different subscription form
more text
end of Post #2

Each subscription form could be different and is part of a different mailing list. Reason: Not everyone cares to subscribe to a list specifically addressing cancer and its problems, as per the example at the start of this reply, but they might be interested in learning things about the water they drink.

There is no limit to the number of lists that I can create with AWeber, as long as I pay the bill (hehehe).

Thus far, I guess, the thoughts are leading to something that says it cannot be done without having an error, at least one out of two times. (Please see post on Sunday by Pretzelfisch). The matter of iframes was suggested but I simply do not know how to incorporate into the post when I use WLW.

Are there any other thoughts on the matter?

Thanks for the input and I hope I've added clarification and not more confusion. I did work around the matter by adding a graphic that linked to a page outside of the blog which allows a person to subscribe to more than one list. I really like the idea of using the iframe though because the user does not have to be taken off the page and simply sees the form as part of the post. Does this make sense?

Thanks again,
Wayne

Read the full discussion online.

To add a post to this discussion, reply to this email (dasBlog@discussions.codeplex.com)

To start a new discussion for this project, email dasBlog@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com




--
-------------------------------------------
Nicholas Schweitzer
nick@nickschweitzer.net

The World According to Nick
http://www.nickschweitzer.net

The Coding Monkey
http://www.thecodingmonkey.net
-------------------------------------------
Jan 27, 2009 at 4:45 PM
That I already do when I incorporate adsense into a post.  Not quite that familiar with html code for an iframe.  I used to play with iframe way back when I used frontpage, probably around 2003 or so but then it was simply a matter of throwing something on the page that would set up things for you - or at least that's what I sort of remember.  Might not be 100% certain on that.

Is there some ref I could look at to incorporate it?  Is it something as simple as <iframe nameofframe sizestuff> or ?????  Any help in that area online or otherwise?

Thanks again,
Wayne
Jan 27, 2009 at 5:42 PM
Basicaly what you will want is.
<iframe src ="http://www.waynestrnad.info/subscriptions/" width="100%" height="300px">
  <p>Your browser does not support iframes.</p>
</iframe>


refrance to w3cschools
Jan 27, 2009 at 6:18 PM
Bravo!  I hope it's not premature.  Looks nice.  I'll need to change some of the settings for width on that iframe link but it seems that all's well.  That was one heck of a good idea pretzelfisch!  It sort of opens up a whole new world being able to bring in another web page into the blog.  The possibilities seem endless.  Great going and fantastic suggestions.

While I was looking up stuff on iframe I stumbled upon this site:  http://www.layersmagazine.com/using-iframes-in-adobe-dreamweaver.html
It sort of gives people a good idea about working, at least fundamentally anyway, with iframes.  Hope someone finds it of use.  I did.

I think I might put together a little paper on this for others who use list building software, like AWeber, and need to incorporate it into a blog.  Would anyone mind if I mentioned the people who suggested ways to go as contributors to the article?

Thanks again everybody.  Next, I'll try adding more iframes with forms to other posts and see if all is well.

Wayne
Jan 28, 2009 at 10:53 PM
Ever hear of Murphy's Law?  A strange thing happened today.  I went to visit the site to see if the iframes were still working.  Somehow, and I cannot explain it at all, one of the iframe links to a web page got replaced by a google adsense ad.

On my end I had WLW running with the Cancer Info showing.  It was the same one I published yesterday.  I republished and the problem went away and everything shows properly.  Any ideas why it would change the iframe to an adsense ad?

Thanks for any feedback.

Wayne
Coordinator
Jan 28, 2009 at 11:02 PM
I don't know for sure, but I have seen sites checking for display in iframe, and either not allowing or redirecting to another site, or ad.

Tom
Jan 28, 2009 at 11:14 PM
Thanks for the reply Tom.

I would assume that it requires a redirect of some sort when the iframe loads; in my case replacing a static page reference with a google adsense reference.  But that might suggest some other software (a virus or something) that somehow interfaces with a page.  Upon loading a page, doesn't the server just display the info suggested in code?  Is there some "ether" for a lack of better term, that allows the grabbing of information between the server and browser?  If this last question is yes then anything we see in a browser could be altered in the path to the browser, whether its http or https.

So far the posts are stable.  I'll check at various points tonight and tomorrow.

Once again, thanks for the reply.

Sincerely,
Wayne
Coordinator
Jan 29, 2009 at 12:48 AM
Edited Jan 29, 2009 at 1:24 AM
I don't remember the details now, but I assure you that a web site using script can stop display or redirect if a inframe is used.

The reason I know, is one of the first web sites I created over 10 years ago, was a personal menu system where I was trying to iframe
http://www.fool.com/.

Back in those days you could find and talk to the developers, I called them and asked why it didn't work and they told me of their Java secrect sauce,
and since I didn't want to turn of Java, I dropped them from my menu. (A bunch of nice guys, willing to talk to a newbie...)

I image, they still block iframes today.

Cheers
Tom

edit:
They are doing somthing like this:
<script type="text/javascript">
if (top!=self) top.location.replace(location.href);
</script>
Jan 29, 2009 at 12:47 PM
Edited Jan 31, 2009 at 10:23 AM
So far everything seems stable.

The code that you added would appear somewhere on the page that is being loaded into an iframe.  Is that correct?

I sort of don't understand why someone would want to block a page from being loaded, especially when it contains free information that anyone can see; I don't believe there would be a copyright problem with showing the page because the end user sees the whole page, complete with copyright info.  The page itself would show anything that the original page showed if a person went to visit the site.  In my case, the static web page being loaded has no block anywhere, but simply a form and it sits on my site.

As I thought about it a bit more there was something on my end that might have caused the problem.  I have two systems both of which have WLW installed.  That night I had the Cancer page loaded in one and was working on an article on the other.  It was getting late so I just stopped work and left the uncompleted article open.  When I returned in the morning, WLW stopped working - actually crashed on the system I was writing the article on.  The other system loaded with the Cancer page was ok so it was just a matter of republishing the thing.

Questions:  In WLW is there a constant or periodic contact with the server?  When one opens WLW does the program go out to see the theme and refresh it before the user starts work and then keep a connect open with the server or is everything simply done at the local level until something is published?

WLW docs are a bit lacking.

Anyway, thank's again for the feedback.

Sincerely,
Wayne




Jan 31, 2009 at 10:27 AM
Just a quick note for everyone that has followed these posts, everything is stable and working.

I hope you have a wonderful weekend!

Sincerely,
Wayne