15,121 Topics
| |
Hi, I can pass an array through jquery ajax. [CODE] var regSubCodeArray = new Array(); var temp = 9; var i; for(i=0;i<temp;i++) { subname = 'sub'+i; subcode = 'sub_code'+i; subcredit = 'sub_credit'+i; regSubCodeArray[i] = document.getElementById(subcode).innerText; } $.ajax({ url: "testArray.php", type: "GET", data: "page="+regSubCodeArray, cache: false, success: function (html) { $('#ttl').html(html); … | |
I want a text field which should have database values....(like dropdown list) from that list i can select text which is in database... Can any one help me out its very urgent....... once see [url]www.justdial.com[/url] under "City" text box i want exactly like that ...i also want to match the … | |
Can any one tell me javascript for pop up text on mouse rollover on image like this site SNIP | |
I want to pass array[x] to a variable so that I can use the variable in .innerHTML. I've researched and not found a reference. Any help appreciated. Big thanks. | |
I am displaying the results by iterating the list in div tag say "results" in my case.For refining of search i am using ajax call. But when i am getting response back from this below snippet [CODE] document.getElementById("results").innerHTML=xmlHttp.responseText;[/CODE] . Its showing me content of JSP in which i am refining … | |
Dear All, I have one combo box where upon change will call ajax function to fill another combo box below. All works fine in IE but when I test it in chrome and firefox I have one minor problem. The problem is here echo "<option value=".$haulierID.">".$row1['haulierName']."</option>";. I notice in chrome … | |
hey people. okay, i am designing a social network. but i got a problem in my signup code. check this is the form code : [CODE] <script src="../../../SpryAssets/SpryValidationTextField.js" type="text/javascript"></script> <link href="../../../SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" /> <script src="../../../SpryAssets/SpryValidationSelect.js" type="text/javascript"></script> <link href="../../../SpryAssets/SpryValidationSelect.css" rel="stylesheet" type="text/css" /> <div id="signup"> <div id="CollapsiblePanel1" class="CollapsiblePanel"> <div class="CollapsiblePanelTab" tabindex="0" … | |
Hi, guys I want to implement the google coder in my web, such that if I give the address of any location he can give me the latitude and longitude of that address, plz any one have any tutorial then plz send it to me. just like these webs [url]http://itouchmap.com/latlong.html[/url] … | |
Hi, right I'll try put this across quickly but basically at the moment I have AJAX posting to a separate PHP page and then getting the response which is echoed on that page which is then used on the original page to display. This works fine and is all good, … | |
How would I go about copying a robots.txt file from a webserver and then displaying that information? | |
[CODE] <script> var xhr = null; function createRequest() { if(window.ActiveXObject) { xhr = new ActiveXObject("Microsoft.XMLHTTP"); } else { xhr = new XMLHttpRequest(); } } function sendRequest(url, param, callback, method) { createRequest(); var httpMethod = (method!='POST' && method!='post') ? 'GET' : 'POST'; var httpParam = (param==null || param=='') ? null : … | |
Hi Frends, I have four fields, employeename, salary , dob, doj, I had given validations for all of these fields, But now I had to find the difference of Dob and Doj and it should be displayed in years, means if the difference is 5 or 10 yrs a popup … | |
Ok so I have a site that I want to automatically close the window when the focus is lost from the page. For example, if the user clicks off the page to something else on there desktop I want the page to close. So far I have managed to do … | |
hi! I would like to know how to use jquery in sliding left to right? Can you give me simple sample there.. thanks in advance. | |
Hello: I am trying to validate an ASP.NET radiobuttonlist using client-side javascript in a "Custom Validator" control. Here is my javascript validator: [CODE] function ValidatePrem(source, args) { var Array1 = document.getElementsByName('<%= rblPremModes.ClientID %>') var i; for (i = 0; i < 4; i++) { if (Array1[i].checked) { if (Array1[i].value == … | |
I am calling this javascript function: var facing = "First"; [CODE] function switchit(list){ if (list != facing){ document.getElementById(facing).style.display="none"; }; var listElementStyle=document.getElementById(list).style; if (listElementStyle.display=="none"){ listElementStyle.display="block"; } else { listElementStyle.display="none"; } facing = list; } </script> [/CODE] inside a nested div so that when a hyperlink is clicked it will show one … | |
The full error message is: missing ) after argument list [Break On This Error] change_content('imagediv', '<img src='images/painting_2.jpg'>'); Maybe I've been staring at this for too long, but I believe the parentheses are in the correct position. This code is contained in an include. Thank you. [code]<?php $paintingBack=$paintingNumber-1; $paintingNext=$paintingNumber+1; if ($paintingBack … | |
Hi, im having trouble doing something that should be simple.. i have a form that inputs some data into a table using php and jquery.. after that input i have to reload the page so that is possible to see the new data on the table. So i added some … | |
Hello: I am trying to validate an ASP.NET radiobuttonlist using client-side javascript in a "Custom Validator" control. Here is my javascript validator: [CODE] function ValidatePrem(source, args) { var Array1 = document.getElementsByName('<%= rblPremModes.ClientID %>') var i; for (i = 0; i < 4; i++) { if (Array1[i].checked) { if (Array1[i].value == … | |
I have a scenario where I show a drop-down-with-few-items in a JSP page, to the user. The length of few options in the drop down is greater than that of the drop down's, hence our requirement is to show the hovered (not selected) option as tooltip for user's convenience. I … | |
[CODE] function function1() { //nereik php validation, nes adminas formos net nepasieks jei js isjungtas $data = array( 'name' => $this->input->post('album_name') ); $query = $this->db->insert('album_name',$data); $id = $this->db->insert_id(); $success = mkdir('./uploads/gallery/'.$id); //albumo folderio vardas bus id $success2 = mkdir('./uploads/gallery/'.$id.'/thumbs'); //mazi paveiksliukai if(!$success || !$success2) echo 'fail'; else echo $id; } … | |
Hi , I have the requirement like this 1) It should be in javascript and html datagrid only 2) In html-datagrid table ...mouseover on cell(coloumn) pop-up should be appear 3) It should be come out from the browser(pop-up) 4) It shoulb be use Javascript only <html> <head> <title>pop-up</title> <style type="text/css"> … | |
Hello guys, Hopefully a nice easy one for you. I currently have a form field that I would like to turn green when the correct entry has been entered and red when an incorrect entry has been returned. I'm very close to a solution (I think!) But I just need … | |
Hi , I have the requirement like this 1) It should be in javascript and html datagrid only 2) In html-datagrid table ...mouseover on cell(coloumn) pop-up should be appear 3) It should be come out from the browser(pop-up) 4) It shoulb be use Javascript only <html> <head> <title>pop-up</title> <style type="text/css"> … | |
hi guys, i am a newbie to javascript. i was working with a form which has two combo box linked to display text. First box contains names of cars, second box contains luxury type options(ac or nonac), the last one is a input box which is only readable and displays … | |
[url]http://s56.photobucket.com/albums/g194/flameingulfedpyro/?action=view¤t=slideshow.jpg[/url] In the picture I have a picture div and a text div. The picture and text are related to one another. I want it that when you click the right or left arrow the pic and text change together. I dont really care how they change, slide, fade, or … | |
Hey guys just a quick question, my AJAX is working in FF and Opera just fine, As in it repeats the function whenever the button is clicked, but in IE the first click works, but then it doesn't repeat... I've been searching around form some fixes, and found quite a … | |
Hello I have a menu and when you hover theres a drop down. I also have a div tag surrounding this "ul" tag that drops down. The div tag has a border on top to make it more appealing. But I'm trying to hide this div tag because the border … | |
[CODE]package Grade; import java.util.Scanner; public class grade { public static void main(String[] args){ System.out.println("Welcome to the Letter Grade Converter"); System.out.println(); Scanner sc = new Scanner(System.in); String choice = "y"; while (choice.equalsIgnoreCase("y")){ System.out.println("Enter numerical grade: "); int grade = sc.nextInt(); char letter = 0; if(grade <= 100 || grade >= 88) … | |
Hi everybody, I have a js(using jQuery lib) file where all events and following actions(functions) are written. For one of such events there is a function that prepends one more similar element from which prepending was called: $("[COLOR="Red"][B]#id1[/B][/COLOR]").click(function(){ $(...).before("<div [B][COLOR="Red"]id='id1'[/COLOR][/B]></div>"); }); so that when I will click to just prepended … |
The End.