293 Posted Topics

Member Avatar for s_sridhar
Member Avatar for alexgv14

Are u trying to traverse the folder for all the images with javascript? Explain ur query

Member Avatar for alexgv14
0
142
Member Avatar for SADIYA4

Steps: 1. Draw a object at (x,y) position on screen. 2 Hide the object 3. Calculate new (x,y) position 4. Repeat steps 1-3 until u get the final (x,y) position.

Member Avatar for csurfer
0
56
Member Avatar for aries_rupali
Member Avatar for Luckychap
0
69
Member Avatar for Skorpion

In line no 9: for (i=2; i==num; i++) It should be: for (i=2; i<num; i++) AND your logic for prime number is absolutely wrong. Should be like this: [code='c'] #include<stdio.h> #include<conio.h> void main () { int num,i, isPrime=1; clrscr(); printf("\nprint any number:"); scanf("%d",&num); for (i=2; i<num; i++) { if (num%i==0) …

Member Avatar for Skorpion
0
80
Member Avatar for gagan22

You just need javascript to do this job. Ajax is used to send asynchronous request to the server and get back response. As far as DOM manipulation is concerned only javascript is needed. THis code will help you: [code='html'] <html> <head> <title>test</title> <script type="text/javascript"> function showForm() { var radio1 = …

Member Avatar for mschroeder
0
140
Member Avatar for poddarpallavi22
Member Avatar for Luckychap
0
183
Member Avatar for theimben

On your form's onsubmit event call a js function which will initiate the ajax request. [code='html'] . . . <form onsubmit='sendAjaxRequest(this)'> <input type='text' name='textfield1'> . . . </form> . . . [/code] And in js code initiate the ajax request [code='javascript'] function sendAjaxRequest(form) { var param1 = form.textfield1.value; var param2 …

Member Avatar for Luckychap
0
91
Member Avatar for danarashad
Member Avatar for Luckychap
0
122
Member Avatar for mzd12111

I think this is what u was seeking: This code shows to delete row from a table. [code='html'] <html> <head> <title>test</title> <script type="text/javascript"> // This code should be in the success handler of your Ajax call function deleteRow(el) { var tEl = document.getElementById('mytable'); var rEl = el.parentNode.parentNode; alert("deleting row: " …

Member Avatar for Luckychap
0
123
Member Avatar for navin agarwal

You have error in the first line of your code so I decided not to go further. ERROR: extra ')' in if-condition. Next time please use code tags.

Member Avatar for navin agarwal
0
120
Member Avatar for ahspats

In both the code above head of the list is changed, which is wrong! Check this out: [code='c'] liste_t* Insert (liste_t *listptr, int val) { liste_t *tempHead = listptr; liste_t *pre; liste_t *newNode = (struct liste_t *) malloc (sizeof(liste_t)); newNode->val = val; newNode->next = NULL; //if list is empty then …

Member Avatar for Luckychap
0
145
Member Avatar for wwwmadeasy

I love motion on web pages so I decided to code this for you. I hope it will help you further. [code='html'] <html> <head> <title>test</title> <script type="text/javascript"> var divs; var currentDiv = 0; var slideDelay = 2000; function show() { var slider = document.getElementById('slider'); divs = slider.getElementsByTagName('div'); startSliding(); } function …

Member Avatar for Luckychap
0
278
Member Avatar for uxp

For simplicity just want to add that, loops are just loops. The loop statement is used to execute same piece of code number times. Further its fully up to you to decide how to loop the number of times. [code='c'] for(int i = 0; i < 2; i++ ) printf("\nLoop"); …

Member Avatar for uxp
0
141
Member Avatar for Anamika1

[QUOTE=Anamika1;756321]Hello, Is anybody know who is the father of the C language . Please tell me hurry its urgent . I am waiting for your reply. Thanks[/QUOTE] I want to know who is the mother of C-Language HURRY ITS URGENT. then we will ask her. who is your husband. :D …

Member Avatar for galaxyweblinks
0
155
Member Avatar for m24r

[QUOTE=m24r;762133]Thanks, I had not pionted "glblclrtab". This is just an array to store the color values from file.[/QUOTE] You want 'glblclrtab' to be an array, but C compiler have no idea what your intentions are. So allocate memory before storing. As arrays have predefined space in the memory, we do …

Member Avatar for death_oclock
0
168
Member Avatar for IrishUpstart

I have no idea why his algorithm had taken variable 'hold' as double instead of int?

Member Avatar for ajay.krish123
0
125
Member Avatar for rohanvijay

[QUOTE=rohanvijay;756466]please do the following data structure program : [/QUOTE] Really!! We have done our home work, it your time now :D

Member Avatar for ajay.krish123
0
92
Member Avatar for Werdan
Member Avatar for ajithraj
Member Avatar for seniya

Where is your CSS. And where is your onClick event. And where is the handler. And where u r deciding to put the code to display your hidden divs. And last but not the least where are CODE TAGS

Member Avatar for seniya
0
139
Member Avatar for brixton
Member Avatar for OmniX
Member Avatar for Luckychap
0
131
Member Avatar for veledrom
Member Avatar for elitedragoon

I am posting this, absolutely not to find error in your code(coz its really hard to understant your code) but to tell you, how you can improve your coding style so that the error rate becomes less. You have been suggested to use struct in place of passing so many …

Member Avatar for Luckychap
0
147
Member Avatar for lostincpp

[code='c'] //Array to store marks for three scores int scores[3]; getTestScore (scores); average = calcAverage (scores); - - - - - double calcAverage (int s[]) { double a; int t=0; for(int i=0; i<3; i++) { t = t + s[i]; a=t/3; return a; } void getTestScore(int *s) { cout<<"\nEnter the …

Member Avatar for Freaky_Chris
0
1K
Member Avatar for SavyCat

You have put semicolons at the end of each statement in GetXmlHttpObject() function but not in stateChanged() and ShowTimeSettings() functions. Be consistent in your coding style. And please use code tags to put your code.

Member Avatar for brechtjah
0
114
Member Avatar for dharma30

[QUOTE=Ancient Dragon;754367]>>can i read the contents of the table into a structure I don't know -- can you ? >>will i be able to print these contents in desired form Here again, I don't know if you can or not. Only you can tell us that. And why should we …

Member Avatar for low_coder
0
2K
Member Avatar for iwasfirst

[QUOTE=iwasfirst;754590]Hi, I'm just getting into the world of Javascript and is faced with this following problem: How to filter out and hide/remove only those <p> elements that I've given a certain className with unobtrusive javascript. Is there anyone out there that can display an example of how this is done?? …

Member Avatar for Luckychap
0
134
Member Avatar for farshidk
Member Avatar for miko85

[QUOTE=miko85;754754] How do i only disable and grey out certain values in the dropdownlist? [/QUOTE] Think again when you put up these type of questions. Grey out is understandable but what about disabling then. If you do not want some entries, them remove them from the dropdown list. Disabling them …

Member Avatar for Luckychap
0
119
Member Avatar for firebirds98

Man put your code here. And make sure to use code tags :). Then only we can help you. Well by seeing the image. It should be something like this. GetProduct("7 For All Mankind Relaxed Vintage Honululu Denim", 1028, 215); not GetProduct(7 For All Mankind Relaxed Vintage Honululu Denim, 1028, …

Member Avatar for Luckychap
0
88
Member Avatar for sayeo87
Member Avatar for clutchkiller

Best way to learn is to practice. So start coding!! Do not waste 69$. Wait a sec....why 69$ and not 60$ OR 70$. :D

Member Avatar for clutchkiller
0
66
Member Avatar for brechtjah

Use YUI Animation Lib: [url]http://developer.yahoo.com/yui/examples/animation/index.html[/url]

Member Avatar for Luckychap
0
173
Member Avatar for besktrap

You have to write a handlers for onfocus and onblur events for this textbox like this: [code='html'] <form> <input type="text" value="Email" name="Email" style="color:grey;text-align:left;background:white" onfocus='changeTextColor(this, 1)' onblur='changeTextColor(this, 0)'> </form> [/code] And your handlers will look like this: [code='javascript'] function changeTextColor(tBox, c) { if(c==1) { //textbox on focus tBox.style.color = "black"; } …

Member Avatar for essential
0
1K
Member Avatar for OmniX

use HTML frames to do this. [url]http://www.w3schools.com/html/html_frames.asp[/url]

Member Avatar for OmniX
0
91
Member Avatar for krishna168
Member Avatar for queenc

I do not know if there is a simple way. But at this moment here what you can do. Write a event handler for onkeyup for your text area and count for every keypress if count exceeds 50 then append '\n'(new line character) by yourself. thats it. Your js keyhandler …

Member Avatar for queenc
0
88
Member Avatar for lifeworks
Member Avatar for java_girl

there is a simple function to calculate a string length strlen(str) defined in string.h where str is the pointer to string of which you want to calculate the length. [code="C"] #include <stdio.h> #include <stdlib.h> #include <string.h> char* longer( char str1[], char str2[] ); char* str_ptr; int main( void ) { …

Member Avatar for devnar
0
11K
Member Avatar for slimjimmer

In line:20 ie [code='c'] printf("%d",psd.y); [/code] psd is used to access y by dot(.) operator which is wrong because psd is a pointer and to access y you must use ->(arrow operator) ie [code='c'] printf("%d",psd->y); [/code]

Member Avatar for Luckychap
0
100
Member Avatar for Q8iEnG

You do not have to post for these silly mistakes. Here is what is wrong: You have put : [code='javascript'] setTimeout = ( "rotate()", 4*1000 ); [/code] Instead of this: [code='javascript'] setTimeout ( "rotate()", 4*1000 ); [/code] You should have copy/pasted that code :D

Member Avatar for Q8iEnG
0
182
Member Avatar for gharish
Member Avatar for stealthmode

No absolutely not. You have such a huge form with so many text fields. From the user perspective imagine whether it is good to wait for the slow server to response for validation just for not filling a field. That will be very frustrating!!

Member Avatar for Luckychap
0
103
Member Avatar for java_girl

if u want to print the address of first character in the string it is same as you did with other array. For Ex. [code='c'] int intArray[3] = {1,2,4}; char *str = "C for Cat"; //This will print the address of 1 in inArray array printf("The address of intArray[1] is …

Member Avatar for Luckychap
0
234
Member Avatar for Omer.Registry

Donot use innerHTML to hide or show. But use stype.visibility property to hide or show element. Your javascript functions then look like this: [code='javascript'] function hideObj() { document.getElementById('divObj').style.visibility = "hidden"; } function showObj() { document.getElementById('divObj').style.visibility = "visible"; } [/code]

Member Avatar for Luckychap
0
126
Member Avatar for frank754

You have to just set the focus to the first input box after the page is loaded. And that can be done by simple javascript code. Write an event-handler for <body onload="setInputFocus()"> [code='javascript'] function setInputFocus() { var focusEl = getElementById('1_input'); focusEl.focus(); } [/code] And your HTML code will also change …

Member Avatar for frank754
0
142
Member Avatar for tuse

Simply you have to parse the server response manually. For example you get this a client side: responseText = "field1||fiel2||field||......"; Then using javascipt string-functions to separate all the fields and use the your method of innerHTML to populate other text fields.

Member Avatar for tuse
0
176
Member Avatar for hadsuresh

In ur code in second if-block there is extra '}' present. You waste ur time doing such silly mistakes. Copy & Paste not always work!

Member Avatar for Luckychap
0
109

The End.