[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4668: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4670: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4671: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4672: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
XWidgetSoft Forum • View topic - uppercase via script

XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently April 16th, 2024, 9:54 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: uppercase via script
PostPosted: September 19th, 2013, 11:38 am 
Offline
User avatar

Joined: July 9th, 2012, 1:14 pm
Posts: 112
Hi,
I would like to know how to get uppercase via script?
I've tried already "object.style.fontVariant="uppercase", but it doesn't work.
There is "js_function strVariable.toUpperCase() :string" in the "Script Auto Complete" - popup menu, but how exactly does this work?


Top
 Profile  
 
 Post subject: Re: uppercase via script
PostPosted: September 21st, 2013, 5:53 pm 
Offline

Joined: June 18th, 2012, 12:07 am
Posts: 268
Does this help ?

function button1OnClick(Sender)
{
var OLDTEXT = " testing case conversion method ";
var NEWTEXT = OLDTEXT.toUpperCase();
alert(NEWTEXT);
}


Top
 Profile  
 
 Post subject: Re: uppercase via script
PostPosted: September 22nd, 2013, 6:34 am 
Offline
User avatar

Joined: July 9th, 2012, 1:14 pm
Posts: 112
Hi meme,
thank you for your help! Your script works fine but it isn't exactly what I mean. I only want a change from lower case letters to upper-case letters, but no alert. I could do this by using two different texts and hide/show text1/text2 etc., but I would prefer a solution via script if it is possible. It would be great if you know how to get this. :) uppercase_example.gif
uppercase_example.gif [ 1.67 KiB | Viewed 3857 times ]


Top
 Profile  
 
 Post subject: Re: uppercase via script
PostPosted: September 22nd, 2013, 6:23 pm 
Offline

Joined: June 18th, 2012, 12:07 am
Posts: 268
I am not sure when you want the case to change, but this code from a button press will change the case of text1.

function button1OnClick(Sender)
{
var OLDTEXT = text1.text;
var NEWTEXT = OLDTEXT.toUpperCase();
text1.Text=NEWTEXT ;
}

or in one line
text1.Text=text1.Text.toUpperCase();


Top
 Profile  
 
 Post subject: Re: uppercase via script
PostPosted: September 23rd, 2013, 1:49 am 
Offline
User avatar

Joined: July 9th, 2012, 1:14 pm
Posts: 112
Yes, that's exactly what I want. Thank you very much!!! :D


Top
 Profile  
 
 Post subject: Re: uppercase via script
PostPosted: October 21st, 2013, 4:12 am 
Offline
User avatar

Joined: March 8th, 2013, 10:27 pm
Posts: 353
What about these?
text1.UpperCase = true;

_________________
Life is a myriad game... Just play it!


Top
 Profile  
 
 Post subject: Re: uppercase via script
PostPosted: October 21st, 2013, 7:50 am 
Offline
User avatar

Joined: July 9th, 2012, 1:14 pm
Posts: 112
This works perfectly too! Thank you! :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 28 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

Powered by phpBB® Forum Software © phpBB Group