Author Topic: Is This Possible?  (Read 6899 times)

cskaminski

  • Posts: 6
    • View Profile
    • http://www.youbuildwealth.com
Is This Possible?
« on: June 26, 2004, 10:02:04 pm »
I'm curious...

On my current site, I had to add a link to explain to
Hotmail users that they need to add my domain to their
safe list before signing up for the mailing list.

Do you know if it is possible or where I might be able
to find the code to manipulate my subscription form so
that if someone uses a Hotmail address that it will
open a different window instead of sending the info to
my autoresponder?

I figure it would be more effective to have the window
open when they try to subscribe rather than hope they
click the Hotmail link before subscribing.


Thanks,

Chris
There IS a secret psychology to money
that most people don't know about!
For A Shocking FREE Gift visit:
http://www.A-Millionaire-Mind.com

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Is This Possible?
« Reply #1 on: June 27, 2004, 03:30:31 am »
Chris,

Why not use some simple JavaScript?  The JavaScript could run when your form is submitted.  It would check the value of the "email" field and pop up a window that says "When subscribing a HotMail address you must add our domain to your safelist" and requires the user to hit "OK" to continue submission to ListMail.  I can help with some code if you like.

It's also possible to redirect the user to another page, with JavaScript used in a similar manner, when the form is submitted.
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

cskaminski

  • Posts: 6
    • View Profile
    • http://www.youbuildwealth.com
I'm not proficient
« Reply #2 on: June 27, 2004, 04:56:37 pm »
Hi Dean,

Thanks for the reply.

I don't have any experience working with Java Script - other
than when some software I have generates it.

I can manipulate html and install scripts - I don't want to sound
like I don't know how to do anything...

If you would help out with the code, that would be great!

Also, if you know of a resource for Java Script, that would be
great also - then I could be a little more self sufficient and not
need to ask for help so much.


Thanks,

Chris
There IS a secret psychology to money
that most people don't know about!
For A Shocking FREE Gift visit:
http://www.A-Millionaire-Mind.com

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Is This Possible?
« Reply #3 on: June 27, 2004, 06:02:16 pm »
First example, JavaScript in the main <FORM tag:

Code: [Select]
<form name="formname" method="post" action="http://site.com/mail/signup.php" onsubmit="if(document.formname.email.value.indexOf('hotmail.com') > -1){ alert('When subscribing a HotMail address you must add our domain to your safelist'); return true; }">
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

cskaminski

  • Posts: 6
    • View Profile
    • http://www.youbuildwealth.com
Is This Possible?
« Reply #4 on: June 27, 2004, 07:15:00 pm »
Hi Dean,

Thanks again!

Do you think this will work?


<form name="formname" method="post" action="http://youbuildwealth.com/mail/signup.php" onsubmit="if(document.formname.email.value.indexOf('hotmail.com'||'yahoo.com') > -1){ open('http://www.youbuildwealth.com/hotmailusers.html'); return true; }">

???

-Chris
There IS a secret psychology to money
that most people don't know about!
For A Shocking FREE Gift visit:
http://www.A-Millionaire-Mind.com

cskaminski

  • Posts: 6
    • View Profile
    • http://www.youbuildwealth.com
Is This Possible?
« Reply #5 on: June 27, 2004, 08:38:58 pm »
Hi Dean,

I did a little research at javascriptmall.com and then some playing
around...

I got this to work the way I want it:

<form name="formname" method="post" action="http://youbuildwealth.com/mail/signup.php" onsubmit="if(document.formname.email.value.indexOf('hotmail.com'||'yahoo.com') > -2){ window.open('http://www.youbuildwealth.com/hotmailusers.html'); return false; }">

It opens the new window and stops the submission. I don't have a
Yahoo account, but it is stopping the Hotmail - I'm going to guess
that it would stop the Yahoo ones also.

I'll put a new form in the window that opens.

Do you think this will work correctly on most browsers, or did I just
get lucky to have it work on mine?


Thanks,

Chris
There IS a secret psychology to money
that most people don't know about!
For A Shocking FREE Gift visit:
http://www.A-Millionaire-Mind.com

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Is This Possible?
« Reply #6 on: July 01, 2004, 01:43:02 am »
This should work fine under all browsers, providing they are running JavaScript (the majority are).
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting