back soft

مطالب مرتبط با «javascript check if variable exists» در back soft | نویسنده: استخدام کار

JavaScript: Check if window.location.href has been changed

Vote count: 0 I have following code to show a loading panel after e.g. clicking a button and making an Ajax call: $(document).on("click", function (e) { window.LoadingPanel.Show(); }); After the Ajax call following code makes sure the loading panel disappears again: $(document).ajaxComplete(function() { if (window.LoadingPanel != null) { window.LoadingPanel.Hide(); } }); But in some cases I redirect to another page depending on the result of the Ajax call by setting the window.location.href. In ...

ادامه مطلب

check user is inactive show a popup and reset if he clicks on continue button javascript

Vote count: 0 Requirement : If user is inactive then show a popup after 5 minutes. and if selected continue session the timer will reset for this and again check for the same. If user haven't click any continue button then the page will refresh. asked 34 secs agoAnuj Sachan Let's block ads!...

ادامه مطلب

Checking if value already exists in two different sheets

Vote count: 0 I need a macro that works over different tables like this (lets call tem x y z): x ------------ a 0 b 1 c 2 y ------------ a 3 b 1 c 2 z ------------ a 3 b 1 c 2 and I need a results table like this (table is already made, just fill): x y z ------------ a 0 3 2 b 1 0 3 c 2 2 1 What do I need? When scaing tables, "a b and c" will be repeated. I need to print every result without creating in that column extra set of data. I don't want: x y z ------------ a 0 b 1 c 2 a 3 b 0 c 1 a 1 b...

ادامه مطلب

Batch file - check if package exists - if not install it

Vote count: 0 I'm trying to do simple batch script (cmd) that will check if required packages are installed, if not it will install them and then will call my command. I've managed to check if node is installed using: node -v >nul 2>nul if %errorlevel%==9009 ( echo Install node.js and restart this script goto :EOF ) now I'm trying to check if specific npm package exists. I'm able to display error when package is not installed using: npm list bootprint --depth=0 >nul 2>nul || echo bootprint not f...

ادامه مطلب

Javascript: how to check if all three variables are different?

Vote count: 0 I'm doing a website project for college and I want to display three pictures on website. There are 10 pictures stored in my folder (all named "slika 1 to 10" and the script has three variables, all of them randomly generate a number between 1 and 10 and then shows a picture "slika"+randomNumber. How can I check if all three variables are different so that those three pictures are always different whenever I refresh the website. JS code: window.onload=odaberiSliku; var broj1=Math.fl...

ادامه مطلب

How do I dynamically check to see if a remote font-icon exists?

Vote count: 0 I am using these Devicon font icons for various programming languages. They don't have every icon, but they have most. What I want to do is to have a default icon I use for the languages that this font library does not support. These are their instructions: So in my view, I have this: Where question.language is a user-submitted language on their question. Right now, when this generates a non-existent icon it just leaves a blank space there. But I am not quite sure how to check to s...

ادامه مطلب

Check if a Registry Class exists by Javascript

Vote count: 0 how to check if ComputerHKEY_CURRENT_USERSoftwareClassestg exists or not by Javascript (Supported by All Browsers). asked 1 min agoBottledTurtles Let's block ads!...

ادامه مطلب

VB.net Checking if database exists before connecting to it

Vote count: 0 I found the following query in order to find out if a database table was created already or not: if db_id('thedbName') is not null --code mine :) print 'db exists' else print 'nope' Now I am wanting to use that same query within my VB.net application. This is the code I currently have elsewhere that coects to the database (that I am wanting to see if its there before doing all this): Dim cn As SqlCoection = New SqlCoection("Data Source=DAVIDSDESKTOP;" & _ "Initial Catalog=thedbName...

ادامه مطلب

Checking if a sentence will fit a PDF box with javascript

Vote count: 0 My PDF will only support two lines (I predefined the dimensions of the input box on the PDF). Is there a way to check if user input on the front end will only make up to two lines on the PDF side? I tried to see if I could find character width lengths and then adding up the lengths of the characters the user enters, but that didn't go anywhere. asked 3 mins agoimonlyacontractor Let's block ads!...

ادامه مطلب

checking if number is even in JavaScript

Vote count: 0 For the life of me I don't understand why this doesn't work. It looks similar if not identical to many solutions i've seen. Clearly there is something i'm missing. If anyone would care to explain id appreciate it. var isEven = function(number) { if (isEven % 2 === 0) { retu true; } else { retu false; } }; asked 1 min agoDane Christian This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fi...

ادامه مطلب

If statement to check if variable landed on 2 numbers out of 10

Vote count: 0 I tried this code, but I'm getting an error. What is an alteative to this? int chance = rand.Next(1, 11); if (chance == 1 || 10) { string win = "lose"; } This is in C# asked 39 secs agoAsubaba This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers....

ادامه مطلب