Forum: JavaScript / DHTML / AJAX 18 Days Ago |
| Replies: 7 Views: 916 Perfect. Thanks for that d5e5. Works exactly the way I want now. |
Forum: JavaScript / DHTML / AJAX 19 Days Ago |
| Replies: 7 Views: 916 Strange, try using one word in your test with an illegal character in the middle of the word. That's what I've been testing and it only detects the illegal character at the start or end of the word |
Forum: JavaScript / DHTML / AJAX 23 Days Ago |
| Replies: 7 Views: 916 Thanks for that but there seems to be one problem...the 'illegal' characters are only detected if they are the first or last letter. If it's anywhere between valid characters it goes undetected. Is... |
Forum: JavaScript / DHTML / AJAX 25 Days Ago |
| Replies: 7 Views: 916 Hi all
I've been trying to find a regular expression that checks if input contains any of the following characters only:
`~!@#$%^&*()-=+\|/?.>,<;:'"[{]}
I want to allow users to input any... |
Forum: JavaScript / DHTML / AJAX Mar 23rd, 2009 |
| Replies: 2 Views: 1,208 Hi there
I have a set of radio buttons each with an onclick event that has a numeric value. When the button is clicked an input box called "Total" is updated with the new value. The problem I'm... |
Forum: JavaScript / DHTML / AJAX Feb 27th, 2009 |
| Replies: 1 Views: 661 I managed to solve my own problem although it isn't the most elegant method. Code is below:
function calc(sec,val,item)
{
if(!item) {
var item = null;
}
switch(sec) |
Forum: JavaScript / DHTML / AJAX Feb 27th, 2009 |
| Replies: 1 Views: 661 Hi there
Having trouble calculating the final cost of choices made by a user. I have 4 radio buttons and 2 checkboxes. The first three radio buttons are, all intensive purposes, chocolates with... |
Forum: JavaScript / DHTML / AJAX Aug 28th, 2008 |
| Replies: 4 Views: 2,561 I managed to solve my problem!
I simply changed "function DBinfo()" to an if statement as follows:
if($_FILES['uploadFile']['tmp_name']) { //uploadFile being the name of my file input in my... |
Forum: JavaScript / DHTML / AJAX Aug 28th, 2008 |
| Replies: 4 Views: 2,561 There was one line I accidently deleted in the code above which was the progress bar.
<span class="progressbar" id="uploadprogressbar">0%</span>
This line can be anywhere in between the body... |
Forum: JavaScript / DHTML / AJAX Aug 28th, 2008 |
| Replies: 4 Views: 2,561 This is the page I'm working with. I've taken out all the unnecessary code.
<?php
header("Cache-Control: no-cache, must-revalidate");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
... |
Forum: JavaScript / DHTML / AJAX Aug 27th, 2008 |
| Replies: 4 Views: 2,561 Hi there
I have a page that has php code at the top. Ajax before the body tag and a form.
I need to be able to call a php function (the one at the top of my page) that adds info from the form... |
Forum: JavaScript / DHTML / AJAX Aug 26th, 2008 |
| Replies: 0 Views: 425 I initially created a post for my problem here http://www.daniweb.com/forums/post678373.html#post678373
I received a response saying my answer lay with ajax. Please feel free to make suggestions... |
Forum: JavaScript / DHTML / AJAX Aug 15th, 2008 |
| Replies: 2 Views: 624 |
Forum: JavaScript / DHTML / AJAX Aug 15th, 2008 |
| Replies: 2 Views: 624 Hi there
I've never dealt with Ajax and I'm having a rather frustrating time with an upload progress bar I found on the net that's supposed to be really good. That's beside the point. I just... |
Forum: JavaScript / DHTML / AJAX Apr 7th, 2008 |
| Replies: 18 Views: 2,900 Thanks nav33n. Got it working. ;)
Suomedia, ~s.o.s~...Thanks for your comments. I realize javascript could be switched off on some machines and would never use this kind of functionality if it was... |
Forum: JavaScript / DHTML / AJAX Apr 4th, 2008 |
| Replies: 18 Views: 2,900 Still having problems executing the php code. this is what I have so far:
Javascript for setting the task value to del and then submitting the form
function confDelete() {
var answer =... |
Forum: JavaScript / DHTML / AJAX Apr 4th, 2008 |
| Replies: 18 Views: 2,900 Thanks for that nav33n. Slowly getting somewhere, the form is submitting but it's not actually executing the php code. Is my php code below correct?:
if (isset($_POST['FormName'])) { |
Forum: JavaScript / DHTML / AJAX Apr 4th, 2008 |
| Replies: 18 Views: 2,900 so is there a way i can call the delete submit button with javascript?
eg. document.formname.submitButtonName.submit(); |
Forum: JavaScript / DHTML / AJAX Apr 3rd, 2008 |
| Replies: 18 Views: 2,900 DangerDev, My problem is that I don't know javascript very well and haven't been able to find any solutions. Is the section of code for submitting the form correct? document.formname.submit();
... |
Forum: JavaScript / DHTML / AJAX Apr 3rd, 2008 |
| Replies: 18 Views: 2,900 Hi there
I have a form that I'm trying to submit but it just doesn't want to play nice.
The form i have has 2 submit buttons. One processes php code that updates info in a DB and the other... |
Forum: JavaScript / DHTML / AJAX Apr 1st, 2008 |
| Replies: 2 Views: 5,765 I initially thought I had solved my problem but I have proven myself otherwise.
The code below doesn't seem to eliminate non-numeric characters. I can still enter !#$%&* into the input field. The... |
Forum: JavaScript / DHTML / AJAX Oct 29th, 2007 |
| Replies: 2 Views: 5,765 I managed to solve my problem by changing my script to the following:
function checkTel (strng) {
var error = "";
var stripped = strng.replace(/[\(\)\.\-\ ]/g, "");
var illegalChars =... |
Forum: JavaScript / DHTML / AJAX Oct 29th, 2007 |
| Replies: 2 Views: 5,765 ^
|
|
|
javascript noob
Hi there
I have the following script that strips out acceptable non-numeric characters that you would find in a telephone number and then checks to see if it is... |