|
Is it possible to change textarea scrollbar width?
Ruslan.
|
|
|
|
|
I don't think so, the scrollbar width is a attribute that just the user can change.
----
hxxbin
|
|
|
|
|
NO.
But u can try to change the appearance using CSS
I was born intelligent Education ruined me!.
|
|
|
|
|
I have the following regex inside a php function which I want to basically varify whether a zip code is actually a zip code and not a zip code with any funny (possibly harmful characters)
It doesn't work...what am I missing here....
if(eregi("[0-9]{5}(-[0-9]{4})?", $value))
return 1;
else
return 0;
Thanks
Cheers
How do I print my voice mail?
|
|
|
|
|
|
Thats where I get all my regex from
Some don't seem compatable with PHP though
How do I print my voice mail?
|
|
|
|
|
|
Does anyone know if it is possible to add encripted scripts to the microsoft script control? I have some vbs files encripted with microsofts script encoder that I want to use, but the AddCode method always throws errors. Is there a way to add these files or is that control unable to decode the encription?
Any help at all would be appreciated. Thanks.
|
|
|
|
|
Hi there,
I'm creating a document on the fly with the document.open() and document.close() methods. But before I display this page, I'd like to load an image into the cache with var i = new Image(); . My question is, how can I make the code wait for the image to be loaded completely, before continuing with the next line?
Many thanks for any advise,
Matthias
|
|
|
|
|
As far as I know, you cannot do that. All you can do is to make an init function that loads the images that is triggered on the ONLOAD event of the BODY. Then do everything else after that function has been executed...
theJazzyBrain
Excelence is not an act, but a habbit Aristotle
|
|
|
|
|
You could tell the system to wait, and execute another method after a specified delay. If you really wanted to get into it, you could use some JavaScript to determine the user's bandwidth and then use that to determine about how long it will take to load the image based on its size.
...but, that all sounds like a lot of hassle.
Michael Flanakin
Web Log
|
|
|
|
|
hi ...
i want to ask about making of html design approach in Frontpage program
that based on building tables inside tables to insert images and banners and so on...
i face some problems to keep all cells with no
destruction,
so when i try to change the properties
of some cells such as : width or hight of any cell,
the prperties of other are changing also
than you for your help
soka
|
|
|
|
|
haitham_rasheed wrote:
when i try to change the properties
of some cells such as : width or hight of any cell,
the prperties of other are changing also
Yea... when the property of the inner table increases beyond the containing cell... it obviously affests the outer property also... I am not sure about fising this problem
I was born intelligent Education ruined me!.
|
|
|
|
|
hi ...
i want to ask about making of html design approach
that based on building tables inside tables to insert images and banners and so on...
i face some problems to keep all cells with no
destruction,
so when i try to change the properties
of some cells such as : width or hight of any cell,
the prperties of other are changing also
than you for your help
soka
|
|
|
|
|
I'm a total newbie to regex...actually I use it all the time and just never bothered to learn it...but instead just find regex around the net and copy paste
Anyways...I need a regex for verifying a home mailing address...
123 Test Rd.
This is what I have so far...
[^0-9A-Za-z]
At the very minimum I need to allow single white spaces..
Actually that's all I need....if you can show me how I would add the ability to check for whitespace too that would be great
Cheers
How do I print my voice mail?
|
|
|
|
|
For whitespace use \s
So you got one or more decimals: \d+
followed by a single whitespace \s
followed by one or more characters \w+
followed by a single whitespace \s
followed by one or more characters \w+
making this: \d+\s\w+\s\w+
There are some tools for building and testing regular expressions around the web. Perhaps you should try one.
|
|
|
|
|
Further to the other posters answer - try the Expresso tool right here on CP
Ian Darling
"The trouble with the world is that the stupid are cocksure and the intelligent are full of doubt." - Bertrand Russell
|
|
|
|
|
I have a form in which there are numerous fields and when I handle those fields on the server side of things (prior to sending to a database) I typically use a PHP function addslashes() which escapes characters which may be harful to a SQL database. However without even calling addslashes() it appears IE is doing this for me??? I don't remember this happeneing in the past...is this a new feature in IE6???
I sent an email addy as an example using
nuweb1@hotm'ail.com
and echoing my email before securing it myself using any PHP
I get
nuweb1@hotm\'ail.com
Can anyone explain whats going on...should I still escape my input data before sending to a database?
When I do then I get something like:
nuweb1@hotm\\\'ail.com
Which requires me to call stripslashes() twice
I've since switched to just checking all email with a advanced regex and just don't let it through if it's wrong. However what should I do with message text's type fields??? Does the htmlentities function convert single quote chars into html entities as well...?
so ' would be $xxx; and so on...?
Thanks
How do I print my voice mail?
|
|
|
|
|
hi, all
is 123@123.123 a valid email?
any website having validation to identity this as email validation ?
as i know codeproject says nothing about it in registration. u can give all numbers
like 12123@1212.12323 etc for email while registration
thnx
harinath mallepally
Harinath
Cybernet software systems pvt. ltd.
3, Bishop wallers avenue east,
mylapore
chennai
India-600004
|
|
|
|
|
There are quite a few common examples of regular expression validators or custom validators for use with JavaScript and ASP or ASP.NET that you might find with a few minutes of searching using google or something; for a clear definition of what constitutes a valid email address, you'll have to find the RFC on that subject.
What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.
|
|
|
|
|
Hi everybody
I have a page with an asp repeater that consists of a list of radio buttons. I am using javascript in order to find the radio button that was checked. Everything works fine in IE but when I try it in NN 7.1 the following piece of code will produce an error.
if (browser == "N")
OnShipOptionChange(RadioButton_GetSelectedNN(window.document.getElementById("<%=m_methodid.UniqueID%>"))); <--this called
else
OnShipOptionChange(RadioButton_GetSelected(window.document.getElementById("<%=m_methodid.UniqueID%>")));
function RadioButton_GetSelectedNN(obj) <--the function called by the code above.
{
for(var idx = 0, max = obj.attributes.length; idx < max; idx++)
{
if(obj[idx].checked == true) <-- line that gives the error
return obj[idx];
}
return null;
}
The Error Message is: "obj[idx] has no properties". I have tried everything and I cannot make it to work. Any help will be highly appreciated. Thank you very much for your time
Spiros Prantalos
Miami the place to be!!
|
|
|
|
|
Hello,
When the user pushes a button, I would like to pop up a dialog box which asks them if they would like to continue or not. It the user chooses to continue, then the code on the server will run. I attempted to do this using the Javascript confirm() method. Here is my script:
<br />
function ConfirmDelete()<br />
{<br />
var msg = "Are you sure you want to delete the account?";<br />
if(confirm(msg))<br />
{<br />
<%DeleteAccount();%><br />
}<br />
}<br />
Here is the html:
<br />
<INPUT id="DelAcc" onclick="ConfirmDelete();" type="button" value="Delete Account" name="DelAcc"><br />
For some reason, the code in the ConfirmDelete function is being called immediately when the page loads (this includes the DeleteAccount server code), instead of just when the button is pushed. Is there something wrong with my code? Or, is there a different way to do this?
Thanks,
RC
|
|
|
|
|
If I put the following into <script> tags in the <head> section of a plain-ol' vanilla HTML page, like so:
<script>
function ConfirmDelete()
{
var msg = "Are you sure you want to delete the account?";
if(confirm(msg))
{
}
}
</script>
and the following in a plain HTML button:
<input type="button" id="blah" onClick="ConfirmDelete();" name="blah" value="Click">
...it works just fine, at least with IE6.x on W2K.
What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.
|
|
|
|
|
By the way, the only way you can execute code stored in a server-side ASP function from a client-side JavaScript is to make the JavaScript post back to the server, either by posting a form or navigating to a URL with a query string.
What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.
|
|
|
|
|
I think the reason my code was not working is because I was attempting to run server script from the client in the <%DeleteAccount()%> line of the code. I found a different way to make it work using the javascript doPostBack function.
Thanks for your input!
RC
|
|
|
|