Forum: JavaScript / DHTML / AJAX Apr 17th, 2009 |
| Replies: 10 Views: 2,169 Hmm.. It has to! Did you use error console to see the error message ? If you can post your complete code, we could see where you are going wrong. |
Forum: JavaScript / DHTML / AJAX Apr 17th, 2009 |
| Replies: 10 Views: 2,169 You forgot to remove with(form) :)
Edit: For testing purpose, you can use error console in mozilla firefox to know where the error is. |
Forum: JavaScript / DHTML / AJAX Apr 17th, 2009 |
| Replies: 10 Views: 2,169 What is with(form) ? Are you calling a function called with which is declared somewhere else ?
Also, agreement.value.checked wouldn't work because, The syntax is not correct It will say... |
Forum: JavaScript / DHTML / AJAX Mar 31st, 2009 |
| Replies: 5 Views: 931 Well, I don't have an example with me. But, Instead of having an xml, you can query the table, then have a select element where you can show all the matching values. Also have an onchange event for... |
Forum: JavaScript / DHTML / AJAX Mar 31st, 2009 |
| Replies: 5 Views: 931 Try it in Firefox, open Error console and see whats going wrong. |
Forum: JavaScript / DHTML / AJAX Mar 31st, 2009 |
| Replies: 5 Views: 931 I tried all the scripts and they work (on both IE and mozilla) ! What error are you getting exactly ? |
Forum: JavaScript / DHTML / AJAX Mar 2nd, 2009 |
| Replies: 5 Views: 655 First of all, this question belongs to Javascript forum. Its a javascript related question. 2nd, Post your code and tell us what is not working. We aren't 24/7 free coding service to provide you with... |
Forum: JavaScript / DHTML / AJAX Feb 26th, 2009 |
| Replies: 11 Views: 1,786 You are absolutely right ! :icon_lol:
Hmm! I didn't know that.. |
Forum: JavaScript / DHTML / AJAX Feb 26th, 2009 |
| Replies: 11 Views: 1,786 I found this example. http://www.quirksmode.org/dom/cms.html
But again, he uses 'TEXTAREA' and not 'textarea' :-/
Using the example given in the website,
<html>
<body>
<head>
<script... |
Forum: JavaScript / DHTML / AJAX Feb 26th, 2009 |
| Replies: 11 Views: 1,786 Hi there! The issue is with innerHTML! Check this link..
http://www.developer-x.com/content/innerhtml/ |
Forum: JavaScript / DHTML / AJAX Feb 25th, 2009 |
| Replies: 5 Views: 450 What if the client has disabled javascript ? |
Forum: JavaScript / DHTML / AJAX Feb 25th, 2009 |
| Replies: 5 Views: 450 You can do this in php itself ! Why do you want to rely on javascript ? |
Forum: JavaScript / DHTML / AJAX Jul 23rd, 2008 |
| Replies: 21 Views: 3,428 umm.. the form doesn't have a submit button..
But anyway, I am sure it works. |
Forum: JavaScript / DHTML / AJAX Jul 23rd, 2008 |
| Replies: 21 Views: 3,428 :@ Its asking for username and password !
P.S. Its working for them now.. ;) |
Forum: JavaScript / DHTML / AJAX Jul 23rd, 2008 |
| Replies: 21 Views: 3,428 Umm.. what are you guys trying ? Tinymce or fckeditor ? |
Forum: JavaScript / DHTML / AJAX Jun 15th, 2008 |
| Replies: 2 Views: 4,363 Why not decide what value to choose after you submit the page ? Check this for example.
<?php
if(isset($_POST['submit1'])) {
print $_REQUEST['firstname'];
}
if(isset($_POST['submit2'])) {... |
Forum: JavaScript / DHTML / AJAX Apr 7th, 2008 |
| Replies: 18 Views: 2,913 |
Forum: JavaScript / DHTML / AJAX Apr 4th, 2008 |
| Replies: 18 Views: 2,913 Should be
document.formName.task.value='del'; |
Forum: JavaScript / DHTML / AJAX Apr 4th, 2008 |
| Replies: 18 Views: 2,913 Nope.. $_POST['formname'] will not hold any value. You can do it this way (again, as DangerDev mentioned), have a hidden variable (task). When you click on 1st button, assign a value to task... |
Forum: JavaScript / DHTML / AJAX Apr 4th, 2008 |
| Replies: 18 Views: 2,913 I dont think you can. But you can do this. Instead of having a submit button for delete button, have a normal button as DangerDev has mentioned. Then onclick call a javascript function and submit the... |
Forum: JavaScript / DHTML / AJAX Apr 3rd, 2008 |
| Replies: 18 Views: 2,913 |
Forum: JavaScript / DHTML / AJAX Apr 3rd, 2008 |
| Replies: 18 Views: 2,913 DangerDev, you can know which button was pressed by giving each button a unique name. In my example, I have called it submit1 and submit2. |
Forum: JavaScript / DHTML / AJAX Apr 3rd, 2008 |
| Replies: 18 Views: 2,913 Since you are already using the submit button in your form, you can't submit that way (I think). |
Forum: JavaScript / DHTML / AJAX Apr 3rd, 2008 |
| Replies: 18 Views: 2,913 You can actually have 2 submit buttons in a form. Eg.
<?php
if($_POST['submit1']) {
echo "Submit1 pressed! Add/update the records";
}
if($_POST['submit2']){
echo "Submit2 was pressed ! Now... |
Forum: JavaScript / DHTML / AJAX Jan 18th, 2008 |
| Replies: 4 Views: 5,359 err.. You have using getElementById("favorite"), But, you have exp as the id for the textbox.
<html>
<head>
<script type="text/javascript">
function explain(value){... |
Forum: JavaScript / DHTML / AJAX Jan 13th, 2008 |
| Replies: 7 Views: 2,060 If you are using firefox, you can use Error console. Error console lists all the errors(javascript & css) encountered in your page. |
Forum: JavaScript / DHTML / AJAX Jan 13th, 2008 |
| Replies: 7 Views: 2,060 Umm.. Change “ ” to " ". Put data.txt in the same folder where you have the ajax script. I don't know much of ajax, but, the following code worked for me without any errors.
<html>
<head>... |