Webmail Coding
8 posts
• Page 1 of 1
Webmail Coding
Hello,
I would like to add a webmail login to the mainpage of a site I designed. The webmail provider is iPower. I know someone on here was able to tell me the correct coding once before for my own webmail. I contacted iPower and they of course say it's not possible, but I know it is.
Can someone help me out?
Thanks!
http://maebs.com/indexwebmailtest.html
This is what I have by copying their code. It doesn't work.
- T-Man1984
- Posts: 231
- Joined: Thu Sep 26, 2002 12:27 am
- Location: Ohio
- Real Name: Justin Spafford
Re: Webmail Coding
I can't see your site as it is blocked by my company; however, here is the code that I came up with from their site.
- Code: Select all
<form name="" action="http://www.ipower.com/mail/index.bml" method="POST" enctype="">
<input class="formfield" type="text" name="address" value="" size="" maxlength="255" />
<br />
<input class="formfield" type="password" name="password" value="" size="" maxlength="255" />
<input type="hidden" name="m" value="" />
<br />
<input class="formbutton" type="submit" name="Login" value="Login" />
</form>
Jason
- jbullard
- VP - Software
- Posts: 3653
- Joined: Sun Jun 06, 2004 10:17 pm
- Location: Utah
- Real Name: Jason Bullard
Re: Webmail Coding
I will try it when I get home! Thanks a lot.
The form I had when I click submit it tried to take me to a page on my site with the .bml ending. Oops!
The form I had when I click submit it tried to take me to a page on my site with the .bml ending. Oops!
- T-Man1984
- Posts: 231
- Joined: Thu Sep 26, 2002 12:27 am
- Location: Ohio
- Real Name: Justin Spafford
Re: Webmail Coding
Works great!
I have a question though. To save space I would like the user and password boxes to say "E-mail" and "Password" so the users know what goes where, but without having it before the boxes. Is there a way I can have those words show up in the boxes, but disappear as soon as they click the boxes.
Thanks!
I have a question though. To save space I would like the user and password boxes to say "E-mail" and "Password" so the users know what goes where, but without having it before the boxes. Is there a way I can have those words show up in the boxes, but disappear as soon as they click the boxes.
Thanks!
- T-Man1984
- Posts: 231
- Joined: Thu Sep 26, 2002 12:27 am
- Location: Ohio
- Real Name: Justin Spafford
Re: Webmail Coding
Sure. You could add something like this to each of those input boxes.
- Code: Select all
<input type="text" name="email" value="E-Mail" onfocus="if(this.value=='E-Mail'){this.value=''};" onblur="if(this.value==''){this.value='E-Mail'};" />
- jbullard
- VP - Software
- Posts: 3653
- Joined: Sun Jun 06, 2004 10:17 pm
- Location: Utah
- Real Name: Jason Bullard
Re: Webmail Coding
So using the code you posted above...where would these be placed? I just want one to say E-mail Address, and the other to say Password.
THANKS!!!
THANKS!!!
- T-Man1984
- Posts: 231
- Joined: Thu Sep 26, 2002 12:27 am
- Location: Ohio
- Real Name: Justin Spafford
Re: Webmail Coding
Actually this would only work for the non-password field. I will post something up in a few hours.
- jbullard
- VP - Software
- Posts: 3653
- Joined: Sun Jun 06, 2004 10:17 pm
- Location: Utah
- Real Name: Jason Bullard
Re: Webmail Coding
I could not find anything specific for the password box. Most people are using jQuery to do things like this but there are known issues with IE. I would say go to the jQuery site and maybe ask the question because I really couldn't find anything. However, for the Email address you would simply use this:
- Code: Select all
<input class="formfield" type="text" name="address" value="" size="" maxlength="255" onfocus="if(this.value=='E-Mail'){this.value=''};" onblur="if(this.value==''){this.value='E-Mail'};" />
- jbullard
- VP - Software
- Posts: 3653
- Joined: Sun Jun 06, 2004 10:17 pm
- Location: Utah
- Real Name: Jason Bullard
8 posts
• Page 1 of 1
Return to HTML, CSS, and Scripts
Who is online
Users browsing this forum: No registered users and 6 guests