Forum: JavaScript / DHTML / AJAX Nov 22nd, 2008 |
| Replies: 5 Views: 1,950 Hi,
define a new array with function: arr3=new Array(no_of_element);
then use for loop to populate member of both array in to it as u want.
use arr_var[index] to access individual member of... |
Forum: JavaScript / DHTML / AJAX Apr 3rd, 2008 |
| Replies: 18 Views: 2,940 yes i got it, i just forgot it, any way thanks,,,
then there is no problem at all, you can check at server side the name of button and on the base of this you can have intended functionality..... |
Forum: JavaScript / DHTML / AJAX Apr 3rd, 2008 |
| Replies: 18 Views: 2,940 yes it is correct, but when you are submitting how you are making difference at server side(of which button user has clicked), if you have problem in that see my suggested solution.... |
Forum: JavaScript / DHTML / AJAX Apr 3rd, 2008 |
| Replies: 18 Views: 2,940 Hi,
you cant have two submit button on one form, do one thing:
have two simple button< input type="button" value="delete"......> and have on hidden field in form with name "task".On onclick event... |
Forum: JavaScript / DHTML / AJAX Apr 2nd, 2008 |
| Replies: 4 Views: 1,782 you can store that object in data base. and later you can retrive it.
why actually you want to do that ? |
Forum: JavaScript / DHTML / AJAX Mar 13th, 2008 |
| Replies: 14 Views: 5,196 try to use code what i have posted just above your post,
i think you need to give action on form, remove src from iframe. |
Forum: JavaScript / DHTML / AJAX Mar 13th, 2008 |
| Replies: 14 Views: 5,196 can you post your code here ?
are you trying like following ?
<form name="form1" action="url_here" method="post" target="hidden_form">
<input type="text" />
<input type="submit"... |
Forum: JavaScript / DHTML / AJAX Mar 13th, 2008 |
| Replies: 14 Views: 5,196 as that discussion suggested now no need of using ajax, simple use your previous method just use invisible iframe.
actually i forgot previously that you have to send file not data. so ajax will... |
Forum: JavaScript / DHTML / AJAX Mar 12th, 2008 |
| Replies: 14 Views: 5,196 hi
you try here (http://www.thescripts.com/forum/thread517087.html), may be it will help you to solve your problem. |
Forum: JavaScript / DHTML / AJAX Mar 12th, 2008 |
| Replies: 14 Views: 5,196 hi
here (http://www.w3schools.com/ajax/default.asp) you can find help ! |
Forum: JavaScript / DHTML / AJAX Mar 12th, 2008 |
| Replies: 14 Views: 5,196 you can get rid of this problem using ajax.
if you are using ExtJS in your application, use it for ajax, or you can write your own function to handle ajax.
basically in ajax you will send and... |
Forum: JavaScript / DHTML / AJAX Mar 12th, 2008 |
| Replies: 1 Views: 821 Hi,
what's your question ? if you want to put code snippets for others, to help, please go here (http://www.daniweb.com/code/forum31.html) |
Forum: JavaScript / DHTML / AJAX Mar 7th, 2008 |
| Replies: 2 Views: 3,131 Hi
use onmousemove event on textarea element. There you get event object and its clientX and clientY property will give you the x and y co-ordinate of cursor current position. |
Forum: JavaScript / DHTML / AJAX Mar 6th, 2008 |
| Replies: 4 Views: 1,314 hi
try this loop:
for(var ctr=0;ctr<form.elements.length;ctr++)
{
x=form.elements[ctr];
output += x.name + "=" + x.value + "&"+"id="+x.id;
} |
Forum: JavaScript / DHTML / AJAX Mar 5th, 2008 |
| Replies: 10 Views: 1,821 ooh
that is kind of library MS is providing, but without that also you can work with ajax, using pure java script. Actually that library also internally use javaScript for ajax.
I would suggest... |
Forum: JavaScript / DHTML / AJAX Mar 5th, 2008 |
| Replies: 4 Views: 1,314 can you post your client side code ? |
Forum: JavaScript / DHTML / AJAX Mar 5th, 2008 |
| Replies: 10 Views: 1,821 hi
ajax is totaly client side javaScript technology, so what ever server side scripting language you are using it should work.
One more thing it doesnot need to install any thing as it is pure... |
Forum: JavaScript / DHTML / AJAX Feb 27th, 2008 |
| Replies: 10 Views: 1,821 this one is nice. try it (http://www.w3schools.com/ajax/default.asp)
or this (http://www.xul.fr/en-xml-ajax.html)
or the best (www.google.com) |
Forum: JavaScript / DHTML / AJAX Feb 26th, 2008 |
| Replies: 10 Views: 1,821 first read this (http://en.wikipedia.org/wiki/Ajax_%28programming%29), this will give some information about ajax. |
Forum: JavaScript / DHTML / AJAX Feb 25th, 2008 |
| Replies: 7 Views: 5,192 ok
getElementById works fine in IE and FF. just check your js code.
see one example:
<html>
<head>
<script type='text/javascript'>
function clickMe()
{... |
Forum: JavaScript / DHTML / AJAX Feb 25th, 2008 |
| Replies: 7 Views: 5,192 dont nest forms
what actually you want to do ? |
Forum: JavaScript / DHTML / AJAX Feb 25th, 2008 |
| Replies: 1 Views: 1,699 what does it mean ?
document.write("<H2>The information on the computers you requested: </H2>");
use dom to add this in to document... |
Forum: JavaScript / DHTML / AJAX Feb 20th, 2008 |
| Replies: 3 Views: 1,263 use onkeydown event in text box,
in this event write a function which will take value of textbox check the length of string and then print the no. in the box...... |
Forum: JavaScript / DHTML / AJAX Feb 20th, 2008 |
| Replies: 11 Views: 4,686 hi you can not do directly like this, the way you have tried is wrong.
getElementById() takes only id.
use elem.getElementsByTagName('tag name');
this will return array of element('tag name')... |
Forum: JavaScript / DHTML / AJAX Feb 14th, 2008 |
| Replies: 11 Views: 4,113 there might be problem in other lines u can check that by putting alert boxes between codes. if all are working then its fine.
u'r using () that could be problem use[], or better use... |
Forum: JavaScript / DHTML / AJAX Feb 14th, 2008 |
| Replies: 11 Views: 4,113 hi
try this simple code it is working fine in both IE & FF:
<html>
<head>
<title> simple count down</title>
<script language='javascript'>
var i=0;
var tid=0; |
Forum: JavaScript / DHTML / AJAX Feb 13th, 2008 |
| Replies: 3 Views: 1,518 make some changes...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
... |
Forum: JavaScript / DHTML / AJAX Feb 12th, 2008 |
| Replies: 1 Views: 1,523 How will u come to know that some thing has happened? through some event right...
on that event call a function there u cancel the previous timeout using
clearTimeout() |
Forum: JavaScript / DHTML / AJAX Feb 6th, 2008 |
| Replies: 4 Views: 5,118 hi
dont use innerHTML property with text box. its property of tag element like div.
use
document.getElementById('txtSMS').value="hiiiii";
or see an example;
<%@ Page Language="C#"... |
Forum: JavaScript / DHTML / AJAX Feb 5th, 2008 |
| Replies: 4 Views: 5,118 you inspect the code at client side, there u check the property of text box and then try to put id over text box, using this id access the textbox and use it for ajax,
probably it should work. |
Forum: JavaScript / DHTML / AJAX Feb 2nd, 2008 |
| Replies: 3 Views: 2,184 no it didnot return any dom object taking id. if u want to do that u should use getElementById('idname') method of document object. |
Forum: JavaScript / DHTML / AJAX Jan 30th, 2008 |
| Replies: 3 Views: 2,635 Hi
use document.location.href property to achieve this.
suppose u want to navigate to page example.html then u can do like this
document.location.href="example.html"; |
Forum: JavaScript / DHTML / AJAX Jan 29th, 2008 |
| Replies: 5 Views: 2,628 |
Forum: JavaScript / DHTML / AJAX Jan 28th, 2008 |
| Replies: 5 Views: 2,628 it will not work on onload event as dom tree has not been yet formed.
try this:
---------
suppose function name is myFun(); then call it inside script block just after body tag , like this
... |
Forum: JavaScript / DHTML / AJAX Jan 22nd, 2008 |
| Replies: 9 Views: 1,877 hi u dont want loop then try this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type"... |
Forum: JavaScript / DHTML / AJAX Jan 21st, 2008 |
| Replies: 9 Views: 1,877 Hi,
I hope following is solution for u'r trouble,
( i have modify ~s.o.s~ code)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>... |