15,688 Topics
![]() | |
I am new to coding and im having trouble with arrays in javascript. I want to be able to compare stuff inside an array but only if the three values match up to one of the sets of three values in the array var array = [[1,2,3][4,5,6][3,6,7]] if(array.indexOf([1,2,3]) === 1){ … | |
Hello Friends I am having issue with sizes option on my page this is the form of sizes <!-- Sizes And Quantity [Onclick Modal]--> <div class="form-group col-md-3"> <label>Sizes & Quntity<span class="required">*</span>:</label> <button class="btn btn-default form-control btn-info" onclick="jQuery('#sizesModal').modal('toggle'); return false;">Sizes & Quantity</button> </div> <!-- Sizes & Quantity Preview --> <div class="form-group … | |
Hi guys, I am a computer science major and I have been asked to complete a task for someone working in the school of public health at my university. Basically I have to go to this website: ///////////////////////////////////////////////////////////////////////////// [Click Here](https://www.healthcare.gov/find-premium-estimates/#results/&aud=indv&type=med&state=PA&county=Allegheny&age0=35&employerCoverage=no&householdSize=1&income=100000) ///////////////////////////////////////////////////////////////////////////// and gather all the information which displays after the … | |
Hello, I would like to create image gallery with jquery which could show an image and if I place a cusor on top of it a shadow with a caption will appears on top of the image. And if someone click the image the image will enlarge a larger image … | |
I have a pictures website and I want to be able to add impressions to the database when a visitor scroll down the images. Each image viewed equal to 1 impression. This feature can be found in Facebook post impressions. This is what I have come up with so far: … | |
$(document.getElementById("item1"), document.getElementById("item2")).click(function () { $(this).fadeOut(); }); <span id="item1">This is item 1</span><br /> <span id="item2">This is item 2</span> span#item1 { color: red; } span#item2 { color: green; } `span#item1` is affected. `span#item2` not, that means I made mistake in syntax. Is there a way to get it to work. I know … | |
Hi Experts, I want to export html table to .csv file, my code is working but i want to export it with border or background color on its header. how will i do that? Please help me. Thanks in advance. :) Here's my code: HTML Table: <div id="feedback_div" style="display: none;"> … | |
I have wierd problem the navigation is working good everywhere but on `home.php` file it doesnt work when i press the MORE button to open the dropdown here is my code, what can cause this problem ? sidebar.css body,html{ height: 100%; } /* remove outer padding */ .main .row{ padding: … | |
I am supposed to use a jquery plugin to fill in some text fields. My professor is almost completely unresponsive about it when I ask him for help. Using the pickadate Jquery plugin, add a date picker and time picker to two <input> fields. <!doctype html> <html> <head> <title>Exercise 11A</title> … | |
I have this function which get me only unique values in array: function sort_unique(arr) { var obj = {}; for (var i = 0; i < arr.length; i++) { obj[arr[i]] = true; } arr = []; for (var key in obj) { arr.push(key); } return arr; } I need this … | |
Write a program that accepts five input values and stores them into an array. The program should then display the average of the five numbers. Finally, the program should display all the numbers in the array that are larger than the average of the five numbers. So I did the … | |
![]() | Hi, I am having a Timer control like this: [CODE]asp:Timer ID="Timer1" runat="server" Enabled="False" Interval="1000" OnTick="Timer1_Tick"> </asp:Timer>[/CODE] In an UppdatePanel with AJAX enabled. So everything works fine to the point where on each refresh of the panel a JS is inserted in the header: [CODE]<script type="text/javascript">Sys.Application.add_init(function() { $create(Sys.UI._Timer, {"enabled":true,"interval":1000,"uniqueID":"Timer1"}, null, null, … |
Hello guys i wrote an public function to create a project, but i need to call it in my javascript file. How can i do this. this is the public function i want to use. the public funtion is in data.php public function create($projectid,$projectnaam,$startdatum,$einddatum,$omschrijving) { try { $stmt = $this->db->prepare("INSERT … | |
I'm trying to convert my php code into OOP. I'm using Datatables with jquery en ajax + JSON to load projects into a table. But i want to convert this code into OOP, but i always get a invalid json response. Im new into writing OOP, so could anyone help … | |
I have searched Google and Youtube for Facebook log in toturials but couldn't find something useful. Do you know any good articles or website or even a Youtube toturial that covers the facebook log in system? How did you learn it? | |
What should happen is when i click the log in button, the container for the log in form should become hidden and the sidebar, search bar, tiles and log out button should appear. I sometimes experience that if i have to click the log in button twice for it to … | |
This a code made in three.js so its like a gemoetry big cube made with small cube written in css,but i want to make that the source will be an image and that image will be the big structure made with small cube,i.e-if the image is google logo the thing … | |
Hello guys, I have been trying to fix these errors, but it wont work. This are the errors im getting Warning: mysqli_query() expects parameter 1 to be mysqli, object given in /home/335456/public_html/hoi/class.user.php on line 35 Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, null given in /home/335456/public_html/hoi/class.user.php on line 36 … | |
Hi Sir I have a problem in passing value from Popop to main page I am using Master page and aspx page From main page, i can open popup windows and populate data in gridview. I am selecting date and capture the valeu in TextBox. When I click the button … | |
Hi, I tried to change the form action based on selection option and hoping that my javascript validation function working properly too... I found out one solution and hoping this javascript can do that kind of thing. I tried so many ways and I think there's something wrong with my … | |
I have form having input type file to upload image & other input fields. How to submit form using websocket ? $("#form").submit(function() { "use strict"; var formURL = $(this).attr("action"); var postData = new FormData(this); //alert(postData); $.ajax({ type: 'POST', url: formURL, data: postData, processData: false, contentType: false, success: function() { $('.content').prepend("<div … | |
Hi guys, I need to put data that i get it from db2 and display it into each text boxes (Name, Address and Postcode). What i got now, its displayed Name's data that i got from db2 into all text boxes (Name, Address and Postcode) . All i want is … | |
I'm learning the ways off writing code in OOP, but i have a file where i do not know how to change it in oop. I have written php code before, but dont know how to convert this file in OOP cant somebody help me with a example of my … | |
I have this event handler for when the page is loading. It shows a preloader GIF image when the window start loading. $(window).load(function(){ $("#Preloader").css('display','block'); }); But I don't know how to detect if the window stops loading so I can remove the preloader. How to detect if the window stops … | |
I'm Using **AdminLTE-2.3.0** template, **jquery.imgareaselect.js** I'm using bootstrap modal to submit form via ajax. Inside Modal I have preview of image before upload. And **imgareaselect** is not working well that I proceed further with image cropping. **ScreenShot of error is attached.** **Please help.** **Thanks.** **imgareaselect-animated.css** .imgareaselect-border1 { background: url(images/border-anim-v.gif) repeat-y … | |
Hi, i need urgent help.. iam working on leave management system(LMS).if the employee apply for the leaves means,one message go to HR inbox (internal application inbox). iam designing inbox for this..it has two parts(2 coloums).in the first coloumn iam displaying messages with employe name,id nd subject(just like preview of the … | |
I am trying to build a scrolling system for my website. This is what I have com up with ... $.ajaxSetup({ cache: false }); $(window).scroll(function(){ if($(window).scrollTop() == $(document).height() - $(window).height()){ picturesCount = $(".Picture-1A").length; allPicturesCount = $("#allPicturesCount").text(); alert('picturesloaded:' + picturesCount + ' PicturesDB: ' + allPicturesCount) if(picturesCount < allPicturesCount){ $.post('ajax/load-latest-pictures.php', {pictures_loaded:picturesCount}, … | |
I have an input field which is showing vulnerable in security scan using XSS attack as: STYLE="xss:e/**/xpression(try{a=firstTime}catch(e){firstTime=1;alert(969)});" Could you please suggest how can we prevent from vulnerability like this ? Field: <input id="{ControlItemUniqueID}Data" style="width:150px" name="{ControlItemUniqueName}" type="hidden" {MaxLength}{IsEnabled} {IsReadOnly} class="datatext {CssClass}" value="{Data}" onkeypress="sanitizeEmployeeDateData()" onmouseover="sanitizeEmployeeDateData()" onblur="sanitizeEmployeeDateData()> <script> function sanitizeEmployeeDateData() { var EmployeeDate … | |
Hey fellas, some time ago I started trying out Brackets, and guess what? Loved it! If you don't know, it's an open soude editor made out of html, css and javascript, powered by node JS and chromium and sponsored by Adobe. A lot of open sources projects coming together to … | |
Hi everyone i need help in getting value from 3 depenedable dropdown menu and after selecting option from 3 dropdown menu the data showed be shown in textbox eg. First value **package1** Second Value **car1** Third value **Type** and textbox value **Rate1** **Rate2** **Rate3** Please help me in this Thanks … |
The End.