17,115 Topics

Member Avatar for
Member Avatar for joshua_8

$("#form1").submit(function(e){ e.preventDefault(); }); $("#submit").click(function(e){ dataString = $("#form1").serialize(); var new = $("input#new").val(); dataString = "new=" + new; $.ajax({ type: "POST", url: "Servlet", data: dataString, dataType: "json", success: function( data, textStatus, jqXHR) { //our country code was correct so we have some information to display if(data.success){ $("#ajaxResponse").html(""); $("#ajaxResponse").append("<b>Country Code:</b> " + data.countryInfo.code …

Member Avatar for wherrelz
0
280
Member Avatar for nadiam

Hi. so i have a div/form like this: ![957d3e17b3579941c6bf92e594745d43](/attachments/large/4/957d3e17b3579941c6bf92e594745d43.jpg "957d3e17b3579941c6bf92e594745d43") depending on the drop down value chosen that number of forms will appear like if value 2 chosen then 2 forms will appear if 4 then 4. the code is this: $("select[name=children]").on("change", function(){ var num_forms = $(this).val(); var form = …

Member Avatar for mangel.murti
0
272
Member Avatar for liphoso

Please assist, I am trying to get get one page out of three to load a google map once its loaded. the code i have is below. <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="refresh" content="600"/> <title>Pollutions App</title> <meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> <style type="text/css"> html { height: 100% } …

0
100
Member Avatar for dinkar_1

I have a multiselect dropdown which has 8 colors in a hash %all_colors: my %all_colors = ( 1 => 'Red', 2 => 'Yellow', 3 => 'Orange', 4 => 'Blue', 5 => 'Black', 6 => 'Brown', 7 => 'Green', 8 => 'White', ); I have put it in a dropdown like …

0
115
Member Avatar for arafath077

How to validate Jquery UI auto complete filed. Im using [bootstrapvalidator](http://bootstrapvalidator.com/) to validate filed.I tried with this code its not working. $('#f_flying_from') .change(function (e) { $('#flights-tab-form').bootstrapValidator('revalidateField', 'f_flying_from'); });

Member Avatar for arafath077
0
144
Member Avatar for phfilly

Hi guys, Was wondering if you could help me please. So I have a list of menu elements from which I can drag elements into a div tag. This all works fine. But I'm struggling to replace the elements with each other. So say for instance I already have an …

Member Avatar for phfilly
0
127
Member Avatar for efe.ozyer

$scope.works = [ { wproperties:'<span>text #1</span><span>text #2</span><span>text #2</span><span>text #3</span>' } ] <span ng-bind-html="work.wproperties"></span> span is printing as null, who can help me? controllers and ng-app working so ng-bind-html not working..

Member Avatar for hericles
0
129
Member Avatar for kindo

The ajaxForm function is not working well. It returns an error. Here is my code: Html: <form class="t1-form" action="ajax/upload.php" method="post" accept-charset="UTF-8" id="form" enctype="multipart/form-data"> <textarea class="txtbox" placeholder="" role="textbox" title="" name="post"></textarea> <div class="photo-selector"><button type="button" class="btn btn-default" title="attach image"><i class="fa fa-camera fa-fw"></i>&nbsp;Upload</button><div class="image-selector"><input type="hidden" name="photoId" value="" id="photoId" class="file-data" autocomplete="off"><label class="t1-label"><span class="visuallyhidden">Add photo</span> <input …

Member Avatar for JorgeM
0
136
Member Avatar for davy_yg

This is the first url: http://localhost/SquprimeRevise/administrator/admin/invoice_edit.php?group_id=7&type=new invoice_edit.php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Squprime</title> <!-- CSS --> <link href="style/css/transdmin.css" rel="stylesheet" type="text/css" media="screen" /> <!--[if IE 6]><link rel="stylesheet" type="text/css" media="screen" href="style/css/ie6.css" /><![endif]--> <!--[if IE 7]><link rel="stylesheet" type="text/css" media="screen" href="style/css/ie7.css" /><![endif]--> <!-- …

Member Avatar for broj1
0
340
Member Avatar for HuePig

Hi, I'm trying to get the value from a javascript: `window.locaiton.href = "db/create_eoi.php?refNum=" + rNum;`. <?php if(isset($_GET["rNum"])){ $refNum = trim($_GET["rNum"]); } ?> the problem is that where ever I use `$refNum` I get an error saying Undefined Variable. To be more clear: what im doing is getting a value from …

Member Avatar for HuePig
0
205
Member Avatar for Jamie_5

I am currently developing a Simon says type game using jquery and javascript. I have linked a fully copy of the game on github Github download and unzip to see the game fully https://github.com/Jamiex304/Simon_Says_Game_Demo And I have reached a problem I want to add a timer that the player can …

0
93
Member Avatar for terrymold

Hi I have a problem in which an HTML/JavaScript page, using the excellent AblePlayer Audio Player, which runs perfectly on my Home server (Latest version of Wamp), but will not run when it is uploaded to our 1and1 shared server space. The code for this page is shown below, and …

Member Avatar for terrymold
0
296
Member Avatar for J.C. SolvoTerra

Hi WebDev Guys, Ok, I have a very general question as the title suggests. I am very much a back-end developer and have only dabbled in web development. I would consider myself a total ammature when it comes to Web Development though am confident after playing with PHP, JavaScript, JQuery, …

Member Avatar for J.C. SolvoTerra
0
208
Member Avatar for ajdauda

I want to show a specific color based on the value i get from the Json response. i.e. if the temp = any number between 1 and 15 it will show a blue box below and... if the temp = any number between 16 and 25 it will show a …

Member Avatar for LesF
0
694
Member Avatar for Dervish1

I have a known good web page that works without (known) errors when it loads. However, when I try to load it using a very laggy connection (more than 6-10 seconds to load the page - when all works well, it can load in under 500 ms), my hosting provider …

Member Avatar for LesF
0
179
Member Avatar for Yorkiebar14

Hello, I'm having some problems with my jQuery script. It works correctly except it doesn't wait for the internal AJAX request to return before adding the variable data 'daa' to the HTML table variable. I debugged it a bit using 'alert' and I think it's adding the 'daa' data to …

Member Avatar for Yorkiebar14
0
508
Member Avatar for StephenopolousINC

Hello I am trying to learn the differences from Java and JavaScript so I am trying to take a working simple program in Java and make it work in JavaScript. I keep getting undefined. Here is the JavaScript I am trying: <script type="text/javascript"> function _(x) { return document.getElementById(x); } function …

Member Avatar for StephenopolousINC
0
343
Member Avatar for priya.ch

Hi All, I have a application , which onclick of submit takes content in textarea and do some back end stuff and finally opens a .html in a iframe. My problem is, the .html in iframe should change on each submit button in coresponding to the content in the textarea.... …

Member Avatar for LesF
0
2K
Member Avatar for HuePig

Hi, Say I have a 2 page website each have their own script, how can I make a page get a data form the other page? for example I have an int 1-10, page 1 took int 5; how can i make it so page 2 can't select int 5 …

Member Avatar for Oxiegen
0
82
Member Avatar for learner001

I have a form that has two parameters amenities and attributes. The amenities parameter has a dropdown menu that whose value gets populated from a separate table. The second parameter is attribute whose value will be entered by the user and will get saved in a database. View of database …

Member Avatar for pritaeas
0
256
Member Avatar for Dandello

This: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="$abbr_lang" lang="$abbr_lang"> <head> <title>$linktitle</title> <meta http-equiv="Content-Type" content="text/html; charset=$yymycharset" /> <link rel="stylesheet" href="$yyhtml_root/Templates/Forum/$usestyle.css" type="text/css" /> <script type="text/javascript"> function insertHyperlink() { window.opener.document.getElementById('wysmessage').contentWindow.focus(); var theLinktype = '$linkttext'; var mylink = document.getElementById('url').value; var theLink = theLinktype + mylink; window.opener.document.getElementById('wysmessage').contentWindow.document.execCommand("Unlink", false, null); window.opener.document.getElementById('wysmessage').contentWindow.document.execCommand("CreateLink", false, …

0
95
Member Avatar for nadiam

hi. i got 2 tables next to each other: .contact-names & .guest-list and a left and a right button between those tables and a drop down list. by default both tables have the message "Please select an event" from the drop down. when an event is selected .contact-names will be …

Member Avatar for nadiam
0
232
Member Avatar for Sumith Asanka

Hi Guys I have a Problem With My Asp.net Application Which is runing on asp.net 4.0 with vs 2010 Recently i have added Ajax toolkitscriptmanager, After that my Java Script Alert Messges are not woking ? Other Pages which doesn't have toolkitscriptmanager are ok, are they not compatible ? I …

Member Avatar for Isaac_4
0
160
Member Avatar for Priti_P

Hello, I am newbie in AngularJS. I had query about fetching data and storing in angularJS's variable. I have table where all employees are stored. Now, what I want is show dropdown of these employees. i.e fetch values from Database and store into variable of module which i can use …

0
73
Member Avatar for rani_4

Say i have a html5 vedio with mouse hovering of pausing and running in relation to cursor and code is working finely.I useing code as: from.js: // something along that var vid = document.getElementsByTagName("video"); [].forEach.call(vid, function (item) { item.addEventListener('mouseover', hoverVideo, false); item.addEventListener('mouseout', hideVideo, false); }); function hoverVideo(e) { this.play(); } …

Member Avatar for gabrielcastillo
0
225
Member Avatar for mythakash

Am trying to create search engine exactly like xmarks.com search engine but it is not happening with me can please help me out thanks.

Member Avatar for pritaeas
0
57
Member Avatar for joshua_8

$('#selectList :selected').text(); //retrieve text from multiselect how do you check in the servlet if the text equals to this do this method else the text is this do other method

0
96
Member Avatar for mangel.murti

Hi All , i have my admin panel where i build a form which store information of model popup like its color , title etc and also fields is require to show in model popup. i means all features of model popup is generated by admin and saved to database …

Member Avatar for gabrielcastillo
0
111
Member Avatar for mangel.murti

I am just starting a project on google map. i am using below link to get user current location [Click Here](http://www.sitepoint.com/working-with-geolocation-and-google-maps-api/) how can i find other nearby users / places based on current lat , long? any suggestion help me a lot. thanks

Member Avatar for mangel.murti
0
136
Member Avatar for rpv_sen

Hi Please help me on the below issue, how can we can get the `<span id='newText'></span>` value in php. i am not able to get the value in php variable. <html> <head> </head> <body> <script type="text/javascript"> function changeThis(){ var formInput = document.getElementById('theInput').value; document.getElementById('newText').innerHTML = formInput; } </script> You wrote: <span …

Member Avatar for rpv_sen
0
3K
Member Avatar for learner001

I have a table whose view is something like this ID NAME LOCATION DELETE 1 sam US delete I have a statement from the table that deletes the given row echo "<td><a href=\"delete_members.php?id=".$row['id']."\">Delete</a></td>"; It redirects to delete_members.php page and the row gets deleted, however i wish to display an alert …

Member Avatar for EvolutionFallen
0
3K
Member Avatar for rpv_sen

HI Please help. how to solve this I am using the below code. insert is working fine. but i am having problem in edit session i edit page i can able to display both values from Database. If i am changing the textbox1 value i am not able to get …

0
118
Member Avatar for cmsc

Hi, I'm trying to remove a script added by setTimeout(). I tried to use clearTimeout() but seems like it's not working. This is what should happen: Click Btn1 to include the function for btn2. After btn1 is clicked, click Btn2. An alert will be displayed. When btn1 is clicked again, …

Member Avatar for mattster
0
3K
Member Avatar for koneill

All, I have an external JavaScript code - which basicially has functionality so that different images are shown when a next or previous button is selected. What I need to do and know is how to pass the value of the image to the querystring as I need to use …

Member Avatar for LesF
0
804
Member Avatar for joshua_8

Hi how do you hide a jquery multiselect based on a option in the 1st dropdownlist. For example, when I clicked the 1st item in my dropdownlist it will appear the 2nd dropdown else the 2nd dropdown will not appear http://wenzhixin.net.cn/p/multiple-select/docs/ // multi-select pluginj

Member Avatar for pritaeas
0
137
Member Avatar for terrymold

Hi everyone I have a script which contains contains mostly JavaScript. After various bits of user input, it ends up with an array which contains 6 times (hh:mm) and these can be access by times[0] thru times[5]. Obviously these variables would be available on a clients PC. Another PHP programmer …

Member Avatar for terrymold
0
337
Member Avatar for Rahul47

Hey guys, here I am starting my journey into javascript, when this stupid bug is annoying me. Following is my piece of code: <html> <head> <title> Using 'this' in Javascript.</title> </head> <body> <script type="text/javascript"> var name={ firstName:"Foo", lastName:"Bar", showName:function(){ console.log(this.firstName +" "+this.lastName); } }; name.showName(); alert(name.lastName); </script> </body> </html> Problems: …

Member Avatar for Rahul47
0
218
Member Avatar for koneill

All, I'm trying to obtain the values from an external JavaScript using PHP - In my index.php page I'm trying to obtain the value being passed in as such: `<input type="hidden" name="imgSrcOrig" id="imgSrcOrig" value="<?php echo $_REQUEST['remote_sill']; ?>"/>`` However - in the JavaScript I need to pass into the hidden field …

Member Avatar for koneill
0
408
Member Avatar for Jack_9

Hello. I'm a newby in web development and I wanted to know if you guys knew any good books our websites to go to to learn Jquery for my new website. I've only used some css and a little bit of javascript but I wanted something better. I don't think …

Member Avatar for JorgeM
0
89
Member Avatar for RonKevinT.Manuela

SO I found a javascript I want to use: <script type="text/javascript"> function FindNext () { var str = document.getElementById ("findInput").value; if (str == "") { alert ("Please enter some text to search!"); return; } if (window.find) { // Firefox, Google Chrome, Safari var found = window.find (str); if (!found) { …

0
121
Member Avatar for joshua_8

Hi how do I use jQuery to show a Jquery mutliselect based on a checkbox option, here is my codes //html <input type="checkbox" value= "checkbox1" name="checkbox1"> <select id="dropdown" name="dropdown" multiple="multiple"> <option id="item"></option> </select> //jQuery $("#checkbox").change(function(){ $('#dropdown').multipleSelect();

Member Avatar for mattster
0
234
Member Avatar for Priti_P

Why this question arised?? I have used jquery Tabs in my application. On controller I have opened First tab with employee's names. Clicking on employee name opens another tab by just "add" facility of `$j("#teamtab").tabs("add",<data like ID>)` on opening multiple tabs , if I reload the page then it closes …

Member Avatar for mattster
0
183
Member Avatar for shahid_650

I have done almost complete html5,css3 and little bit javascript, jquery ,mysql, php...But problem is with me that i also learnt wordpress for making websites,,,,now i want to make a website for myself but can i make a website as i wanted by using wordpress because i know i can …

Member Avatar for oanahmed
0
193
Member Avatar for praveen_dusari

Hi All, i am using angular 1.0.5 and when i am using $logprovider then iam getting error TypeError: $logProvider.debugEnabled is not a function. how to solver this issue? do i need to download any module for this? i googled but didnt find any?

0
73
Member Avatar for Vijaysurya

HAI everybody, `` I am working on a Google API to obtain the contacts of users at my website, and I obtained a result using like this, but I wish wish to have the contacts out of the whole chunk. I just wanna know , how can I parse values …

Member Avatar for gelani_1
0
583
Member Avatar for berserk

I cannot get this table to work even though i hav eit working PERFECTLY in 3 other instances, now what i dont get is it seems to be a connection issue between the database and the form, now that makes some sense to me. What doesnt make sense is when …

Member Avatar for berserk
0
289
Member Avatar for RonKevinT.Manuela

Ok so here's the thing my classmate did a very good html file...this is the basis of the design of our homepage...there is a part where I should put the news on a collapsible group blah blah..i need help Here's the query to show news and events(nevermind the paginator Im …

Member Avatar for RonKevinT.Manuela
0
274
Member Avatar for RonKevinT.Manuela

Okay so Im gettin an error of Fatal error: Call to a member function fetch_array() on a non-object in C:\wamp\www\Usersearch\search.php on line 54...Im trying a tutorial on AJAX live search...http://ninetofive.me/blog/build-a-live-search-with-ajax-php-and-mysql...I only replaced the database connection to my own database... here's the Usersearch.php <?php /************************************************ The Search PHP File ************************************************/ /************************************************ …

Member Avatar for RonKevinT.Manuela
0
3K
Member Avatar for nadiam

hello. I have a page with two tables, .contact-names and .guest-list, and a drop down list. by default the tables are empty but shows message "please select an event" from the drop down list. when an event is selected .contact-names is loaded with names from database and .guest-list remains empty. …

Member Avatar for mattster
0
245
Member Avatar for younes.keraressi

hi, i create a web lan application, here my code: function Init_Form7() { $("#i_b_name").val(''); $("#i_b_last").val(''); $("#i_b_prob option:first-child").attr("selected", "selected"); $('#i_b_to option:first-child').attr("selected", "selected"); $("#i_b_acti").val(''); $("#i_b_date" ).val(''); $("#i_b_le_date").val(''); $('#i_b_wil option:first-child').attr("selected", "selected"); } on the "reset button" i call this function onclick="Init_From7();" the problem is , when i click on server machine the "reset …

Member Avatar for AleMonteiro
0
107

The End.