Field Checking Doesn't Work
Jan 3, 2009This script is suppose to check for empty fields and check if the expiry_date field on the form is in the right format.
View 10 RepliesThis script is suppose to check for empty fields and check if the expiry_date field on the form is in the right format.
View 10 Repliesthe working code is : $(document).keydown(function(event)and I found out that it's not working on Firefox only on IE and Google Chrome...
View 3 Replies View RelatedThis is a makeshift sort function for a table. I want to replace a div contents with a javascript function call. It works fine if I define the individual case, but the general case doesn't work. The problem lies with the +divHold+ part. It never converges to the passed value on the 2nd iteration. This is my Div:
[Code]...
The "Permission denied" cross site issue.
I have to check from my external domain if a service is running on localhost:8080 of a local machine.
I'm using XMLHttpRequest to do it.
I'm checking a local-web-server, not a file.
Every browser doesn't work, but Firefox. So I'm looking for a work-aorund.
An iframe? a flash swf? an applet java? HTA applications?
A side question is, why does FF work? Because it's a local-web-server?
Have the Javascript function below which takes the name of an input on the form passed as a variable so that 1 function can check many inputs as I have up to 3 fields per form that can accept this data range.
function contact_number_check(formObj,field)
{
var obj = document.forms[formObj];
var regExp = /^([0-9 ])+$/;
alert(field);
[Code]...
I am having some trouble with my code in that I am trying to take the value from the date of birth field and check to see if over 18 years old. I they are not over 18, a window.alert dialog box pops up to tell them. Below is the check if 18 validation.
Script section in the document head:
//check if over 18
function overAge(){
var age;
[code]....
Code for body section:
Date of Birth: <br/>
<input type = "text" name = "date" value = "(mm/dd/yyyy)"/>
What I am wanting to do is have my form open up a new part of the form when the previous sections are filled out. i.e name field shows, when it has content, the next field opens up for it to be filled out, and so on.
View 3 Replies View RelatedI am unable to work my Jquery code for checking all the checkboxes which is inserted in a GridView User control. However,The same code works perfectly fine when I change the user control to a web form.ie,from .ascx to .aspx.[code]This code works perfectly if i change from a user control back to web form
View 1 Replies View RelatedI have a input field (text field) in my html page. User should give input as a string like following 12 345 678,0 If user gives input in format 12345678,0 and leves the input field how can I format the value 12345678,0 into format 12 345 678,0?
Are there any Javascript that can handle this with Regular Expressions?
I've this script:
When I press again the "a.item_add" link it doesn't work (doesn't fadein the div again). how can I "restart" the script ?
Why doesnt the following code work in IE. There is an error on the same row as fillText. It says object doesnt support this property or method.
<html>
<head>
<title></title>
<script type="text/javascript" src="excanvas.js"></script>
</head>
<body>
<canvas id='chart' width='500' height='200'>
[Code]...
I have created a multiple upload function using Flash and JavaScript. I have checked it in all webbrowsers (including Safari) on my computer (windows) and it works fine! Bravo for me! However, I have asked a friend to check my upload function on her Mac, but for some reason it fails. I have no Mac to test ... but does anybody know why the application fails in Safari running on on Mac OS? I understand this is a difficult question without knowing the exact error, but why does it work in Safari on Windows, but not in Safari on a Mac. Is Mac using other standards/conventions for JavaScript or something like that?
View 13 Replies View Relatedthis is a re-post of the last item in ':after in js?', below, but the problem is no longer about ':after': now there's an 'else if' statement that doesn't work. This works: it looks for 2 conditions in a class name, and changes a class:
[Code]....
I've got a form textarea on my site, which after being submitted is stripped by my php file.
Then my javascript kicks in and does some analysis of the entered text. However everytime the user entered a hard return within the textarea my javascript gives me an error 'tekenreeks niet afgesloten' which means something like 'string is not closed'.
Therefore I decided to replace all occurences of chr(10) and chr(13) with ok2 (just some random characters), I did this with php which worked fine, and I didn't get the javascript error.
However I need to reshow the entered text (original) to the user, so I need to restore the old values. I tried result.waarde.replace('ok2', 'chr(13)'); but it doesn't work, as it still displays ok2.
I'm no expert in javascript, but how can I replace those characters by the hard returns?
Oh yeah I'll show some more coding, perhaps the error can be found there code...
I've done some small adjustments to my clients site, but it won't show properly in IE (the shadowbox js at least.). I thought js was accepted in all newer browsers.why it doesn't work?I use mootools, and shadowbox/corners and rightclick blocker.Is it generally a 'bad thing' to use js in webpages I want everyone to view in the same way? I tried the same effects with CSS but it's not supported in the same way corss-browser, unfortunately. The 'no selection' CSS class I have on the site is also not accepted in IE.
View 2 Replies View Relatedhow can I get/set text from <style> tag? innerHTML doesn't work in IE 7 (8?) and neither does
document.getElementsByTagName("style")[0].firstChild.nodeValue = "";
I am having problem making to work 'insertBefore' on IE 6. I have tried to find online solutions but I faild to do so. It works fine on Safari, FF, Opera, but not IE 6. Actually I am trying to insert new '<div>' into document body in front of anything else( this element will appear just after <body> tag ).
Here is a code:
Code:
function subScreen(){
// get actual content of body
var bodyDoc = document.body;
[Code]....
I want to use the following code on my web page but, it doesn't work they way I want it to. Firts, I want the pop up window to close after a certain amount of time but, instead of the pop up closing, it closes the previous page (the main page).
Second, I want to add a close button to the pop up window but, it appears on the main page also.
What could I be doing wrong?? I tried many times, switched the lines around but it wouldn't work. Code:
why this doesn't work
Code:
<?php
session_start();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
[Code]...
In my website i have a javascript to "slide" 3 pictures in my header. You can see that here: [url]....And that's fine! Now, i want to create a new page with more detailed info about the cars. Next to the info i want more pictures. And to present those extra photo's i wanted to use lightbox.Now, when i'm adding the new js just like they said.
With the new js in comment: https://512170.webontwerp.khleuven.be/auto/detail.php.Whitout having to put in comment: https://512170.webontwerp.khleuven.be/auto2/detail.php
What am doing wrong? The script works -- identifies blank fields -- but the second function (change_subject) is ignored.[code]
View 3 Replies View RelatedI have a very simple webpage which plays music from youtube, only top 2000 records from the Netherlands URL...For that i've made a database with music links from youtube, and it works fine. But i want more quality.Therfore I've made a Push button and link with a function within it.if sombody want to say to me if its bad quality music that my database is updated by push the button or link. (part -->php script)[code]
View 1 Replies View RelatedI have a simple link on: [URL] about mid page, "and more Sequim Lavender" that is suppose to open up a popup window. Works just fine in FF, Chrome, and Safari, but not IE. the code:
Code:
<area shape="rect" coords="456,24,649,49" href="javascript:void(0)"onclick="window.open('pop_up/lav_ss.html','Sequim Lavender slide show','height=470,
[Code]....
My Javascript doesn't display an error when the "bid" field is blank but I want it to.Everything else works okay but I'm not a Javascript programmer so I don't know where to begin.
function checkBid(fieldName,minValue,maxValue){
var numberfield = fieldName;
if (chkNumeric(fieldName,minValue,maxValue) == false){
[code]....
I have a problem with a Javascript, which doesn't works in Firefox
You can have a mouse over the 2 first pictures, but after the second
picture has moved over the screen, nothing is happening when you move
the mouse over the slideshow The source code:
Sorry if this isn't exactly the right NG for this, but I thought you guys would know better than anyone else.
I have 2 computers networked. The internet connection is dial-up, and I'm using ezProxy to share the connection. Both computers are Win98,and both have IE6.0.
The main PC works perfectly, but the second PC's browser doesn't recognize Javascript at all! I've gone through every setting imaginable, and haven't found any reference to Javascript that was
incorrect.
Anybody have an ideas?