Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Community Discussions (All other subjects)
 Is this actually possible........?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Webbo
Average Member

United Kingdom
982 Posts

Posted - 24 November 2007 :  20:12:58  Show Profile  Visit Webbo's Homepage
I've been looking for a script that can be written into a page and do the following:

- The user types into a textbox for example his/her name
- The user then clicks a submit button and his/her name then appears in a pop-up (or similar) formatted in a specific font style and scaled within a set dimension

Is there such a thing or a way of doing so?
I thought about Javascript or Flash but do not have a clue where to start

pdrg
Support Moderator

United Kingdom
2897 Posts

Posted - 26 November 2007 :  11:21:05  Show Profile  Send pdrg a Yahoo! Message
you can partly do it - you could use javascript and the DOM to get the field value, and do whatever you want with it, but in terms of fonts, etc, you're at the mercy of what the client has installed on their computer

If you want to do it server-side, you can take the field value and with a .NET or similar server-side application format as you please and persist that as a graphic - it's non-trivial though.
Go to Top of Page

balexandre
Junior Member

Denmark
418 Posts

Posted - 26 November 2007 :  13:49:04  Show Profile  Visit balexandre's Homepage  Send balexandre an ICQ Message
well, as you say, where to start...

*******************************************************************************
myForm.asp

<form method="post" action="thispage.asp">
<input type="textbox" id="txtName" /><br/>
<input type="button" id="btnSubmit" onclick="openWindow(document.getElementById('txtName').value);" />
</form>

<script type="text/javascript">
function openWindow( sName )
{
if ( sName.length > 0 )
window.open(myPopUp.asp?n=' + sName,'your window name', 'toolbar=no,menubar=no,width=200,height=200,resizable=yes');
else
alert( 'Please insert a name!' );
}
</script>



*******************************************************************************
myPopUp.asp

in the body you just need to write

<span style="font-family: Arial; font-size: 16pt;"><%= Request.QueryString("n") %></span>



Bruno Alexandre
(Strøby, DANMARK)

"a Portuguese in Danmark"



Edited by - balexandre on 26 November 2007 13:51:29
Go to Top of Page

Webbo
Average Member

United Kingdom
982 Posts

Posted - 30 November 2007 :  17:27:01  Show Profile  Visit Webbo's Homepage
Thanks :)
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.21 seconds. Powered By: Snitz Forums 2000 Version 3.4.07