How do I convert value from text field to String so I can match it with reg.expresion.
Thank you.
validatePhone(form.elements["phone"].value);
function validatePhone(phone){
phone_array = phone.match(myRE);
I have ZipCode input field.
Is there a way when user tries to enter letter or any other char besides number nothing get displayed in the field?
I don't want to display alert box.
Thank you.
I am trying to add date data to mySQL.
Upon adding info into database User selects start and end day when he wants his article to be visible.
I have to 2 questions:
1) What format should I save my date info in mySQL?
Is mm/dd/YYYY '10/31/2004' a good solution?
Users can do search and...
Hi,
When I click on text field I would like to redirect my page to "index_1.php"
but I get "Error on Page".
and by submiting button I would like to to go to "index_2.php".
Thank you.
<form name='myForm' action=\"\" method=post>
setLink_1(form){
form.action="index_1.php"...
How should this should be done with an array help?
Thank you.
if(form.elements["state"].value != '3' || form.elements["state"].value != '6' || form.elements["state"].value != '23' ||
form.elements["state"].value != '33' || form.elements["state"].value != '34' || form.elements["state"].value...
I have php generated html,javascript.
print("<FORM NAME=\"form1\" ID=\"form1\" action=\"Layout.php\" METHOD=\"post\" >");
print("<a href=\"javascript:document.form1.submit()\" >GO</a>");
Can somebody tell me please why when I click "GO" I get
"Error on Page"?
Thank you.
Help please.
Does anybody know if it is possible to send a string from php to JavaScript and then to concatenate it into object
because it does not work for me.
Gives me "Error on Page".
Thank you.
<FORM NAME="form" ID="form" ACTION="Layout.php" METHOD="post"
<input type="checkbox"...
I have a Jvacript Form with Submit button that works.
<TD align="center" colSpan=2>
<a href="javascript:document.SubmitForm.submit()" onClick="return validateUSPersonalInfo(SubmitForm)">
<img src="../Pictures/Submit.gif" border=0 alt="Submit" width="73" height="17"></a>
</TD>
I would like...
I use Flash 5.
As I understand I can stop playing frames in Flash
using "stop()";
Is there a way I can stay on one frame for 5 seconds and so delay playing next frames until 5 seconds expire?
Thank you.
Help please,
Can anybody look at this code:
Everything works fine when I use Line 1.
When I tried to use Line 2 instead of Line 2 I got empty page.
I am trying to use var imgSrc without success.
Path to pictures: "http://www.XXX/PhotoAlbum/picture1.jpg"...
Help please.
I am confused with '".
The following does not work.
writeln('document.mainimage.src = "' + imgSrc + 'picture' + currentPicture + '.jpg";');
Thank you.
Hi,
Anybody knows about javascript that would accept
array of pictures(any number),
placed them on website-as thumbnails(5 columns, x rows)
and by clicking any thumbnail -> would display picture in real size.
Thank you
Help please,
new to Flash
I created 2 movieclips and placed
first movie clip on timeline - frame1,
second movie clip on timeline - frame2.
The only clip playing is X.swf.
How do I get to play XX.swf after X.swf is finished.
onClipEvent(load){
loadMovie ("X.swf", "_root");
}...
Would you please provide me with some code that when entering something into text field accepts just numerical value (onKeyPress)
Thank you.
<TD><INPUT TYPE="text" NAME="Year_Of_Birth" maxLength="4"size="4"></TD>
Does anybody know about script that disable and enable
checkboxes based on radio choice.
Default is Animal_AllergicYesNo is "No" and
checkboxes for Dogs, Cats, ... are disabled
When client clicks yes - Dogs, Cats, ... get enabled
and client can select checkboxes.
<TR>...
Is it possible to access checkbox value from my form
in java script?
something like
if(document.form.boxesName.value <> "Mon")
<INPUT type=checkbox name="Days" value="Mon">Mon
Can someone Help me please,
I asked for help at more places without success
I have problem with line
if (eval("document.form2." + boxesName + i + ".checked"))
Even if I check at least one checkbox field
code does not seem to see it.
In my form I need to make sure that at least 1 checkbox is...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.