15,113 Topics

Member Avatar for
Member Avatar for sushant_1

I am loading shortcodes using ajax in my webpage. I am able to load shortcodes ( which essentially consists of a slider wherein when we hover over a slider, a different image comes) but the "on-hover" functionality is not working on the new sliders loaded. When i move my mouse …

Member Avatar for sushant_1
0
249
Member Avatar for patk570

Hello, I am looking for a script to add items to a database that can be found in the my account section, The table in the database is structured: id | user_id | slug I want to use the ajax to update and remove it later on down the road …

Member Avatar for matrixdevuk
0
3K
Member Avatar for phfilly

Hi guys, Can anyone please help me with this simple error. Jquery is not my strongest suite but I feel like this is something small that I'm missing. With the code below I get the error 'undefined'. html: `<a href='#' ><img src= "./images/1.jpg" width= '200px' id="2" rel="arm1" onclick = 'test()' …

Member Avatar for phfilly
0
2K
Member Avatar for fheppell

I've got a form, that sometimes needs to have a button allowing people to authorize with stripe. To save their data I'm submitting the form to a php file, that compiles the auth URL and saves their data. This javascript function is run when the button is clicked: function stripeAuth(){ …

Member Avatar for Robert_17
0
234
Member Avatar for joshua_8

Convert string arraylist to string array ArrayList categoryList; // data is [Apple, Orange] How do you convert to string array with the same data in the arraylist

Member Avatar for gabrielcastillo
0
94
Member Avatar for joshua_8

//jsp $("#year1").change(function(){ var dataString = $(this).val(); $.ajax({ type: "POST", url:"Servlet", dataType: "json", data: { year :JSON.stringify(dataString) }, success: function(result) { console.log(result); $('#category1').multipleSelect({ filter: true, selectAll: false }); } }); return false; }); //servlet response.setContentType("text/html;charset=UTF-8"); PrintWriter out = response.getWriter(); String[] year = request.getParameterValues("year1"); //error //Hi now my code is based on …

0
85
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
207
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
270
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
142
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
123
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
126
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
134
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
201
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
91
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
282
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
691
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
175
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
500
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
326
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
80
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
224
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
93
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
158
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
71
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
54
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
108
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
134
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

The End.