IDN Domains, IDN Domain Forums, Arabic Domains, Chinese Domains, Buy, Sell, and Appraise  

Go Back   IDN Domains, IDN Domain Forums, Arabic Domains, Chinese Domains, Buy, Sell, and Appraise > IDN Development > General Development
Home Chat Register FAQ Calendar Mark Forums Read

General Development General Development

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 5th September 2008, 12:14:55
mj's Avatar
mj mj is online now
Administrator
iTrader Rating: (3) - old IDNF ratings here
 
Join Date: Apr 2008
Posts: 1,299
Rep Power: 1
mj is on a distinguished road
Default DHTML/Ajax "pop-ups" for collecting email addresses?

Does anybody have code that will automatically "pop-up" a section on a page for a user to enter his email address or click cancel before using the page?

The usage is to collect email addresses of visitors to affiliate pages.

.
__________________
A whole lotta woman - a woman you can love all night long and never love the same spot twice...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiGoogle Bookmark this Post!Twit this!Yahoo Bookmark this Post!
Reply With Quote
  #2 (permalink)  
Old 5th September 2008, 14:43:12
mj's Avatar
mj mj is online now
Administrator
iTrader Rating: (3) - old IDNF ratings here
 
Join Date: Apr 2008
Posts: 1,299
Rep Power: 1
mj is on a distinguished road
Default

After clumsily searching around for a while (I didn't understand the jargon to use in the search), I found the solution here:

http://www.dynamicdrive.com/dynamici...dhtmlmodal.htm

Basically I want the "sign up for our newsletter" demo to automatically load when a person visits the page. So I should be able to adapt that code to do what I want fairly easily.

When I get it working, I will post a link to the code here.

Basically what I am after is a sort of a pop-up that can not be blocked, but the user can just click X or a "no thanks" button if he doesn't want to sign up.

.
__________________
A whole lotta woman - a woman you can love all night long and never love the same spot twice...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiGoogle Bookmark this Post!Twit this!Yahoo Bookmark this Post!
Reply With Quote
  #3 (permalink)  
Old 5th September 2008, 14:58:02
alexd's Avatar
Premium Member
iTrader Rating: (2) - old IDNF ratings here
 
Join Date: Apr 2008
Posts: 170
Rep Power: 0
alexd is an unknown quantity at this point
Default

You might want to make sure that it will work if Javascript is turned off.

An alternative could be to use a simply form script, which, when the user completes - they are then simply redirected to whatever page they should go to, and the info from the form can either be stored in a database or emailed to you.
__________________
"She thinks I'm a nice guy. Women always think I'm nice. But women don't want nice. Why is nice bad? What kind of a sick society are we living in when nice is bad?"
George Costanza
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiGoogle Bookmark this Post!Twit this!Yahoo Bookmark this Post!
Reply With Quote
  #4 (permalink)  
Old 5th September 2008, 15:00:32
mj's Avatar
mj mj is online now
Administrator
iTrader Rating: (3) - old IDNF ratings here
 
Join Date: Apr 2008
Posts: 1,299
Rep Power: 1
mj is on a distinguished road
Default

Quote:
Originally Posted by alexd View Post
You might want to make sure that it will work if Javascript is turned off.

An alternative could be to use a simply form script, which, when the user completes - they are then simply redirected to whatever page they should go to, and the info from the form can either be stored in a database or emailed to you.
If Javascript is turned off, then I don't want them using my pages anyway :-)

I got it working somewhat so far, here is my demo:


http://sr0.org/modal/


Now just to modify it so that I can collect the email addresses... Stay tuned.

.
__________________
A whole lotta woman - a woman you can love all night long and never love the same spot twice...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiGoogle Bookmark this Post!Twit this!Yahoo Bookmark this Post!
Reply With Quote
  #5 (permalink)  
Old 5th September 2008, 15:22:12
fool
iTrader Rating: (3) - old IDNF ratings here
 
Join Date: Apr 2008
Location: The Office
Posts: 223
Rep Power: 0
clipper is an unknown quantity at this point
Default

Very nice.
__________________
"In a high building there is so much to do..."
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiGoogle Bookmark this Post!Twit this!Yahoo Bookmark this Post!
Reply With Quote
  #6 (permalink)  
Old 5th September 2008, 17:21:51
mj's Avatar
mj mj is online now
Administrator
iTrader Rating: (3) - old IDNF ratings here
 
Join Date: Apr 2008
Posts: 1,299
Rep Power: 1
mj is on a distinguished road
Default

OK, I've got it cleaned up and accessible via PHP now.

You can download it at http://sr0.org/modal.zip

The submitted email address is accessible via the variable $email on the index.php script. What you do with the contents of $email is up to you (write it to a text file, write it to a database, email it to yourself, etc).

The text of the "popup" page itself can be edited in modalfiles/newsletter.html

This is nice because it's not a real popup, so it can't be blocked in any way as far as I know.

.
__________________
A whole lotta woman - a woman you can love all night long and never love the same spot twice...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiGoogle Bookmark this Post!Twit this!Yahoo Bookmark this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT +1. The time now is 08:45:54.


Powered by vBulletin®
All content is licensed as "Creative Commons"

Search Engine Friendly URLs by vBSEO

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43