back soft

مطالب مرتبط با «script» در back soft | نویسنده: استخدام کار

How can i add 1 second delay for JavaScript loop?

Vote count:
 0i have this codejavascript:var inputs = document.getElementsByClassName('_42ft _4jy0 FriendRequestAdd addButton _4jy3 _517h'); for(var i=0; ii need to add 1 second delay in for loop asked 50 secs agoObada DiabLet's b...

ادامه مطلب

Javascript move target around screen?

Vote count:
 0So I'm working on a basic shooter, part of which involves moving a target around the screen. I'm using babylon.js as the engine and my goal is to have the target appear for 0.75 seconds on the screen, then disappear for 0.5...

ادامه مطلب

How to add title to PDF document with JavaScript?

Vote count:
 0I downloaded this example to export a table to PDF. I would like to add a custom title and I do not know how to do it, here is what I have so far: EjemploTitle Here asked 25 secs agoJosue GonzalezLet's block ads! (Wh...

ادامه مطلب

How to set one selected logo on existing image using Canvas and Javascript

Vote count:
 0I need some help. I am setting some text on image using canvas but this time my requirement is I have to set one logo on that image using Canvas/ Javascript. I am explaining my code below.Here I can set the text on the image...

ادامه مطلب

FTP multiple files in different folders using shell script

Vote count:
 0I'm trying for a FTP script, that sends files in different folders within the same coection ,but no luck with below script. Adding to this,any possible condition to send latest files generated 10 minutes before this scrip...

ادامه مطلب

javascript: passing parameter with special characters to function without being replaced

Vote count:
 0I need to pass to javascript function some data that has special characters like#228; A full string will look like thisBundesland Käten My javascript function looks like thisfunction my_fumc(arg){ console.log(arg); } If i call this function in the following waymy_fumc('Bundesland Käten') I get in console Bundesland Käten Instead ofBundesland...

ادامه مطلب

Setup Testing with Karma Mocha Webpack2 Typescript

Vote count:
 0I'm trying to setup testing in my custom Webpack 2 boilerplate with Karma, Mocha and Chai. In the project I'm using Typescript 2, so package.json has following structure:"scripts": { ... "test": "NODE_ENV='test' karma start karma.conf.js" ... }, "devDependencies":{ ... "chai": "^3.5.0", "karma": "^1.6.0", "karma-chai": "^0.1.0", "karma-chr...

ادامه مطلب

echoing content from another funtion php script

Vote count:
 0Hi I need help about echoing message from another function, below is my script, in my database is already set the product_quantity is 0, but not able show the alert message, its that anything wrong in the code?function get_products_in_cat_page(){ $query = query(" SELECT * F...

ادامه مطلب

javascript map function not adding to array as expected

Vote count:
 0Why doesn't the 'values' array contain the 'Title' of each item within 'results'?The following code outputs: 1, 2, 3, 3, 3, 3 rather than the desired: 1, 2, 3, 1, 2, 3.var results = [
 {Title: '1'},
 {Title: '2'},
 {Title: '3'},
 ];
 var fields = {...

ادامه مطلب

How to apply style to the variable in javascript

Vote count:
 0I am working on a API, so i got it ruing but would like to apply some style to it.I am trying to change the style for var title, country, status and summary without success. Could you hint on how to do it? I have tried a few things but none of them are working.Thank you!...

ادامه مطلب

Difference in character length count in javascript and C#

Vote count:
 0I have a multi line textbox.And through jquery-javascript I am limiting the max character of the textbox.$('#').val().lengthHowever, when I add a new line in textbox, javascript code counts that as one character but C# takes new line as two character...

ادامه مطلب

How to know if user has purchased a subscription before (but the subscription is no longer active)?

Vote count:
 0I know that we can query Google Play to know if a user currently has an active subscription, however, will it be possible to know if a user has previously purchased a subscription and that subscription has now ended?Ie: User buys "Infinite Gas" subscription for 1 month in J...

ادامه مطلب

Need help to turn all white background to black using javascript on all websites

Vote count:
 0I need help to make a userscript to target all white background and tu them black and all black text to silver using javascript for all websites, all other elements should stay original. The color range for background is from silver to black and dark gray to black for tex...

ادامه مطلب

How to include a bash script in a python library, steuptools

Vote count:
 0I have a python library that I build with setuptools.My library depends on a bash script.When I build my library, my bash script is not included in the build.How can I package a bash script together with my python library, with setuptools?Thank you! asked 21 secs ag...

ادامه مطلب

typescript regular expression for email addresss

Vote count:
 0What would be the correct way to write a typescript regular expression for @lsu.eduI have var reg = /^([w-.]+@(?!lsu.edu)([w-]+.)+[w-]{2,4})?$/ but I think it is incorrect. asked 24 secs agopinkco12Let's block ads! بخوانید...

ادامه مطلب

How to get javascript to print text input to console

Vote count:
 0I am new to javascript programming so am hoping that this is a simple issue... I'm wanting my webpage to allow a user to input a music track name and artist in two separate fields and once you hit 'go' the javascript will run and parse the input into a string. To test I hav...

ادامه مطلب

Runing python script by " | bash " with sys.stdin.readline()

Vote count:
 0I am doing something need to use curl xxx | bash to run something. I created a python script with sys.stdin.readline() to test like this:[python3] test.py import sys def read_input(): input = sys.stdin.readline().rstrip() print(input) read_input() It works directl...

ادامه مطلب

Is it bad practice to have multiple javascript frameworks in the same web application?

Vote count:
 0I was recently working on a web application where multiple javascript frameworks namely Jquery and Prototype were used. I understand that typically only one base javascript framework is selected. Is having multiple frameworks a bad practice ?Given the current state of the p...

ادامه مطلب

Call web service from js file(angularjs)

Vote count: 0 i am creating a web app in MVC5 in which i need to call a web service from my javascript file, in asp.net i used to call like $http.get('/welcome.asmx/welcomegrid', { params: { } }) but in MVC5 it is showing me error Request format is unrecognized for URL unexpectedly ending in '/welcomegrid' i tried this also $http.get("http://localhost:50353/Models/welcome.asmx/welcomegrid", { params: { } }) but i am facing the same error asked 1 min agoIbrahim Shaikh Let's block ads! بخوانید...

ادامه مطلب

Word Interop - Check if a doc/x file has Superscript/Subscript text or Equations

Vote count: 0 I am building a Word File Content Analyser and I am stuck with the code, on how to check if a doc/docx file has Superscripts/Subscripts or Equations in the content. Code I have so far is: WordApp = new Microsoft.Office.Interop.Word.Application(); WordApp.DisplayAlerts = WdAlertLevel.wdAlertsNone; WordApp.AutomationSecurity = MsoAutomationSecurity.msoAutomationSecurityForceDisable; WordApp.Visible = false; WordApp.Options.SaveInterval = 0; Document DocObj = WordApp.Documents.Open(FileName, OpenAndRepair: false, NoEncodingDialog: true, ConfirmConversions: false, ReadOnly: true, PasswordDocument: "dummy", PasswordTemplate: "dummy"); PageCount = DocObj.ActiveWindow.ActivePane.Pages...

ادامه مطلب