293 Posted Topics
Re: Are u trying to traverse the folder for all the images with javascript? Explain ur query | |
Re: 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. | |
Re: Are u talking about 'Interrupt Vector Routine' IVR. Clarify your problem!! | |
Re: 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) … | |
Re: 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 = … | |
Re: The only issue i saw here is that, Mr. poddarpallavi22 is not giving us the log traces. | |
Re: 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 … | |
Re: You save your time by typing less which eventually waste our time. | |
Re: 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: " … | |
Re: 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. | |
Re: 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 … | |
Re: 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 … | |
Re: 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"); … | |
Re: [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 … | |
Re: [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 … | |
Re: I have no idea why his algorithm had taken variable 'hold' as double instead of int? | |
Re: [QUOTE=rohanvijay;756466]please do the following data structure program : [/QUOTE] Really!! We have done our home work, it your time now :D | |
Re: Try using : [code="cpp"] cout<<"\b"; [/code] after user presses enter. | |
Re: 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 | |
Re: You cannot declare array with a variable size. | |
Re: Just giving giving diagrammatic example will not help. Put some code. | |
Re: 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 … | |
Re: [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 … | |
Re: 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. | |
Re: [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 … | |
Re: [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?? … | |
Re: use onclick="doSomething();" for icon images. | |
Re: [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 … | |
Re: 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, … | |
Re: there is no Ajax usage in this example. | |
Re: 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 | |
Re: Use YUI Animation Lib: [url]http://developer.yahoo.com/yui/examples/animation/index.html[/url] | |
Re: 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"; } … | |
Re: use HTML frames to do this. [url]http://www.w3schools.com/html/html_frames.asp[/url] | |
Re: Code please. | |
Re: 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 … | |
Re: 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 ) { … | |
Re: 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] | |
Re: 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 | |
Re: Show us what you tried so far. | |
Re: 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!! | |
Re: 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 … | |
Re: 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] | |
Re: 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 … | |
Re: 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. | |
Re: In ur code in second if-block there is extra '}' present. You waste ur time doing such silly mistakes. Copy & Paste not always work! |
The End.