15,121 Topics

Member Avatar for
Member Avatar for BenWard

Hello, I'm having some trouble with a £ sign, it's being displayed to the user as the <?> question-mark-in-a-black-diamond icon. I have an SQL Server database with a £ in a table. (Collation Latin_General_C1_AS which is analoguous to 8859-1) I have a PHP script which retreives this record without issue …

Member Avatar for BenWard
0
270
Member Avatar for nadiam

Hi guys so i have 2 tables in my page. One table would be populated by names from database and another remains empty for the moment. so what i want to be able to do in this page is that names can be dragged and dropped from the first table …

Member Avatar for nadiam
0
2K
Member Avatar for Siberian

I'm hoping someone can help me. I'm looking for a image / video gallery that behaves in this mannor. When a link is clicked, the area of the page that is suppose to show the image / video gallery splats out, whereas, each title grows from invisible to visible just …

Member Avatar for Siberian
0
156
Member Avatar for 2aviv20

I have in the same folder my app.js file and index.html the index file doesn't recognize all of the other files in my project. photos and 'jquery' folder.

0
102
Member Avatar for BTLSP

I have a client who wants me to come up with js code to attach an image from a visitor's computer to a form to email to the client.

0
137
Member Avatar for nadiam

I have two tables, one being populated by data and another empty. I am using draggable and droppable jquery ui so I can move data from the first table to the other. and its working perfectly. Now, I am trying to clone the "tr" element of the second table where …

0
159
Member Avatar for Siberian

I hope someone can [help](http://www.thecreativesheep.ca/webdesignprojects/largeprojects/CreativeSheep/cs_site.html). The id=reachme is suppose to be hidden at all times except when the event which is triggered by clicking the word "reachme" is clicked then it is suppose to bounce into view. I've set display to hidden in the css for the id=reachme, hoping the …

Member Avatar for Siberian
0
223
Member Avatar for Siberian

I'm in the process of creating the following; when a class anchor is clicked, it triggers an ID that is scaled which was hidden before the anchor was clicked with a little bounce before it rests into place, I hope that made sense ? Here is what I have so …

Member Avatar for Siberian
0
167
Member Avatar for tronghiep92

I problem AJAX jquery. How block run AJAX from console.log EX test on localhost: **file index.html:** <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> <script> $(document).ready(function(){ var btn = $('button'); btn.on('click', function(){ $.ajax({ url : 'process.php', type : 'post', data : {id : 1}, success: function(data){ console.log(data); } }); }); }); </script> </head> <body> <button>CLick</button> </body> …

0
69
Member Avatar for hsakapandit

I have arrays and variables in JQuery and I want to know that Can I POST both arrays and variables from single $ajax jquery request to my php page. If yes then How will I post data from Jquery and how will i handle in PHP page. var get_id = …

Member Avatar for hsakapandit
0
791
Member Avatar for Tinnin

I am running this on my local: <script> $(document).ready(function() { $("#validateButton").click(function() { var forename = $("#Name").val(); var surname = $("#Surname").val(); var dob = $("#DOB").val(); var flatNumber = $("#FlatNumber").val(); var houseName = $("#HouseName").val(); var houseNumber = $("#HouseNumber").val(); var street = $("#Street").val(); var townCity = $("#TownCity").val(); var county = $("#County").val(); var postcode …

Member Avatar for Tinnin
0
337
Member Avatar for RikTelner

Let's say my website heavily depends on JavaScript. I found this: http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_noscript What I understand is. If JavaScript is enabled, it displays "Hello World". If JavaScript is disabled it displays everything within `<noscript>` as normal div. The clue is. I have "NoScript" Firefox addon. That blocks JavaScripts, disables flashes and …

Member Avatar for pritaeas
0
911
Member Avatar for napninjanx
Member Avatar for metalfurby

Hi there, I am taking a html/java script class and I am completely lost. Can anyone help? Here is what my assignment is: Create an HTML file with Javascript to do the following Have text boxes for the user to enter 2 numbers Have a button so that when clicked …

Member Avatar for JorgeM
-1
137
Member Avatar for junaid_5

Hello i am creating a small project. is there any tutorial that could help me . i have image gallery. it has main categories and then sub categories , i want to upload the images to respective sub category under main category after choosing categ and sub categ from list …

Member Avatar for junaid_5
0
197
Member Avatar for alonso.jasl

Hello everyone, I'm not sure whether this post belongs here. The thing is that I want to do a Page reload from my java code running on the server. After pressing a button, I wish for the page to do an automatic reload. So, inside the class file, I have …

0
111
Member Avatar for happygeek

Feedly app left attack window open for malicious JavaScript hackers according to one security researcher. Security consultant and blogger Jeremy S [revealed](http://breaktoprotect.blogspot.in/2014/04/feedly-android-application-zero-day.html) that the Feedly Android app, or at least the version prior to the update on March 17th 2014, had been subject to a zero-day JavaScript code injection vulnerability. …

0
358
Member Avatar for LG Fresh

function makeSelection(icon, id) { if(!icon || !id) return; var elem = icon.elements[id]; if(!elem) return; var val = elem.options[elem.selectedIndex].id; opener.targetElement.value = val; this.close(); } this form used to select from a dropdown but i want to make it select from a click button <td>Icon1 Here<br /><input type="button" value="Select" id="1000" onclick="makeSelection(this.form, 'icon');"></td> …

0
111
Member Avatar for Siberian

var one = getElementsByClassName("orange")[0]; one.style.color = "orange"; The code above gives me the following error, why ? Error: 'getElementsByClassName' was used before it was defined.

Member Avatar for Siberian
1
187
Member Avatar for nadiam

hey guys, so i want to disable the input button function unless checbox is checked. i found [this](http://forums.phpfreaks.com/topic/41715-solved-submit-button-remain-disabled-until-checkbox-checked/) forum and it sorta worked. the button is disabled when no checkbox is checked but it stays disabled even after checkbox is checked. this is the html: <input type="button" id="del_event" name="del_event" value="Delete …

Member Avatar for nadiam
0
4K
Member Avatar for nouth

my [previous question](http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/477450/convert-str-to-var) about this dealt with global vars but unfortunatley the `window` of opportunitys doesn't work with this next example because it alerts 4 times instead of only 1 test("a","b","c"); function test(var0,var1,var2,var3) { for(var i=0; i<4; i++) { if(window["var"+i]===undefined) {alert("test");} } } this may not be very clear so …

Member Avatar for felgall
0
345
Member Avatar for nouth

this is my attempt var test=["a","b","c"]; var var0="a"; for(var i=0; i<1; i++) { test.splice(test.indexOf(test[window["var"+i.toString()]]),1); } alert(test); it alerts "a,b" but I want it to alert "b,c" ref:http://stackoverflow.com/questions/5613834/convert-string-to-variable-name-in-javascript

Member Avatar for nouth
0
421
Member Avatar for ajay.motah

Hello the code below will fetch all unaswered questions from the db. But when there is only one question, when next is done, it doest submit, and gives a blank page.If more than 1 questions it works fine. Please help. Thank you <?php session_start(); //uri get from index $qu=$_GET['qu']; $userid=$_SESSION['userid']; …

0
99
Member Avatar for bradly.spicer

I am trying to make it so that the snippet below automatically creates extra pages to show me all the followers I have on my Twitch Channel. At the moment I have it at 25, but it does cap at 100. How can I make it so that it automatically …

Member Avatar for Kyle Wiering
0
808
Member Avatar for SagarSe7en

Hello Everyone, I am trying to achieve pagination using jsp javascript and servlets. Here is my code below: SearchUserViews.java `package TestPackage; /** * * @author Sagar */ private String _userid; private String _firstName; private String _lastName; private String _emailAddress; public userProfile(){ _userid = ""; _firstName = ""; _lastName = ""; …

Member Avatar for stultuske
0
3K
Member Avatar for programmer12

Hi, I am trying to create a jquery slider with navigation button and arrows, but my slider is not stopping at the last image nor stopping at the first image. See my fiddle for an example: [http://jsfiddle.net/c2mKp/](http://jsfiddle.net/c2mKp/) Any help is welcomed. HTML: <!-- Jquery Slider --> <div class="jquery-slider"> <div class="wrap"> …

Member Avatar for iamthwee
0
351
Member Avatar for begueradj

Howdy, I am looking to download a list of malicious JS code in order to test it on my localhost website I am developing. Is there any place to download such a list ? Thank you in advance for your answer. Begueradj

Member Avatar for iamthwee
0
283
Member Avatar for marse.haka91

I used Morris chart in my application project to show some details about quantity of sales. After executing the AJAX request, the chart is showing data in disordered way.It doesn't display sales for each city.I want to display them like this example with static data http://jsfiddle.net/marsi/LaJXP/1/ var json = (function …

Member Avatar for marse.haka91
0
5K
Member Avatar for Mr.Pink

I have this code which loads 10 divs from an external file into the main file. There's also a next / previous function to skip back and fourth between the divs. Demo: http://goo.gl/RFBN2E (Click load content to load the content via ajax, then the next / previous buttons will skip …

0
159
Member Avatar for ravi142

Both SetCookie() and GetCookie() works good. **Problem:** In bellow code how could i make condition IF cookie value NULL then BOX show otherwise HIde. I have run but condition not going true. $(document).ready(function(){ var first_name = getCookie("chat_name"); var user_id = getCookie("chat_id"); var img_src = getCookie("chat_img"); if(first_name !=="" && user_id !=="" …

Member Avatar for ravi142
0
92

The End.