15,127 Topics

Member Avatar for
Member Avatar for xuexue

hi guys, i just want to ask, how could i get the value of the textbox using the onchange() function. i know that using the form action and method get is one possible solution but what i want is that the value of the textbox in page1 should be passed …

Member Avatar for Manoj_16
0
15K
Member Avatar for ashok_11

<html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <script type="text/javascript" src="http://code.jquery.com/jquery-1.8.2.min.js"></script> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script> <!-- directorySlider Javascript file --> <script src="js/directorySlider.js"></script> <script src="js/directorySlider.min.js"></script> <script> $('#slider-main').directorySlider({ animation: 'fade', filebase: 'img_', directory: 'images/', extension: 'jpg', numslides: 2, height: 200, width: 483, timeout: 100 }) </script> </head> <body> <div class="directorySlider" id="slider-main"></div> </body> </html> <meta http-equiv="Content-Type" …

Member Avatar for AleMonteiro
0
749
Member Avatar for AleMonteiro

Hi all. This is somewhat the equivalent of .NET String.Format(String, Args); Usages: 'Hello {0}'.format('DaniWeb!'); String.format('{0} {1} {2}', 'Hi', 'Again', 'Good Fella'); String.format('Hello {prefix} {name}', { prefix: 'Sr.', name: 'HeyHeyHey'}); I know there's lots of String.formats out there(some simpler and some more complex), but this is the one i've been using …

2
397
Member Avatar for nevek

Hi When I try this if in IE 9 with my variabels like: maxGrootte = 12 and minGrooote = 5 it enters into the if condition if(maxGrootte < minGrootte){ bericht += "\t -Het minimum aantal deelnemer kan nooit groter zijn dan \n"; bericht +="\t het maximum aantal deelnemers\n"; status= false; …

Member Avatar for DaveAmour
0
129
Member Avatar for chichi9

--Create an array to contain the path to the image’s source. Don’t hardcode the path into the array. Use a loop to retrieve the name of the file from the source of the image (ie. <img src="img/house.jpg"/>.-- this is my jQuery $(function(){ var slideShowContainer = $('.slideShow'), slideShowItem = '.slides li', …

Member Avatar for DaveAmour
0
309
Member Avatar for rouse

I have a jQuery post problem. I am sending information from a form with a jQuery click function. [code] $("#donateButton").click(function (){ $.post("creditCardAuthorize.php", { amount: $('#amount').val(), description: $('#donation').val() }); $('#rightContent').html(ajax_load).load('content/creditCardAuthorize.php'); }); [/code] The problem is that on some browser it goes to the correct page, but on others it goes to …

Member Avatar for rouse
0
189
Member Avatar for rouse

I am trying to add a secondary level to Chris Coyer Magic Line menu. I have made some progress but it is not complete. Right now I am stuck on 3 spots to make it complete. The placement of the secondary menu, the overlay of the secondary menu and the …

Member Avatar for rouse
0
485
Member Avatar for Danny_501

Hi, I'm trying to make a label visible by clicking on a button. The following code will make the label visible, but will disappear in less than a second. I'm assuming its because the form is getting submitted in the java script, so the page is getting refreshed? Is there …

0
217
Member Avatar for edbr

i am trying to get to modify this script . i have a form that returns the longditude and latitude from google map api. I am trying to insert that data into a new form. With a lot of uyahoogling i made some progress but canyt nail this down or …

Member Avatar for DaveAmour
0
148
Member Avatar for Ravenous Wolf

i would like to know if php can replace javascript as a client side script. one can use javascript to do all kinds of things like computing values in textboxes and check them for errors and so on. is it possible to use php in its stead? lets say i …

Member Avatar for abexer
0
421
Member Avatar for sri.

i got a below eror on my windows-8 apps when i run this code //code <script src=" /lib/jquery-1.7.2.js"></script> <script src="/js/modcoder_excolor/jquery.modcoder.excolor.js"></script> $(document).ready(function () { $('#my_input').modcoder_excolor(); }); //eror SCRIPT28: Unhandled exception at line 5, column 1174 in ms-appx://fa516517-befe-47aa-89d8-5790abfd39df/lib/script.js 0x800c001c - JavaScript runtime error: Unable to add dynamic content. A script attempted to …

Member Avatar for Kevin_14
0
325
Member Avatar for robertkt6

My code is <script type="text/javascript" language="javascript"> function displayHideBox(boxNumber) { if(document.getElementById("LightBox"+boxNumber).style.display=="none") { document.getElementById("LightBox"+boxNumber).style.display="block"; document.getElementById("grayBG").style.display="block"; document.getElementById('t').value; } else { document.getElementById("LightBox"+boxNumber).style.display="none"; document.getElementById("grayBG").style.display="none"; } } </script> <style> .grayBox{ position: fixed; top: 0%; left: 0%; width: 100%; height: 100%; background-color: black; z-index:1001; -moz-opacity: 0.8; opacity:.80; filter: alpha(opacity=80); } .box_content { position: fixed; /*top: 55%; left: …

Member Avatar for robertkt6
0
223
Member Avatar for berserk

Im sure this question has been asked before but i cannot seem to get what i need working right for me. i need this ajax to process my php form, i got that for, at least i think. I wrote some ajax to do this and it WILL at least …

Member Avatar for berserk
0
384
Member Avatar for mbarandao

I need a secondary review of the following script to help identify an issue of inconsistency with a function. The code allows me to perform a live search on a specified content. If a match is fount, it allows for me to click on a link and toggle() the content …

Member Avatar for mbarandao
0
384
Member Avatar for amrak

Hi all, I am trying to create a multiple drop down list in my codeigniter project with the following hierarchy Dzongkhag(District)->Geog(Town) ->village. I am unable to get any display in the town and village drop down list. The following are the snippets from my project. //controllers/form.php $data['dzongkhags'] = array( 'Bumtang' …

Member Avatar for amrak
0
1K
Member Avatar for JorgeM

When users interact with your web page and processes, it is important to provide them with continuous feedback. Without the feedback, a user is left wondering if you page is actually processing work, frozen, or just not working. This is especially true when incorporating Ajax requests that take more than …

2
1K
Member Avatar for sandeep.tete

I have a javascript code showing current time, which i want to store in php variable. The store value in php will then be used in sending through form to an email id. I just want to store the value in php. document.getElementById('time') Any Help/ideas appreciated. <script type="text/javascript"> <!-- function …

Member Avatar for JorgeM
0
6K
Member Avatar for VenusCrystal

Hi Guys, Does anyone know if we can have template within another template using mustache js ? If yes, can you please provide details how to do it? Or any other alternative if it cannot be done? I have a block of html code which I want to make it …

Member Avatar for pritaeas
0
179
Member Avatar for Linh_1

can someone show me how to do this please? I am new to programming languge? here is the requirement? Thanks. Create a database table with 10 records with the following fields: Lastname, FirstName, Phone Number, Street Address, City, State, Zipcode. The table name is: “User Info”. Please create the table …

Member Avatar for Aslam Mansoor
0
341
Member Avatar for daz_omega

Hi, I have an unusual problem, I am developing within a wordpress environment and using a plugin. To futureproof the plugin I do not want to edit the code that is generated to include HTML tags, because when the plugin is updated it will overwrite my change. I am looking …

Member Avatar for gentlemedia
0
397
Member Avatar for Darth Vader

Hello, I am trying to restrict to maximum type 60 words in a textbox. I have tried to put a code that check if we have more than 60 words. The code restricts to 60 words but when I loop the textboxes words and put back the string (up to …

Member Avatar for DaveAmour
0
242
Member Avatar for ramsiva

I am struggling to remove white spaces, any body help me var dt1="11 : 30 : am"; I want the result var dt1="11:30:am";

Member Avatar for Troy III
0
128
Member Avatar for ajayreddy
Member Avatar for Kent55

I am making a game where a user has to move a character around a grid and collect passengers. I have managed to construct this grid using some CSS and jQuery however I now need to add a player to the grid and have them move one square at at …

Member Avatar for DaveAmour
0
350
Member Avatar for ramsiva

my index page <script type="text/javascript"> $(document).ready(function(){ $("#first_name").blur(function() { var first_name = $('#first_name').val(); var fathermobile = $('#fathermobile').val(); if(first_name=="") { $("#disp").html(""); } else { $.ajax({ type: "POST", url: "detail.php", data: 'first_name='+ first_name +'fathermobile='+fathermobile, success: function(html){ $("#disp").html(html); } }); return false; } }); }); and my detail.php <?php include("include/connect.php"); if(isset($_POST['first_name']) && isset($_POST['fathermobile']) ) …

Member Avatar for ramsiva
0
246
Member Avatar for Vishnu_4

This is my time format:- start_date = 20-01-2015 1:00 AM; end_date = 25-03-2015 2:50 PM; All these date fields are in a drop down. How can i calculate the number of days in between these dates using javscript? Can anyone give me some code reference for this? i need to …

Member Avatar for reygcalantaol
0
143
Member Avatar for sasikrishnasamy

Hi every one, I have a text field called control. This field should allow the following kind of values. 1) 1.2.3;4 : a) If I give some other value I should show error 2) 1.2.1_a.te.st_;6 : b) Here when I enter '_' then its mandatory to enter some char or …

Member Avatar for stbuchok
0
190
Member Avatar for SoferSurfa

Hello everyone, I'm trying to select same "id" for more than one input. My code works with 1 input, but when I add 2 textareas or more my code stops working... Here's my code: *Javascript* *<script> function validateComment() { var value = $("[id=commentbox]").val(); var word = value.toLowerCase(); // make sure …

Member Avatar for Troy III
0
2K
Member Avatar for gagan22

hi all, I want to use multiple select drop down box. I am using client, project and activity. These all values are coming from database. I want when i select one client from first drop down box .Then second drop down box will display only that project which come under …

Member Avatar for gumbiliki
0
253
Member Avatar for CaffeineCoder

I'm trying to add additional security/validation to an online form that has AJAX backend. When I try to add a filter to remove spaces (such as trying trim or replace), the functionality breaks; no error, just no action in general. What's the best way to acheive this without breaking the …

Member Avatar for CaffeineCoder
0
287

The End.