A Digital Age Deserves A Digital Leader

Webmail Coding

Webmail Coding

Postby T-Man1984 » Tue Mar 23, 2010 1:08 pm

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.
PRO Level 6
User avatar
Posts: 231
Joined: Thu Sep 26, 2002 12:27 am
Location: Ohio
Real Name: Justin Spafford

Re: Webmail Coding

Postby jbullard » Tue Mar 23, 2010 1:16 pm

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
VP - Software
User avatar
Posts: 3653
Joined: Sun Jun 06, 2004 10:17 pm
Location: Utah
Real Name: Jason Bullard

Re: Webmail Coding

Postby T-Man1984 » Tue Mar 23, 2010 2:34 pm

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!
PRO Level 6
User avatar
Posts: 231
Joined: Thu Sep 26, 2002 12:27 am
Location: Ohio
Real Name: Justin Spafford

Re: Webmail Coding

Postby T-Man1984 » Tue Mar 23, 2010 4:28 pm

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!
PRO Level 6
User avatar
Posts: 231
Joined: Thu Sep 26, 2002 12:27 am
Location: Ohio
Real Name: Justin Spafford

Re: Webmail Coding

Postby jbullard » Tue Mar 23, 2010 5:42 pm

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'};" />
VP - Software
User avatar
Posts: 3653
Joined: Sun Jun 06, 2004 10:17 pm
Location: Utah
Real Name: Jason Bullard

Re: Webmail Coding

Postby T-Man1984 » Tue Mar 23, 2010 6:02 pm

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!!!
PRO Level 6
User avatar
Posts: 231
Joined: Thu Sep 26, 2002 12:27 am
Location: Ohio
Real Name: Justin Spafford

Re: Webmail Coding

Postby jbullard » Tue Mar 23, 2010 6:37 pm

Actually this would only work for the non-password field. I will post something up in a few hours.
VP - Software
User avatar
Posts: 3653
Joined: Sun Jun 06, 2004 10:17 pm
Location: Utah
Real Name: Jason Bullard

Re: Webmail Coding

Postby jbullard » Wed Mar 24, 2010 1:22 pm

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. :no 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'};" />
VP - Software
User avatar
Posts: 3653
Joined: Sun Jun 06, 2004 10:17 pm
Location: Utah
Real Name: Jason Bullard

Return to HTML, CSS, and Scripts

Who is online

Users browsing this forum: No registered users and 1 guest