subscriber modify question

Discussion related to NP Subscriber Pro.

subscriber modify question

Postby stevan » Sat Oct 20, 2007 9:41 am

First a very easy to install script NEVER done a cgi before and worked first time

The question is after they subscribe to the list the screen comes up and says something like you have been subscribed . What I am asking can that be changed to a small popup so the page they signed up on stays there or a auto return on that subscribe screen so after a few seconds it will go back to the page where the sign up in on

THXS Steve
stevan
 
Posts: 13
Joined: Sat Oct 20, 2007 9:34 am

Postby Admin-BS » Sat Oct 20, 2007 8:24 pm

Probably the simplest thing for you to do would be to change the subscription form HTML code to make the submission pop up a new window. You can do this by simply changing the form tag and adding "target" to it:

<form action=... target="_new">...

When a user clicks the submit button, a new window will pop up.
Admin-BS
Site Admin
 
Posts: 99
Joined: Sat Dec 31, 2005 6:52 pm
Location: USA

Postby stevan » Sat Oct 20, 2007 9:11 pm

I think i am not doing it right here is what I did the new is not right >>

<form action=http://www.url.net/cgi-bin/mail/subscriber.cgi method=post>target="_new">...
Last edited by stevan on Sat Oct 20, 2007 9:17 pm, edited 1 time in total.
stevan
 
Posts: 13
Joined: Sat Oct 20, 2007 9:34 am

Postby Admin-BS » Sat Oct 20, 2007 9:16 pm

It should just cause a new window to be created.

Make sure you have the whole form tag in there correctly:

<form action="http://path/to/subscriber.cgi" method="post" target="_new">
Admin-BS
Site Admin
 
Posts: 99
Joined: Sat Dec 31, 2005 6:52 pm
Location: USA

Postby stevan » Sat Oct 20, 2007 9:26 pm

ok got it to work Is there a way to make it justable like a popup window
stevan
 
Posts: 13
Joined: Sat Oct 20, 2007 9:34 am

Postby Admin-BS » Mon Oct 22, 2007 4:24 pm

Sorry for the slow response.

You can make it into a true pop-up by using javascript. The most straightforward way to accomplish this would be to add an "onSubmit" tag to your form. For example:

Code: Select all
<form action="http://path/to/subscriber.cgi" method="post" onSubmit="window.open('','subwindow','height=300,width=700,scrollbars=yes'); this.target='subwindow'; return true;">


Note that this replaces the target tag from the previous response. Also, you can change the height and width on that to whatever you want.

Hope this helps!
Admin-BS
Site Admin
 
Posts: 99
Joined: Sat Dec 31, 2005 6:52 pm
Location: USA

Postby stevan » Mon Oct 22, 2007 4:44 pm

The new screen comes up blank

<form action="http://path/to/subscriber.cgi" method="post" onSubmit="window.open('','subwindow','height=300,width=700,scrollbars=yes'); this.target='subwindow'; return true;
stevan
 
Posts: 13
Joined: Sat Oct 20, 2007 9:34 am

Postby Admin-BS » Mon Oct 22, 2007 5:11 pm

You might want to try separating it into a separate javascript function. Here's a pretty straightforward tutorial on how you can accomplish that:

http://www.htmlcodetutorial.com/linking/linking_famsupp_73.html
Admin-BS
Site Admin
 
Posts: 99
Joined: Sat Dec 31, 2005 6:52 pm
Location: USA


Return to Subscriber Pro

Who is online

Users browsing this forum: No registered users and 3 guests

cron