Forum: JavaScript / DHTML / AJAX Nov 22nd, 2008 |
| Replies: 2 Views: 1,021 Its difficult to figure out the problem without viewing the code of the while form.
Just a guess:
May be in the your fields have been assigned value after the form reset.
for example
$insert_sql... |
Forum: JavaScript / DHTML / AJAX Nov 22nd, 2008 |
| Replies: 5 Views: 1,938 This would help:
function addArr(){
var arr1 = [1,2,3,4];
var arr2 = [5,6,7,8];
arr3=arr1;//or u can use arr1 itself;
for(i=arr1.length,j=0;j<arr2.length;i++){
arr3[i]=arr2[j];
j++;... |
Forum: JavaScript / DHTML / AJAX Nov 21st, 2008 |
| Replies: 15 Views: 4,718 Sure,
you can do that. Use expressions in your css.
Example:
img{
display:expression((this.height<=300)?'block':'none');
}
Hope this solves your problem. |
Forum: JavaScript / DHTML / AJAX Nov 21st, 2008 |
| Replies: 2 Views: 1,201 "cb is undefined"
Your problem is document.getres.checkbox is not giving you a list of checkboxes.
Instead I suggest you to loop through the rows of of the <Table> where you have placed your... |
Forum: JavaScript / DHTML / AJAX Nov 21st, 2008 |
| Replies: 3 Views: 1,100 You have assigned the value "2" to variable input...
if (input == 1 || input = 2)
you should have only checked it
if (input == 1 || input == 2) |
Forum: JavaScript / DHTML / AJAX Nov 21st, 2008 |
| Replies: 3 Views: 570 Try This:
if(window.document.readyState=='complete'){
// call your image slide show functions ....
}
Regards ... |
Forum: JavaScript / DHTML / AJAX Nov 21st, 2008 |
| Replies: 3 Views: 570 Try this:
you can check whether your page is loaded completely using this:
window.document.readyState
if(window.document.readyState=='Complete') {
//start image preloaders ....
}
... |
Forum: JavaScript / DHTML / AJAX Nov 21st, 2008 |
| Replies: 1 Views: 881 Try this:
document.getElementById('txt').attributes['required'].value;
Regards... |
Forum: JavaScript / DHTML / AJAX Nov 21st, 2008 |
| Replies: 3 Views: 1,263 First thing, please remove keyword this. There is no need to use this.n ....
Rest is fine and I hope you will be able to solve it yourself. Still if you could not develop the function ... please... |
Forum: JavaScript / DHTML / AJAX Nov 11th, 2008 |
| Replies: 1 Views: 2,781 I hope this should solve your problem:
<script language="JavaScript">
function changeCSS(){
frame = window.document.frames[0];
frame.document.getElementById("myDiv").style.background="red";//OR... |
Forum: JavaScript / DHTML / AJAX Nov 11th, 2008 |
| Replies: 2 Views: 2,347 <script language="JavaScript">
function test(){
var listOfChildNodes = document.getElementById('IDofTheDiv').childNodes;
var numberOfChildNodes = listOfChildNodes.length;
var str="";... |
Forum: JavaScript / DHTML / AJAX Nov 10th, 2008 |
| Replies: 3 Views: 3,300 Well, to post Data from one window to another we shall have to take the help of <iframe> (this is what I feel comfortable with).
The solution below may not be exactly what you wanted/ needed ... I... |
Forum: JavaScript / DHTML / AJAX Nov 10th, 2008 |
| Replies: 1 Views: 1,325 var texture=document.getElementById('texture').value;
formdiv.innerHTML = formdiv.innerHTML +'<td align=center>' + texture + '</td>';
Hope this Helps.
Regards |
Forum: JavaScript / DHTML / AJAX Nov 10th, 2008 |
| Replies: 3 Views: 3,300 Just to be clear: Do you want to post your data from the current form to add.php?
if the answer is YES, try this:
-------------------------------------------------------------------------------... |