Vote count: 0 have a question about referencing an from a JS function. The function is being hit as a null reference error is thrown by the var e = document.getElementById(''); line in the function. Any Ideas? Thanks asked 53 secs agomichael Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I want to make a player and 2 Circles. When the player hit the first Circle, then the Circle will also move as like player. Continue with the second Circle, if the second circle get hit by the first circle (while the player is moving and pushing the first circle), the second circle will also move as like player's speed movement! Can you solve the problems, please ... :) Thank You! asked 2 mins agoJohnsonterry992 Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I am looking for sample on Angular2 RC with typescript and ASP.NET web api 2 integration for CURD operations. Please share if anyone already tried this sample. Cheers Sanket asked 2 mins agoSanket Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I have 2 files in the main dir of my Meteor project. 1. test.html Test 2. test.coffee { Template } = require 'meteor/templating' #require './test.html' Template.test.onRendered () -> console.log 'test rendered' When the comment is active a get the error TypeError: Caot read property 'test' of undefined when I comment it in the error is: Error: Caot find module './test.html'. Is it still posible to work with Blaze and CoffeeScript? asked 37 secs agosoftwarerero Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I have the same Python script ruing on two machines, on the same input and giving the same output. It takes about 7 minutes to run on my laptop and 56 minutes to run on a server that I uploaded it to. Obviously, the environment is different, but the difference in speed (8x!) was a little too egregious for me to just write it off as different environments. Both machines have plenty of memory, and the server has more cores than my laptop, but also more stuff ruing on it (plus I don't think the cores matter for this operation). It's normal for me to run stuff on both my laptop and the server. I've never had a 2x difference in speed before, not to mention a 10x one. The script is p...
ادامه مطلبVote count: 0 In TYPO3 CMS 6.2.17, I used Extension Builder to make an Extbase extension that has a frontend plugin and a backend module. I built a localhost website with two pages: id=1 is a standard page; and id=2 is a folder. The standard page has the site's root TypoScript template, and that template includes my extension's static file. I activated my Extbase extension in the Web module. When I selected my extension and the folder page (id=2), I saw a populated listing display from the default controller and action; but the display was using the frontend Fluid layout, not the backend layout. I want the backend layout for its Fluid actionMenu in the "typo3-docheader-functions" div class. ...
ادامه مطلبVote count: 0 I'm using the following code to modify the form answer: $('QR~QID24~1').insert({after: ' out of'}); $('QR~QID24~2').style.position = "relative"; $('QR~QID24~2').style.left = "100px"; $('QR~QID24~2').style.bottom = "34.5px"; This doesn't work anymore because when the block is looped the question is repeated five times, with the following names: QR~1_QID24~1 QR~2_QID24~1 QR~3_QID24~1 QR~4_QID24~1 QR~5_QID24~1 I tried to repeat the code with every name: $('QR~1_QID24~1').insert({after: ' out of'}); $('QR~1_QID24~2').style.position = "relative"; $('QR~1_QID24~2').style.left = "100px"; $('QR~1_QID24~2').style.bottom = "34.5px"; $('QR~2_QID24~1').insert({after: ' out of'}); $('QR~2_Q...
ادامه مطلبVote count: 0 This is my first post on Stackoverflow as after hours researching on how to deal with this problem (searching on Stackoverflow itself) I've decided to ask you guys for help. I'd like to know how to remove the "limit" on markers that this piece of code has. I'm quite new using Google Maps API, so I do apologize in advance if the code looks confusing. I'm using the Geocode feature + Autocomplete feature from Google Maps API. Places Searchbox html, body { height: 100%; margin: 0; padding: 0; } #map { height: 100%; } .controls { margin-top: 10px; border: 1px solid transparent; border-radius: 2px 0 0 2px; box-sizing: border-box; -moz-box-sizing: border-box; height: 32px; outline: no...
ادامه مطلبVote count: 0 I am in the process of updating the database of a clan website I am designing for someone, and I have two distinct tables I am worried about (there are more tables, but these are the two in question). Table 1 has the following columns: id, useame, year, day, month, rank, active, ranklevel, joindate, and clanid please note that year, day, and month are used for formatting purposes seperate from the joindate. Table 2 has the following columns: id, name, members, createDate, command command being who is in charge of that specific clan (we have a main clan, with subdivisions due to restrictions in place to how many members a clan can have). I would like to have it where whenever we...
ادامه مطلبVote count: 0 BD Home page body{background-color:red;} p{background-color:yellow;} div{background-color:green; } function mf() { Var x=new Date(); alert("Today is: "+x); } Click Hellllllooooo Hello this is html Hello i am a begier programmer.In the error code it says mf in not defined on line 1:1, caot understand that Is it important to enclose an alert dialog box under a function ? asked 1 min agoApoorv singhai Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I'm getting the below error while ruing my tests using Karma with Jasmine in my Angular2 with NativeScript project. The tests are being executed correctly, but, this error keeps repeating in the console. I observed the error is coming only after importing zone.js (imported it because it says zone is not defined while using inject, etc from Angular2/testing). Error: JS: NSUTR-socket.io: transport error JS: NSUTR-socket.io: 1 JS: NSUTR: socket.io error on coect: Error: xhr poll error JS: NSUTR-socket.io: 2 JS: NSUTR: socket.io error on coect: Error: xhr poll error 04 05 2016 12:33:42.046:WARN [NativeScript / 23 (6.0; Google Nexus 6P - 6.0.0 - API 23 - 1440x2560)]: D iscoected (1 ...
ادامه مطلبVote count: -1 I'm using swal function of sweetalert and after it pops up the alert window, it's supposed to retu to my original screen but the PROBLEM IS the screen freezes and i'm no longer capable of using the mouse nor anything in my original(browser) screen. PS: i tried to comment the sweet alert function and use the normal javascript alert and it never freezers my original browser screen. asked 2 mins agoHadeel Tantawy Let's block ads! بخوانید...
ادامه مطلبVote count: 1 Please check this https://jsfiddle.net/yzhL5ftd/ I try to replace . by , when user types somethings with . in a textbox. On Chrome browser, when user press Back button on keyboard, it can not move. Why? asked 1 min agoJohn Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I'm reading an article that says that {} is a valid JavaScript program. I tried it and it worked fine. Then I tried this and it worked: {name:'Lord Stark'}...
ادامه مطلبVote count: 0 I am using highcharts to draw charts and parsing the date with new Date() function. In Chrome and FF, date is parsing fine. But in IE and Safari, i am getting NaN and Invalid date format resp. Below is the data i am getting from backend in (element.x) array 2016, 04,05 2016, 04,06 2016, 04,07 2016, 04,08 2016, 04,09 2016, 04,10 Now, i am converting it to Date object in JavaScript as below: //Loop starts var xAxis = new Date(element.x); datas.push([Date.UTC(xAxis.getUTCFullYear(),xAxis.getUTCMonth(), xAxis.getUTCDate())]); //Loop ends Now, this operation retus NaN in IE but works very well in chrome as below: Chrome Array([0]=>140004454) - Unix Time stamp i get IE Array([0]=>NaN...
ادامه مطلبVote count: 0 I am writing a Google form using a script so that I can pull the data from a Google spreadsheet and generate a page for each event based on a list of events which are of unknown length. I have worked out that I can create the pages I need using this loop, with my list of events, eventvalues : for (var i = 2; i < eventvalues.length; i+=1){ var page = form.addPageBreakItem().setTitle(eventvalues[i][0]);} I would like to end up with variables Page1 Page2 Page3 Etc all the way to eventvalues.length Currently the variable page is used by the last page only and all others are not assigned to a variable because of being re assigned. Thanks in advance edited 1 min agofge asked 2 mins a...
ادامه مطلبVote count: 0 I have two options for select. I am trying to get it to where if the user selects "Case Manager" for option for select #1, then option for select #2 appears. Here is my code: Haml: = form_tag app_configurations_path, :method=> 'put' do |f| -@all_configurations.each do |config| =hidden_field_tag "config_ids[]", config.id %label= t('workflow.duplicate_claim_manager') = select_tag('duplicate_claim[case_manager]', options_for_select(@case_managers_drop_down, config.configuration_value),name: "config[#{config.id}]", :include_blank => true) %label= t('workflow.duplicate_claim_manager_secondary') = select_tag('duplicate_claim_secondary[case_manager]', options_for_select(@case_managers...
ادامه مطلبVote count: 0 I have a Java function that converts a number into a Base64 string : //Using Base64 from apache : org.apache.commons.codec.binary.Base64 String base64 = new String(Base64.encodeInteger(BigInteger.valueOf(Long.parseLong(myLong)))).replaceAll("=", ""); For instance, for 1272209127 I'm getting S9Re5w Now, I need to convert it back client-side. I'm trying with : var byteCharacters = btoa("S9Re5w"); var byteNumbers = new Array(byteCharacters.length); for (var i = 0; i < byteCharacters.length; i++) { byteNumbers[i] = byteCharacters.charCodeAt(i); } var byteArray = new Uint8Array(byteNumbers); var value = 0; for (var i = 0; i < byteArray.length; i++) {value = (value...
ادامه مطلبVote count: 0 I have a web page with around 10 JS files, and within the web page there should not be any form of outgoing request made by JS, that is, the scripts should be able to run locally without any HTTP request to other sites. The thing is, I didn't write the JS code, so how do I figure out if JS is making contact with other servers? Browser's console doesn't seem to be helpful with that. Or is there a function that could override all JS outgoing requests? asked 1 min agoGalaxy Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I found this JSFiddle which does what I want. However, I wanted the boxes to be inline and buttons as arrows. So I modified above fiddle into this JSFiddle. 1) However, this is not working. Can someone please help with what am I doing wrong ? I am not able to move elements from left to right and vice versa. 2) I also want the width and height of my Select boxes as fixed with no scroll bar initially. For e.g. say 6 options. However, if the number of options increases (for e.g. it becomes 10), a scroll bar should automatically appear. Can someone point me to some tutorial which shows this ? My code: HTML: Option 1 Option 2 Option 3 Option 4 Option 5 Option 6 Javascript: $(functio...
ادامه مطلب