Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17







JavaScript is a dynamic, object-based language commonly used for client-side scripting in web browsers. Recently, server side JavaScript frameworks have also emerged. JavaScript runs on nearly every operating system and  in almost every mainstream web browser.

Share tech news, updates, or what's on your mind.

Sign up to Post

What is the angular 2 version of this jquery code ?

$(this).parents().find('ul#breadcrumb').append('<li>Create </li>'); 

Open in new window


Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

In my Angular 4 application, I'm trying to get the data service I built to fetch and use this data in my blog-search component that uses Angular Materials to create an autocomplete input.

My project without node_modules is attached. However I don't necessary need a solution from my project, I just need a solution. Thanks
I need to find a suitable Geofencing API for an IOT project that I'm working on (either free or otherwise).  

There are supposedly some 3rd party API's available that support geofencing, and I need to find something that's fairly robust/capable.  I just don't exactly know where to begin, since everything I've come across so far appears to be IOS or Andriod specific .. which doesn't apply to what I'm doing.  

What I'm envisioning is something similar to the following (please forgive my pseudo code):

// Load CurrentLocation with the latitude & longitude of the most recent location of IOT Device1
Device1 = getLocation(Device1);  

// Defines a geofence in the geofencing service
Fence1 = APIcallCreateFence(Fence1, polypoint1, polypoint2, polypoint3,...);  

// Query the API to see if the given location is inside the specified fence
isInFence = APIcallQueryFence(Fence1, Device1);  

Open in new window

Can anyone here recommend a suitable API for this?  My preference is for PHP or Javascript based if it's a downloadable library ... but the language isn't important if it's an externally hosted API.

Thanks in advance,
- Yvan
We are facing issue in cluster. We have two nodes which are in Hyper V cluster. When my node fails, VM are not switching to other node. Today suddenly, my nodes went off and I could not access my ERP which is vm hosted on this node. I have checked logs found some rror related to network.Quoram drive is accessible. Kindly find the attached error log node in jpg format.

Product: Windows server 2012, Failover cluster
If you plan to create a web app or networking tool, you may be hesitated while choosing necessary tool to develop your software. Ruby on Rails and Node.js are the main candidates for this task, but which one is better? To make your decision, read our article to be confident in your right decision.
Thank you for looking at my question,

I have a php form to which the user keys data in some areas and scans qr codes in others. There is some javascript manipulation and/or input validation for most of the input text boxes - is the input value in the correct numerical range, breaking the scanned value down into component parts and writing the data to the appropriate fields, that kind of thing.

All of this functionality has been working as expected until I added some final validation  - jsValidate() - to the forms OnSubmit event at which point all previous functionality stops working. The code below shows the jsValidate() function commented out which enables the other functionality to work but as soon as I comment it back in the other stuff stops working again.

Why is the OnSubmit event overriding the other functionality and how do I prevent it get the two sets of functions working perfect harmony?

php form:
echo '<form name="AssUpdate" action="'.$action.'" method="POST" onSubmit="return jsValidate()">';
	echo '<input type="hidden" name="ProdnOrder" id="ProdnOrder" value="'.$ProdnOrder.'"/>';
	echo '<input type="hidden" name="Meter" id="Meter" value="'.$Meter.'"/>';
	echo '<input type="hidden" name="StageNo" id="StageNo" value="'.$StageNo.'"/>';
	echo '<input type="hidden" name="StageName" id="StageName" value="'.$StageName.'"/>';
	echo '<input type="hidden" name="TubeAssNo" id="TubeAssNo" value="'.$TubeAssNo.'"/>';
	echo '<input type="hidden" 

Open in new window


I'm using RadWindow to open a pop up page, but what I'm looking to do will be similar to using

I open a pop up, page, and from this page I have to open a another pop up over the existing window, this means calling the JS from the parent page, from the current opened pop up child page.

How can I do this?

In Sugar CRM 7.8, I have a custom filter that requires a date.  The canned "today", "tomorrow", et cetera ranges work great but not in this instance.  Therefore, I am left with selecting a date, which is fine if you want to edit the filter each day.  Our users do not, so I had to create the filter via PHP and set date.  This works but apparently requires daily Quick Repair and Rebuild (QRR).

My question is, does anyone know if you can customize the JavaScript for the list view of modules?  Specifically Opportunities.
I have customized other views (e.g., record or create) via JavaScript by placing {view}.js file in custom\modules\{module}\clients\base\views\{view} no problem, so figure it would be as easy as custom\modules\Opportunities\clients\base\views\list\list.js but did not work.  I used extendsFrom:'RecordListView' if that is what was wrong.

If anyone successfully has done this, please let me know what I am missing otherwise I guess I'll have to stick with the PHP customization.

Thank you in advance!

Respectfully yours,


See the grey border around the document (circled in red)?  How can I get rid of it?

I think the border might be part of the styling for the linked google document I have embedded in the webpage.  So I need to wait to attempt the removal until AFTER the embedded page has completed loading.

Could use some help.  I am thinking about a jQuery solution and prefer that.

grey border kill
i want to communicate with spotify api , and i am using Implicit grant ( cause it is client side only). i send the request and it uses the redirect url to give me back an access token. the issue is that the returned url uses hash like so ( from their site) :

so when it comes back, angular very fast remove the part after the hash. so i cannot use the access token to continue and interact with the api.

how can i handle the redirect so i will have access to the access token?
New benefit for Premium Members - Upgrade now!
LVL 10
New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Hi experts, I wish to get the time format that would look like this, 09-24-2017 5:20:10 am. I used the code below to achieve the date format which I wanted to appear but I want to include the time as shown format above (09-24-2017 5:20:10 am). Any help please!

function getThedateAndTime()
		var d = new Date();
		var realDate = convertDate2(d);

Open in new window

function convertDate2(arg)/*cd17*/
	var a=Date.parse(arg);
	var b=new Date(a);
	var day=b.getDate();
	var month=b.getMonth()+1;
	var year=b.getFullYear();
	var stringDate=month+'-'+day+'-'+year;
	return stringDate;

Open in new window

Can I have one MODAL with several buttons and just change the MODAL-BODY ? Right now I have :

     <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal">Q & A</button>         

    <!-- Modal -->
  <div class="modal fade" id="myModal" role="dialog">
    <div class="modal-dialog modal-lg">
      <div class="modal-content">
        <div class="modal-body">
                            <p>This is a test</p>
        <div class="modal-footer">
          <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>

But I would like to have that same modal, and then be able to send the modal-body according to the button that was pressed. I want to do this to avoid writing a modal per button (coding would be too long and I just want to modify the modal content.
Ex, Button 1 - modal this is button 1 content
Button 2 - modal this is button 2 content
Button 3 - modal this is button 3 content
hello, the current CF code causes the browser pop up blocker. I would like a workaround such that either a new window opens or the same browser page opens the new url. I have tried cflocation too but to no avail. Thanks for helping, Clifford

<cfif IsDefined("form.btnSubmit")>
   <cfif IsDefined("form.departure")>

        <cfset depDate = parsedatetime(form.departure, "dd MMM yy")>
        <cfset arrDate = parsedatetime(form.arrival, "dd MMM yy")>
        <cfset arrString = DateFormat(arrDate,"d.m.yyyy")>
        <cfset nights = DateDiff("d",arrDate,depDate)>
<SCRIPT LANGUAGE="javascript"> ('https://xxx/inquiry.aspx?date=<cfoutput>#arrString#</cfoutput>&nights=<cfoutput>#nights#</cfoutput>&rooms=<cfoutput>#form.txtRooms#</cfoutput>&adults=<cfoutput>#form.txtAdults#&child=#form.txtChild#</cfoutput>&promotion=', );
<!---      <cflocation url="https://xxx/inquiry.aspx?date=<cfoutput>#arrString#</cfoutput>&nights=<cfoutput>#nights#</cfoutput>&rooms=<cfoutput>#form.txtRooms#</cfoutput>&adults=<cfoutput>#form.txtAdults#&child=#form.txtChild#</cfoutput>&promotion=" addtoken="no"> --->
      <cfparam name="form.txtAdults" default="2">
      <cfparam name="form.txtRooms" default="1">
      <cfparam name="form.txtChild" default="0">
      <cfparam name="form.txtCode" default="">
I have a javascript that I need to update.

I need a second similar for line 2, <input type="text" id="myText" value="Manager's Name"> to be <input type="text" id="myText" value="Phone number"> to be entered in the bold area below.

With line 9,     document.getElementById("demo").innerHTML = "the transaction will be completed by " + x + " at 1pm.";

Updated to     document.getElementById("demo").innerHTML = "the transaction will be completed by " + x + " at 1pm. Call <insert second value> to confirm by 3pm.";

The code is as follows:

<h3>A demonstration of how to access a Text Field</h3>
<input type="text" id="myText" value="Manager's Name">
<p>Click the "Try it" button to get the text in the text field.</p>
<button onclick="myFunction()">Try it</button>
<p id="demo"></p>
function myFunction() {
    var x = document.getElementById("myText").value;
    document.getElementById("demo").innerHTML = "the transaction will be completed by " + x + " at 1pm.";

Open in new window

I have a javascript code from w3schools, where text entered in a textbox is presented as an output, once the "Try it" button is selected.

I need the code modified so the output can be inserted into a html text. The html text example would be "the transaction will be completed by <insert output from text box> at 1pm.

The code and source are listed below.

<h3>A demonstration of how to access a Text Field</h3>

<input type="text" id="myText" value="Some text...">

<p>Click the "Try it" button to get the text in the text field.</p>

<button onclick="myFunction()">Try it</button>

<p id="demo"></p>

function myFunction() {
    var x = document.getElementById("myText").value;
    document.getElementById("demo").innerHTML = x;


Open in new window

Sharepoint version is : 2013 Enterprise server with SP1  15.0.4571.1502
Jquery versions tried : 1.5.2, 1.7.2, 1.10.2
jQuery deployed globally using THIS Method of deploying a delegate control.

Without the feature activated, sharepoint works perfectly as expected in every aspect.  Activate the feature, so that jQuery is loded on the page, and sharepoint does all kind of weird things like...
Go to feature management and you can no longer deactivate any feature.

f12 into browser debug mode and the reult of just activating the jQuery feature and then refreshing the page casues all of the following...

chrome console log of errors
Google has been of little help and I have given up banging my head for one day.  Anybody have any clues?

This is also the exact same result if I just create a new master page and add a link to the jQuery via the  <!--SPM:<SharePoint:CustomJSUrl runat="server"/>-->  method.

This is my first question on Experts Exchange! Before I get to the issue, here's my goal: I'd like to be able to display a list of files inside of a folder from Google Drive. These files should be downloadable by the user without signing in.

To accomplish this, I'm going through the docs at I've copied/pasted the "Hello World" application and it's asking for a developerKey and clientID. I've plugged in my clientID, but I'm getting the response The API developer key is invalid. The app is stating I need to enable the Browser API. However, when I look for the Browser API in the console, I can only find Google Safe Browsing API. Is the Browser API no longer available?

If there's an easier/better way to accomplish this, please let me know! Thank you for your help.
Hi ,

I am creating a simple component in Angular 4

-my-account  // angular project folder
----account  // angular component folder

//css , js , images are folders I created and put files.

Now I want to use css files from the above css folder in account.component.html.  How do I access ?

Here is my non working code

 <Link href="css/datatables.min.css" rel="stylesheet" type="text/css"/>
 I'm getting error
 zone.js:2744 GET http://localhost:4200/css/datatables.min.css 404 (Not Found)

please note this file is already present in css folder.
Do you have any suggestion how to access css files in component html   ?  what is the proper way to fix ths issue ?
Need help
I am trying to pass a date to my date field in my SharePoint list.  I have to make sure it's not null or undefined first.

Can somebody please tell me why the following below alerts to false?

var StatusDateOfLastModStatusChange='undefined';

alert(((checkForNull(StatusDateOfLastModStatusChange) === null || checkForNull(StatusDateOfLastModStatusChange) === 'undefined')));
alert(((checkForNull(StatusDateOfLastModStatusChange) === null || checkForNull(StatusDateOfLastModStatusChange) === 'undefined')) ? "N/A": parseDate(StatusDateOfLastModStatusChange));

alert((checkForNull(StatusDateOfLastModStatusChange) == 'undefined'))

Open in new window

Here it is in fiddle
Important Lessons on Recovering from Petya
LVL 10
Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

I want to have the effect to disable further update (like to show gray background color), to whole page, when it's being idle for a while, by these

        .overlay {
            background: #e9e9e9;
            display: none;
            position: absolute;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
            opacity: 0.5;
$(function () {
    // 1000ms=1s, here test use 10s, you could modify. 
    var time = 5000;
    var set = setInterval(function () {
    }, time);
    <div class="overlay">
        <div id="loading-img">

Open in new window

but I cannot get what I want, below

what to adjust?
And what is Semantic Versioning?

I am a .NET Full Stack developer with UI experience, but little on Angular.

What's the best version to learn?

I want to learn that to maximize my value in the job market.

Can u please send me the code. For storing pdf data as Data base after submit it.

Hi, I have a page that's dynamically created.

 I can't just change one of the URLs on the page, since they're created from a single block of code.

But I'd like one of those links, the one that says, "Build your own Package or Add to your Order" to redirect to another category page, /menu/thanksgiving-extras.html.  Can I redirect based on a phrase using jquery? Lik: if anchor text contains word Build, redirect to...

Hi Expert

we have around 20 of ESXI servers with around 400 VMs

we need to buy VEEAM

my question

we are going to backup to disk let us say to NFS or CIFS and we need also to backup to tapes

but what type of tape library we have to buy if we don't want to use fiber

can we backup from our ESXI server using  VEEAM to tape without any other server to work as storage node or something like this

can we avoid using fiber interface and fiber switches

kindly advice






JavaScript is a dynamic, object-based language commonly used for client-side scripting in web browsers. Recently, server side JavaScript frameworks have also emerged. JavaScript runs on nearly every operating system and  in almost every mainstream web browser.