|
I tried this....
<br />
<html><br />
<head><br />
<script language="JavaScript"><br />
function convert() {<br />
myString = new String(frm.test.value);<br />
alert (myString.toUpperCase());<br />
}<br />
</script><br />
</head><br />
<body><br />
<form name="frm"><br />
<input type="text" name="test" value="test"><br />
<input type="button" value="Convert" onCLick="convert();"><br />
</form><br />
</body><br />
</html><br />
<br />
hope it works.
cya.
Jon
GET TO KNOW ME
|
|
|
|
|
Hi Jonavis. Thanks for the reply, but as I mentioned in my question, I KNOW you can use toUpperCase. My reason for wanting to do it with a Regular Expression was to better my understanding of Regular Expressions.
Kyosa Jamie Nordmeyer - Cho Dan
Portland, Oregon, USA
|
|
|
|
|
does anybody know the php equivalent to this?
i cant find any info on it
doh!
"even if my world is weird its my world" biz stuff about me
|
|
|
|
|
don't know PHP a whit but there must be access to the environment variables which is where that should be located.
"No matter where you go, there your are..." - Buckaoo Banzi
-pete
|
|
|
|
|
give this a try...
${"LOCAL_ADDR"};
I got this from converting an ASP file to a PHP using ASP2PHP.
http://asp2php.naken.cc/
I am not really sure if it works...
luck,
Jon
X-ZD Designs
|
|
|
|
|
I'm opening a Word doc. with IE. I some pc's, Word shows up embedded within IE while in others, Word starts as a stand-alone app and opens the document. I need to always have Word within IE. Is there a registry setting I can use to control this? Are there other ways to accomplish it?
|
|
|
|
|
I think, this is due to the IE. If the word plugin is integrated in the IE, it works fine as you want. But for lower version of IE or IE not having the plugin, it downloads the file separate and opens as a separate office doc.
I was born intelligent Education ruined me!.
|
|
|
|
|
Hi,
We're running into a confusing problem in which we do a select from our HR tables and dump the results into a SELECT html input control.
Things work fine until we try to grab everyone in the entire company, at which point not all of the results make it into the html control..
Is there a limit to the number of items a SELECT control can hold? Does it vary for NS/IE?
Has anyone experienced this?
thanks!
|
|
|
|
|
Help! error: Object required "this".
I just did testing on your code in regards to onmouseover. I sufferred from the same problem working with DataGrid's "item" as data row <tr> on my HTML table.
Following is a few things I tried, I keep getting:
error: Object required: 'this'
I have tried many things and I really cant solve this. Help!
CASE 1: HTML table row
<tr onmousedown="Login()" id="rwLogin" onmouseover="document.getElementByID(rwLogin).style.backgroundColor='LightSteelBlue'" style="CURSOR: hand" onmouseout="document.getElementByID(rwLogin).style.backgroundColor='Ivory'">
<td align="middle"><font face="Verdana" color="darkslategray" size="2"><b>Login</b></font>
</td>
</tr>
CASE 2: HTML table row
<tr onmousedown="Logout()" id="rwLogout" onmouseover="this.style.backgroundColor='LightSteelBlue'" style="CURSOR: hand" onmouseout="this.style.backgroundColor='Ivory'">
<td align="middle"><font face="Verdana" color="darkslategray" size="2"><b>Logout</b></font>
</td>
</tr>
CASE 3: HTML table row
<tr onmousedown="NewReg()" id="rwRegister" onmouseover="this.bgColor='LightSteelBlue'" style="CURSOR: hand" onmouseout="this.bgColor='Ivory'">
<td align="middle"><font face="Verdana" color="darkslategray" size="2"><b>Register</b></font>
</td>
</tr>
CASE 4: DataGrid Item
//Set mouseover and mouseout attributes:
foreach( DataGridItem item in this.dgForum.Items)
{
//Mouseout:
if (item.ItemType==ListItemType.Item)
{
item.Attributes.Add("OnMouseOut", "this.style.backgroundColor='Snow'");
}
else
{
item.Attributes.Add("OnMouseOut", "this.style.backgroundColor='GhostWhite'");
}
//Mouseover:
item.Attributes.Add("OnMouseOver", "this.style.backgroundColor='Red'");
}
norm
|
|
|
|
|
Hi,
I want to print a specified HTML page if a checkbox in the previous page is clicked and also that my Web Browser should not prompt with the Print Dialog box.
I am using the Microsoft Web Browser ActiveX Control for the same:
<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" VIEWASTEXT></OBJECT>
And I am calling the function on window.onLoad event as
WebBrowser1.ExecWB(6, -1)
(I understand that
1 is for Prompt and Print;
2 is for No Prompt and Print
But as per OLECMD documentation, NoPrompt and Print is no longer supported and hence a search in Google revealed that -1 does this trick.
But now, very often my web server complains an error like
Unspecified error
URL: res://c:/windows/system32/shdolc.dll#previewdlg
Sometimes, IE is trying to crash and close itself and tries to send an Error Report to Microsoft. I am using IE 6 on Windows XP (with .NET Framework installed on the system).
Please suggest me an activeX Control to print without prompt.
Thanks in advance....
Deepak Kumar Vasudevan
http://deepak.portland.co.uk/
|
|
|
|
|
Hi, I want to set a delay in the ASP page and make a loop. The basic requirement is, my server supports bulk mailing of 20 mails per 10 minutes. So, my code should pump out 20 mails and wait for 10 minutes and pump out next 20 mails.. and this process repeats until my database is exausted.
Now, I need a delay routine in the ASP page to acomplish this job as a 'delay routine'. Is this possible with simple ASP or JScripts????
Thanks
I was born intelligent Education ruined me!.
|
|
|
|
|
Window.setInterval(func, interval,args....) should do the job. The parameter func should be the mailing function, interval is the interval in milliseconds (10000 in this case). The rest, args are passed to func as parameters. Window.clearInterval(intervalid) stops the periodic call to func by Window.setInterval(...). The value intervalid is returned by the call to Window.setInterval().
The func should execute Window.clearInterval when the database EOF is reached, ending the mail process.
It is ok for women not to like sports, so long as they nod in the right places and bring beers at the right times.
Paul Watson, on Sports - 2/10/2003
|
|
|
|
|
I guess you are pulling this from jscripts??
Will check it out and give a try at it
I was born intelligent Education ruined me!.
|
|
|
|
|
Yup. I haven't had a need to do this, but I remembered seeing it in the O'Reilly book, "Javascript - The Definitive Guide." Hope it works for you.
It is ok for women not to like sports, so long as they nod in the right places and bring beers at the right times.
Paul Watson, on Sports - 2/10/2003
|
|
|
|
|
Anyway, it has served the purpose. It works fine except for the thing that...
delay
routine()
delay
routine().....
As a result the whole page starts with the delay first. At first sight I thought the routine is not working (I gave a delay of a minute). But it works fine....
Thanks a lot!
I was born intelligent Education ruined me!.
|
|
|
|
|
How can I resize (or hide) a frame (with javascript) when clicking a button in the same frame?
|
|
|
|
|
function HideFrame() {
top.FrameSetName.cols = "0,*";
}
Put this code in a child page and replace FrameSetName with the name/id of its frameset. Call the function with a button click or whatever is needed.
[edit]Oh yeah, you can play with the rows too ... I know this works in IE [/edit]
Wally Atkins Newport News, VA, USA
|
|
|
|
|
Thanks!
Works perfectly!
/Daniel
|
|
|
|
|
can somebody more knowledgeable than me tell me what the order of the request.blah search is in?
does it go:
GET
POST
SESSION
COOKIES
?
"even if my world is weird its my world" biz stuff about me
|
|
|
|
|
|
hu? need more information
>> request.blah search ??
do you mean query string vs. form variables?
"No matter where you go, there your are..." - Buckaoo Banzi
-pete
|
|
|
|
|
Here's a reference to an URL that explains how to set up SMTP on your server so you can send emails via CDONTS.
Now, under:
MMC
>Services And Applications
>IIS
>Default SMTP (Select Properties)
>Delivery Tab
>Advanced
>Textbox: Smart Host: mail.somedomain.com (PROBLEM HERE. See below)
QUESTION: I do not have a domain name on my test server. Can I set "Smart Host" to "mail.127.0.0.1" instead? I tried, it didnt work.
Thanks.
|
|
|
|
|
Hi, everyone!
I have a C++ client that can form a HTTP
package, including header and body. Now I
want to send some binary data (byte stream) to
a servlet. Now I have two questions,
1. What is the format of the HTTP request package
that my C++ client should form?
2. How can the servlet receive the byte stream data?
BTW: I want to send all the data in HTTP body.
Where can I find some sample codes?
Thanks in advances,
George
|
|
|
|
|
In a pure XHTML/CSS environment, where you only use CSS for formatting and XHTML for structure, how does one center or right-align things that are not text? Like, if I wanted to make a resolution-independent page that centered the logo at the top, how could this be done? I know for text there's the text-align property, and I know you can position things exactly relative to the left and top of the page, but... how could you center or right-align, say, an image, using pure CSS?
-Domenic Denicola- [CPUA 0x1337]
“I was born human. But this was an accident of fate—a condition merely of time and place. I believe it's something we have the power to change…”
|
|
|
|
|
text-align operates on any line-box so whether it contains text, images, tables, objects, rules, or whatever, it should have the desired effect.
So in the example you gave of an image, you would do something like this
<div style="text-align: center; width:100%">
<img ... />
</div>
|
|
|
|