Forum: JavaScript / DHTML / AJAX Nov 16th, 2009 |
| Replies: 4 Views: 571 |
Forum: JavaScript / DHTML / AJAX Nov 16th, 2009 |
| Replies: 6 Views: 532 I hope this is what you are looking for.
http://www.i-marco.nl/weblog/archive/2007/06/14/variable_variables_in_javascri |
Forum: JavaScript / DHTML / AJAX Nov 16th, 2009 |
| Replies: 4 Views: 571 Have onsubmit event for form. Here is ane example.
<?php
if(isset($_REQUEST['submit'])) {
print "<pre>";
print_r($_REQUEST);
print "</pre>";
}
?>
<html> |
Forum: JavaScript / DHTML / AJAX Apr 17th, 2009 |
| Replies: 10 Views: 2,263 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,263 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,263 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: 946 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: 946 Try it in Firefox, open Error console and see whats going wrong. |
Forum: JavaScript / DHTML / AJAX Mar 31st, 2009 |
| Replies: 1 Views: 573 I am not aware of any function in javascript which is equivalent to php's exit function ! But I guess you are looking for <noscript> (http://www.w3schools.com/TAGS/tag_noscript.asp). |
Forum: JavaScript / DHTML / AJAX Mar 31st, 2009 |
| Replies: 5 Views: 946 I tried all the scripts and they work (on both IE and mozilla) ! What error are you getting exactly ? |
Forum: JavaScript / DHTML / AJAX Mar 16th, 2009 |
| Replies: 11 Views: 2,229 Why don't you share that reply with the members of this awesome website ? Let serkan sendur and ShawnCplus also know what you were looking for. |
Forum: JavaScript / DHTML / AJAX Mar 13th, 2009 |
| Replies: 3 Views: 3,123 The simplest answer to your question is, No. Its not possible to disable 'back' button of the browser.
As far your question is concerned, When the user logs in, you can set a session variable, say,... |
Forum: JavaScript / DHTML / AJAX Mar 11th, 2009 |
| Replies: 4 Views: 1,351 I tried your code and it works perfectly ! The only thing I changed was,
<script language="Javascript" type="text/javascript"> which earlier was,
<script language="Javascript"... |
Forum: JavaScript / DHTML / AJAX Mar 10th, 2009 |
| Replies: 17 Views: 1,641 I can't. Your code doesn't seem to work on FF as well as IE on my computer. :-/ What do you mean by its working btw ?What is the script intended to do ? |
Forum: JavaScript / DHTML / AJAX Mar 10th, 2009 |
| Replies: 17 Views: 1,641 :S I don't think you can enable/disable a "div". |
Forum: JavaScript / DHTML / AJAX Mar 10th, 2009 |
| Replies: 17 Views: 1,641 I figured out that much though! And also I managed to make some quick changes to his existing script. It works on both IE and firefox! @OP, Is this what you were looking for ?
<html>
<head>... |
Forum: JavaScript / DHTML / AJAX Mar 10th, 2009 |
| Replies: 1 Views: 712 <html>
<head>
<script type="text/javascript">
function validateCB(loctext)
{
if(document.rec.loc.value=='')
{
loctext.innerHTML = "please select one option";
return false;
} |
Forum: JavaScript / DHTML / AJAX Mar 10th, 2009 |
| Replies: 17 Views: 1,641 @OP, Is it even possible to disable/enable a div tag ? |
Forum: JavaScript / DHTML / AJAX Mar 10th, 2009 |
| Replies: 17 Views: 1,641 mschroeder, That is a bug with [code] tags. I have even posted a thread for the same (<b></b>) here (http://www.daniweb.com/forums/thread178010.html). |
Forum: JavaScript / DHTML / AJAX Mar 10th, 2009 |
| Replies: 2 Views: 848 Use length (http://www.tizag.com/javascriptT/javascript-string-length.php).
if(form.username.length < 6) {
alert('Username less than 6 characters..');
}
Btw, I don't understand your code.... |
Forum: JavaScript / DHTML / AJAX Mar 2nd, 2009 |
| Replies: 5 Views: 695 |
Forum: JavaScript / DHTML / AJAX Mar 2nd, 2009 |
| Replies: 5 Views: 695 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 Mar 2nd, 2009 |
| Replies: 2 Views: 520 Btw, Java is totally different from Javascript. :) |
Forum: JavaScript / DHTML / AJAX Feb 26th, 2009 |
| Replies: 11 Views: 1,863 You are absolutely right ! :icon_lol:
Hmm! I didn't know that.. |
Forum: JavaScript / DHTML / AJAX Feb 26th, 2009 |
| Replies: 11 Views: 1,863 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,863 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: 463 |
Forum: JavaScript / DHTML / AJAX Feb 25th, 2009 |
| Replies: 5 Views: 463 What if the client has disabled javascript ? |
Forum: JavaScript / DHTML / AJAX Feb 25th, 2009 |
| Replies: 5 Views: 463 You can do this in php itself ! Why do you want to rely on javascript ? |
Forum: JavaScript / DHTML / AJAX Jul 23rd, 2008 |
| Replies: 17 Views: 2,107 I tested with IE6 and FF3 and I don't see any difference in the way they work ! I don't have IE5, so I can't really tell where its going wrong(?!?) |
Forum: JavaScript / DHTML / AJAX Jul 23rd, 2008 |
| Replies: 17 Views: 2,107 Are you sure about that ? I don't think so. It works fine for me.
Try "\n".
<html>
<head>
<script type="text/javascript">
var firstnumber = prompt("Enter first number and Click OK", "0");... |
Forum: JavaScript / DHTML / AJAX Jul 23rd, 2008 |
| Replies: 21 Views: 3,477 Yep :) Almost like Daniweb's "Go Advanced" and "preview" buttons ! |
Forum: JavaScript / DHTML / AJAX Jul 23rd, 2008 |
| Replies: 21 Views: 3,477 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,477 :@ Its asking for username and password !
P.S. Its working for them now.. ;) |
Forum: JavaScript / DHTML / AJAX Jul 23rd, 2008 |
| Replies: 15 Views: 2,209 I don't think so. uncomment print_r($_POST) and see if it shows any data on page load. |
Forum: JavaScript / DHTML / AJAX Jul 23rd, 2008 |
| Replies: 17 Views: 2,107 Here are some more changes.
1. script type="text/javascript". You have a typo.
2. its parseInt and not parselnt.
3. Doesn't make any sense to me. You don't need it.
And ofcourse, don't forget... |
Forum: JavaScript / DHTML / AJAX Jul 23rd, 2008 |
| Replies: 15 Views: 2,209 Yes you can. Just keep it within the form tag. |
Forum: JavaScript / DHTML / AJAX Jul 23rd, 2008 |
| Replies: 15 Views: 2,209 Okay ! I have attached a working copy of the editor. Check it and tell us if you still have problems! |
Forum: JavaScript / DHTML / AJAX Jul 23rd, 2008 |
| Replies: 21 Views: 3,477 Umm.. what are you guys trying ? Tinymce or fckeditor ? |
Forum: JavaScript / DHTML / AJAX Jul 23rd, 2008 |
| Replies: 15 Views: 2,209 In the above example, test.php , we have this line.
Check if tiny_mce.js exists in the above path. If the file (tiny_mce.js) doesn't exist in the path specified, specify the right path. ... |