Irish SEO,  Marketing & Webmaster Discussion

 

script help.... concatenation?

This is a discussion on script help.... concatenation? within the Coding Help forums, part of the Webmaster Help category; Hi All, I need some help with a script. I know how to do this with php but cant figure ...


Go Back   Irish SEO, Marketing & Webmaster Discussion > Webmaster Help > Coding Help

Register Forum Rules FAQDonate Members List Calendar Search Today's Posts Mark Forums Read


Notices

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-02-2007, 12:05 PM
7aken's Avatar
Frontpage User
 
Join Date: Oct 2006
Posts: 23
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
7aken will become famous soon enough
Default script help.... concatenation?

Hi All,

I need some help with a script. I know how to do this with php but cant figure it out for current script which is html and javascript. I have a login form which is basically username and password. my trouble is, with the way the script is the user has to enter there name and password @mydomain. i want to know how to concatenate this @mydomain so the user doesnt have to type this @mydomain

how do i do this?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 06-02-2007, 01:06 PM
RedCardinal's Avatar
Richard Hearne
Recent Blog:
[CaRP] XML error: Invalid character at line 1152
 
Join Date: Feb 2006
Posts: 961
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
RedCardinal is a splendid one to beholdRedCardinal is a splendid one to beholdRedCardinal is a splendid one to beholdRedCardinal is a splendid one to beholdRedCardinal is a splendid one to beholdRedCardinal is a splendid one to beholdRedCardinal is a splendid one to behold
Default

Haven't coded JS in a while so here we go. I'll assume that you can capture the value of the password input into, say,
Code:
var passwordInput = document.getElementById('password');
var password = passwordInput.value;
passwordInput.value = password + '@mydomain';
I'm sure that there is a ncier way to do this - I just cant think of it right now.
Code:
document.getElementById('password').value += '@mydomain';
Christ, I really have to touch up my JS skills
__________________
Search Engine Optimisation - Red Cardinal Internet Marketing
Internet Consultant Ireland | Search Engine Optimisation Services
Catering Company Dublin - My sister's handmade canape company!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
concatenation, script

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads

Thread Thread Starter Forum Replies Last Post
Seo Friendly Classified Script? blacknight Coding Help 10 06-11-2008 07:25 PM
Script Installation, Server Administration bizhat Marketplace Offers 2 10-03-2008 12:29 PM
Episode Guide Script Ronan O'F Coding Help 4 05-01-2007 10:23 AM
cool script for google rank louie Search Engine Optimisation 4 17-03-2006 11:42 AM
Search Engine Friendly Jobsite / classified script blacknight Webmaster Discussion 0 02-02-2006 12:32 PM


Sponsored links

Paid On Results


All times are GMT +1. The time now is 04:39 AM.


Powered by: vBulletin Version 3.7.3, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
Hosted in Ireland by Blacknight - Test your ISP |Irish Hosting Directory| Armchair.ie|Logo by Eden Web Design|Avatars by Afterglow |Latest Blog Entries | VPS HostingAd Management by RedTyger

Search Engine Friendly URLs by vBSEO 3.2.0