Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 12-03-2006, 06:56 PM   #1 (permalink)
Intercept
Recruit
 
Join Date: Dec 2006
Posts: 3
Intercept is on a distinguished road
Outlook express front end Sig dramas.

Greetings all

Im glad to have found this forum. Was wondering if anyone here would be able to help.

What I am trying to do is quite simple I think, I just cant seem to find any information on the internet about it.

I have created a html document which is a outlook express signature. (that I can do LOL) But want I am wanting to do is somehow create a front end that will update this HTML document. For example. Send the HTML file and the front end to the end user , they enter in their name and phone number etc and it updates the HTML doc ready for importing as a sig into outlook express.

I tried doing it with a VB front end with my basic knowledge but havnt got very far and cant seen to find any info on the net about it.

Its more or less just a bit of software (ideally in VB) that can update HTML docs.

Can anyone, pretty please, with sugar on top point me in the right direction or give a suggestion on what I should be using/doing?

I would be eternally greatfull!

Thanks
Intercept is offline   Reply With Quote
Old 12-03-2006, 08:14 PM   #2 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,530
sde is on a distinguished road
it might help if you give an example of the HTML you are trying to dynamically create.
__________________
Mike
sde is offline   Reply With Quote
Old 12-03-2006, 08:40 PM   #3 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,530
sde is on a distinguished road
can they copy and paste it? if so, you could do it with javascript.. here's an example
HTML Code:
<html> <head><title>Outlook Sig Maker</title> <script>
function createSignature()
{
	var name = document.getElementById('name').value;
	var address1 = document.getElementById('address1').value;
	var address2 = document.getElementById('address2').value;
	var address3 = document.getElementById('address3').value;
	var phone_office = document.getElementById('phone_office').value;
	var phone_mobile = document.getElementById('phone_mobile').value;
	
	var sig = '';
	
	// setup font
	sig = '<font face="arial" size="2" color="#666666">';
	
	// create name line
	sig += '<b>'+document.getElementById('name').value+'</b><br />';
	
	// create address lines if they exist
	if (address1) { sig += document.getElementById('address1').value+'<br />'; }
	if (address2) { sig += document.getElementById('address2').value+'<br />'; }
	if (address3) { sig += document.getElementById('address3').value+'<br />'; }
	
	// setup phone html font tag
	sig += '<font color="navy">';
	
	// create phone lines if they exist
	if (phone_office) { sig += 'Office: '+document.getElementById('phone_office').value+'<br />'; }
	if (phone_mobile) { sig += 'Mobile: '+document.getElementById('phone_mobile').value+'<br />'; }
	
	// close font tags
	sig += '</font></font>';

	// display example
	document.getElementById('example').innerHTML = sig;
	
	// display code
	document.getElementById('code').value = sig;
	
}
</script> </head> <body>

Name: <input type="text" id="name"><div>

Address Line 1: <input type="text" id="address1" /> <br />
Address Line 2: <input type="text" id="address2" /> <br />
Address Line 3: <input type="text" id="address3" /> <br />

Office Phone: <input type="text" id="phone_office" /> <br />
Mobile Phone: <input type="text" id="phone_mobile" /> <br /> <input type="submit" name="btn_create" value="Create Signature" onclick="createSignature();" /> <br /> <hr /> <h1>Example</h1> <div id="example"></div> <br /> <hr /> <h1>Code</h1> <textarea id="code" cols="50" rows="10"></textarea> </body> </html>
__________________
Mike
sde is offline   Reply With Quote
Old 12-03-2006, 08:50 PM   #4 (permalink)
Intercept
Recruit
 
Join Date: Dec 2006
Posts: 3
Intercept is on a distinguished road
Ok nps.

I should be able to update html file content using a VB front end tho cant I?
Intercept is offline   Reply With Quote
Old 12-03-2006, 09:12 PM   #5 (permalink)
Intercept
Recruit
 
Join Date: Dec 2006
Posts: 3
Intercept is on a distinguished road
Ahh thanks for your reply. The main problem is that the end users are to put it very nicely, challenged when it comes to computers or id simply get them to edit the HTML sig themselves just entering in their name etc.

So because of this I was hoping to be able to make a simple (perhaps VB because I have a bit of a understanding of that) front end that they can type in their name/number and boooya it updates the html sig doc.

Please forgive my raw noobess with this guys. I honestly apprecate you taking the time to reply.

If you think I should be doing it in java or some other way thats np. Ill go learn how to do it. Just hoping to be pointed in the right direction for the best way to do this without the customer needing to install anything like php etc.
Intercept is offline   Reply With Quote
Old 12-03-2006, 09:27 PM   #6 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,530
sde is on a distinguished road
i don't think we have many active people for VB around here. you would need a server-side language to create/push the file to the user's machine.

you could probably do it with PHP, Java, or VB, but I would only know how to approach it with PHP.
__________________
Mike
sde is offline   Reply With Quote
Reply

Bookmarks

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Textbox.Focus() Question brad_galloway MS Technologies ( ASP, VB, C#, .NET ) 0 09-04-2006 11:08 AM
NEED HELP on card assignment marina Standard C, C++ 9 05-03-2005 08:42 AM


All times are GMT -8. The time now is 03:47 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 RC8 ©2007, Crawlability, Inc.





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting