Does anyone know how to get the relevant u code in this strng from mail chimp? they used to have chiclets that included this string but not anymore.
Here is an example of one that works and outputs that number:
http://themebeans.us6.list-manage2.com/subscriber-count?b=00&u=57e41705-395c-4dc2-a09b-78cff10f08f6&id=739445b065
I have tried to follow this method with mine e.g.:
http://richpearsondesigner.us7.list-manage.com/subscriber-count?b=1&u=5b14adb7f3334132a65f527cb&id=e98cecd630
However as you can see when you add both URL's to the browser themebeans works and mine errors, I'm assuming it's the 5b14adb7f3334132a65f527cb part that is wrong (no - in the string)
Any help from anyone pleaseeeee.
So, a quick look through the coding on this Smashing Magazine page revealed the following:
<script type="text/javascript" language="JavaScript" src="http://smashingmagazine.us1.list-manage1.com/subscriber-count?b=34&u=e768e688-36c3-4c2d-88fa-982d9d3f254b&id=a1666656e0"></script>
Note how this script simply relies on the user knowing the correct information for the various parameters. This means we can go and find out what our ‘list-manage.com’ datacenter is, our ‘u’ ID number is, and finally our ‘ID’ number.
How to
Log into your MailChimp account and select the list you wish to use for your subscriber count button. Select Signup Forms then Embedded, so that we can reveal the code used to make a signup form specifically for the selected list.
Select the Naked option, and you should see code similar to the following:
<!-- Begin MailChimp Signup Form -->
<div id="mc_embed_signup">
<form action="http://YOUR-USERNAME-HERE.YOUR-DC.list-manage.com/subscribe/post?u=YOUR-U-NUMBER&id=YOUR-ID-NUMBER" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
So we simply replace these details with those in the code above, and we get your very own Subscriber Count Button!
Originally posted here
Related
I am hoping to add a contact form to a GitHub Jekyll website. I have mostly been following advice from the most-liked answer here, from a YouTube tutorial here, and from the FormSpree site.
I created a FormSpree account, verified my e-mail address, and created a form (obtained an ID). Then, I tried to add a contact form into my GitHub Jekyll website, the code of which can be seen here. After that, I went to the corresponding site of that code (here) and sent a test form submission. In the e-mail address field, I tried both the e-mail address connected to FormSpree and an alternative email address.
Either way, upon submitting the "Send" button at the bottom of the page, the page refreshed with an error message: "Form should POST - Make sure your form has the method=POST attribute". I also did not receive the tested message in my email connected to FormSpree. I tried to research this error but see no solutions. As can be seen in the code (here), I believe I do set a method=POST attribute.
I am unsure how to proceed given my inability to effectively interpret the error message. Any advice on how to render this type of contact form successful, especially given this error message, would be very much appreciated!
There is an error in your HTML:
<form action="https://formspree.io/email#gmail.com method="POST" name="sentMessage" id="contactForm" novalidate>
Your action is missing a closing double-quote (") which leads to a false interpretation of your action attribute as "https://formspree.io/email#gmail.com method=" and your actual method as an invalid attribute post".
Should be fixed by replacing the above line with
<form action="https://formspree.io/email#gmail.com" method="POST" name="sentMessage" id="contactForm" novalidate>
Doing so in your pages source code, I was able to submit the form and landed on FormSpree landing page indicating, that your form needs to be activated.
My question references the following question/answer provided in this stackoverflow post: Form Variables are not showing up after form submit. ColdFusion
I wanted to comment in the above referenced post, but I don't have enough reputation points. I see the answer by Samuel Dealey above indicating that using a cflocation or location.replace() could result in Form variables not showing up. That is exactly what is happening in my scenario.
I have a simple registration form submission. Upon form submission the form data is sent to a page named addCampaign.cfm. addCampaign.cfm contains code that will write the registration data to the database. After writing the registration info to database, I verify that info was written to database. At that point I then redirect the user to a specific page if registration was successful, and if not successful then redirect back to the registration form page with an appropriate error message.
I have tried using both for the redirect, and have attempted using javascript location.replace(), both result in the same problem.
The issue I am running into is that:
1) The redirect never occurs
2) I am using to display the struct, but it lists it as empty
3) I have removed the cflocation and location.replace() and can verify that my form elements do exist in the form struct.
4) The form data is being written to the database, which is very strange, considering that the form struct is being displayed as empty.
I don't understand why the form struct is empty when the data is being written to the database, and furthermore I don't know why the redirect does not work. Can anybody provide some clarification on why this would be happening?
Consider this code on a single file
<cfif cgi.request_method EQ "post">
<cfdump var="#form#">
<!--- More importantly, DB inserts --->
</cfif>
<form method="post" action="?">
<!--- Lots of other fields go here too --->
<input type="submit" name="btnSubmit" id="btnSubmit" value="OK" />
</form>
If you do it this way, you don't have to worry about pushing data over redirect of some sort. You are already on the page you want. action="?" basically means submit to the same field as I am already on. Note that the file's behavior is different on a GET vs POST.
I wonder the difference between:
<form method="post" action="">
and
<form method="post" action=".">
I have read this interesting thread. It looks like blank action is handled by all browsers. Some say the period is not a good idea but they don't say why.
Furthermore, this thread is quite old now so i think it would be useful to have an update on the subject.
Thanks.
The blank represents that the result display of the form will display within the same page. Let say if you input the name, address, tel # etc.... and press the submit button. The collected information will display within the same page (probably below the form). I usually do this when i design a form to make sure it works. But there are various reason why they leave it blank instead putting another target page.
<form name="abc" id="abc" method="post" action="/test.cfm" enctype="multipart/form-data">
<input type="submit" name="btnSubmit" id="btnSubmit" value="OK" />
</form>
for some reason when I hit submit the "btnSubmit" is not showing up in the cfdump.
<cfdump var="#form#">
There aren't a lot of things that could cause it to simply not appear in your form. My short-list of culprits are:
Looking at the wrong file / server.
The page is being redirected via cflocation or otherwise (javascript location.replace() or location.href=x) -- this would cause that problem even if the redirection is returning the browser to the same page.
Form variables being stripped out somewhere further up, I would guess in onRequestStart
A local variable named "variables.form" was created and set to a structure further up - not very likely, but I suppose it's possible someone could accidentally write something like <cfset form = url />, which might cause that
Usually, when something like this has happened to me in the past, I've found that I've been viewing the wrong file in the browser. Usually it's come down to me looking at the same file on the wrong domain name, e.g. looking at the production server instead of the development server.
If you combine your code segments above into a single file like this (test.cfm):
<cfdump var="#form#" />
<form name="abc" id="abc" method="post" action="test.cfm" enctype="multipart/form-data">
<input type="submit" name="btnSubmit" id="btnSubmit" value="OK" />
</form>
That ought to give you some insight into your problem. Note that I removed the leading-slash / in the form action, so that this form will post to itself. When I first view this template, I see an empty struct (followed by the button), because I haven't put anything in the form scope yet. When I submit the form I then see two elements in the structure, fieldnames and btnSubmit. That's another good indicator, if you don't see fieldnames in the form structure, then your CFML page may not have received a form submission. If you know you're looking at the right page and you've submitted the form and you still don't have the fieldnames entry, then I'd start looking for potential browser redirection.
You might also want to add an empty Application.cfc in the same directory just to be sure that there's not an application interfering with it. It's possible that something in the onRequestStart might be stripping out form variables with the name "btnSubmit" or even any form variable with the string "submit" anywhere in the name. I wouldn't expect it though -- I'd look for other causes like cflocation tags first.
Ok, I have a client with a peculiar request. He wants to receive an (generated by a workflow) email with a hyperlink that will open a pop-up dialog if you click on it. Note: the link within the email should open a popup and not a web page in a browser.
I immediately thought this would be impossible, but after looking around a bit I found out that you can create a workflow variable with tags in them and insert them into the email body.
eg: here
The conclusion that I draw from this is that an email consists of html code that the email client renders. Now I'm wondering if there is a way to make use of a tag no cause a modal dialog to pop up?
I guess the question is what functionality the email client (Microsoft Outlook) supports. I can't figure how to attach some JavaScript or something that will be used by Outlook. Is there perhaps some embedded functionality within Outlook to accomplish this?
That is very easy. Use this sample code and understand how it works with just normal "mailto" function:
<!DOCTYPE html>
<html>
<body>
<p>
This is an email link:
<a href="mailto:someone#example.com?Subject=Hello%20again">
Send Mail</a>
</p>
<p>
</p>
</body>
</html>
use
window.open('example.html',400,600) ;
in your HTML code..
Also Refer this link for the answer of your question
http://www.coderanch.com/t/121512/HTML-CSS-JavaScript/Opening-popup-JS-outlook-mails