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

Hi Experts,

Using JS how can i Reload tthe same page without Query String
Free Tool: ZipGrep
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

A past IT person has enabled Windows Power Shell scripts (with .PS1 extensions) to run with full unrestricted access on an organization's Windows 10 computers.

None of these computers are added to a domain.

What is the best method to use to disable these Power Shell scripts so that they will no longer be able to run?

We don't want to take any chances with viruses or malware exploiting this security hole.
I have a web part page displaying 5 web parts. Four of the web parts (Efforts, Phases, Capture Points & Areas) are "provider" web parts, and come from lists that are the sources of 4 lookup columns in the 5th "consumer" web part (Lessons Learned).

The provider web parts are displaying the Title column from the lists.

The Using Javascript/jQuery, I "connected" the 4 provider web parts to the consumer web part, such that when you click on a Title column value, the consumer web part is filtered to show only those records that have the clicked value in the relevant metadata column.

All that is working very nicely.

Now, my requirement is to go one step further, and display the number of items that will be displayed if you click on a Title column value in any of the 4 web parts. If there are none, a "0" should be displayed.

I've constructed a lists service query that successfully returns the number of items that exist for a given, hard-coded, metadata value:
[SiteURL]/_vti_bin/listdata.svc/[ListName]/$count?&$filter=Effort/Title eq 'AAA'

So, the goal is to display such an item count beside the corresponding provider web part value, such as:
Efforts web part:
AAA (10) //assuming there are 10 items in the consumer web part tagged with Effort 'AAA'

Now, I'm bumping up against the current limit of my abilities.

I know that I need code (javascript, rest, ajax, json) for each provider web part with looping to cycle through all of the TD cells that have …
I need to put a share button on a page but the place I need to put it can only have html no javascript.

Is it possible to do a share link that works like :

But does not require me to include the u= and it gets this information from the referring page?

On this page:

I have the button "Add Flight" and it clones the input you see there, the issue is that the name of the fields are:


Open in new window

When cloning I need the com0 to increase to com1, if cloned again then com2 etc...
Oh men,
Im wondering it is a free plugin or some calendar for  an consulting room apointment
its any idea or recomendation if its for free or open source better
I am using javascript on frevvo.
How can I find cell value when a row is clicked on a table.

Before the Gridview at the bottom I need a button to add a new record but I can not figure out the html to make it work.

<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Admin.aspx.cs" Inherits="Test.Admin" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <script type="text/javascript" lang="javascript">
        $(document).ready(function () {

            //Initialize the Account Termination Date datepicker
                format: 'MM/DD/YYYY',
                useCurrent: false,
                minDate: new Date(),
                maxDate: new Date().setYear(new Date().getFullYear() + 1)
            //Initialize the BootGrid
            $(function () {
                $('#<%= grdAdmin.ClientID %>').bootgrid({
                    caseSensitive: false,
                    formatters: {
                        "commands": function(column, row)
                            var buttonText;

                            buttonText = "<button type=\"button\" class=\"btn btn-xs btn-default command-add\" data-row-id=\"" + row.ID + "\"><span class=\"fa fa-camera\"></span></button>" +
                                "<button type=\"button\" class=\"btn btn-xs btn-default command-edit\" data-row-id=\"" + row.ID + "\"><span class=\"fa fa-pencil\"></span></button> " +
Is there an easy way to detect which browser a user is using to access my website? I suspect that I should need to use JavaScript but I'm not sure where to start.

Thanks for any help you can send my way.
To this site

I want to decrease the width of the highlighted area (in red), and increase the width of the area (highlighted in yellow), and to put two more buttons (under current Delete button). Can you please show me the change for these?
Independent Software Vendors: We Want Your Opinion
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

              how to get client name, ip and os name in apex item level
<div class="panel panel-default">

<div class="panel-body">

<form action="/action_page.php">

<div class="form-group">
    <label for="productType">Product Type*</label>
    <select class="form-control" id="productType">

<label for="purchasePrice">Purchase Price*</label>
<div class="input-group">
  <span class="input-group-addon" id="purchasePrice">$</span>
  <input type="text" class="form-control" aria-describedby="purchasePrice">

<label for="downPayment">Down Payment*</label>
<div class="input-group">
  <span class="input-group-addon" id="downPayment">$</span>
  <input type="text" class="form-control" aria-describedby="downPayment">

<label for="state">State*</label>
<div class="form-group">
            <select class="form-control" id="state" name="state">
                  <option value="">N/A</option>
                  <option value="AK">Alaska</option>
                  <option value="AL">Alabama</option>
                  <option value="AR">Arkansas</option>
                  <option value="AZ">Arizona</option>
                  <option value="CA">California</option>
                  <option value="CO">Colorado</option>
                  <option value="CT">Connecticut</option>
                  <option value="DC">District of Columbia</option>
                  <option value="DE">Delaware</option>
                  <option value="FL">Florida</option>
                  <option value="GA">Georgia</option>
                  <option value="HI">Hawaii</option>
                  <option value="IA">Iowa</option>
                  <option …
What exactly is the difference between a Web Framework, Web Server vs Javascript Frameworks?
Using Access 2013. and I.E. 11 . This does not happen when copying from Chrome, but company policy is we need to use I.E. 11
There was a recent change company wide to add a line break on email addresses using the following code on internal web pages.

function formatEmailForWrapping(string) {
      var newString = string;
      newstring = newstring.replace(/[@]/, "@<wbr />")
      newstring = newstring.replace(/[_]/g, "_<wbr />")
      return newString;

It is not an option to change back to the old format therefore we must fix this in Access. We need to find a way to clean the email address. it's being pasted in the form it looks fine. But when it's saved and displayed it has "? next to the "_" and the "@" along with other garbage with seems invisible. I tried a VBA replace of the "?" but that did not work.

Does anyone know the correct code to look for to clean out the line break? Or has anyone had this issue before and have a fix.

If the address being copied is it is saved as  my_?name_?here@?

Thanks in advance
I have written a regular expression to capture an email address from a specific zone on a page using a software application.
The application will then send a copy of the document to that email address.
I have come across two problems. First is that email addresses can contain numeric values as well as text. Problem solved by adding 0-9 in the regex.
Second issue is that some of the documents have more than one email address separated by / (forward slash).
Is there an easy way to find the / and stop returning any further email addresses?
The first address will always be the one I need.
Thanks in advance,
Hey folks. Web design and css is not my day job, more of a side hobby. That said I've been working iteratively on my site for a while now, and have worked myself into a corner when trying to make the site mobile friendly.

Overall I've had pretty good luck taking a two-column dynamic layout I tracked down a few years back and adapting it to mobile. I achieved the dynamic sizing for web with some nested divs that by necessity have a greater width than the window and need to be hidden, though.

On mobile, this only works if I assign overflow-x:hidden; to html,body. If I follow proper procedure and assign it, or the website scrolling setting, to document.body instead (or any other combination therein), the smooth scrolling is broken. I like the smooth scrolling, so even though it cost me the function of tapping the time bar to move to the top of the page, I went with it. It worked, right?

I accepted this compromise until I started to go further and taking my sidebar menus and try to make them fixed position nav menus for mobile. Even that worked fine until I created a logobar that would pop in upon scrolling away from the top of the page. The same compromise that broke "tap to top" has broken any JQuery scrollTop functions I tried to include, on mobile, using a simple enough technique I found here.

Now I have the choice, make any change at all to this css and lose smooth scrolling and gain my logobar and tap to top: as seen in test page 1
I am trying to retrieve, clientside, the contents of  ComboBox  ComboBox1 in the page_load section of a Webform Page of a client application. However the value being returned from the JavaScript function check_ComboBox  is "undefined". Before calling the function I am checking that ComboBox1.SelectedValue has a value. Can anyone explain what I am doing wrong in code below

<cc1:ComboBox ID="ComboBox1" runat="server" AutoPostBack="false" onSelectedIndexChanged="ComboBox1_SelectedIndexChanged4">

Open in new window

This is where I call the JavaScript function
 if ComboBox1.Items.Count >= 1 && !String.IsNullOrEmpty(ComboBox1.SelectedValue))
                      ClientScript.RegisterStartupScript(GetType(), "Javascript", "javascript:check_ComboBox(); ", true);

Open in new window

function check_ComboBox() {
        var sel = document.getElementById("ComboBox1").Value;
        var selected_text = "";
        if (sel != null)
            var i = sel.selectedIndex;
            var selected_text = sel.options[i].text;
       return selected_text;

Open in new window

I have this function 'loadSong' that I got from an example on the net. It works fine.

I now want to make 'songName' assigned the value retrieved from a QueryString, such as

How can I do that please?

This is a Node.js application I have running on my local machine where I am testing. Eventually it will be on a Node hosting plan (Heroku).


function loadSong(songName) {

    // This function builds the current
    // song and resets all states to default (zero muted and zero solo lists, all
    // volumes set to 1, start at 0 second, etc.)
    currentSong = new Song(songName, context);

// I NEED THE VARIABLE songName to be the value of a querystring. For example, from
// localhost:3000?songName=Imagine


    var xhr = new XMLHttpRequest();'GET', currentSong.url, true);

    xhr.onload = function (e) {
        // get a JSON description of the song
        var song = JSON.parse(this.response);

        // resize canvas depending on number of samples

        // for eah instrument/track in the song
        song.instruments.forEach(function (instrument, trackNumber) {
            // Let's add a new track to the current song for this instrument

            // Render HTMl
            var span = document.createElement('tr');

Open in new window

I have a very simple JSON feed and have been able to parse the feed using the below code. However, when the script gets to the "OFFERS" structure, it won't output the results cause it sees the brackets [ ] and is treating the data as a LIST of objects under OFFERS instead of objects like they would be under normal braces { }. I don't know how to get Coldfusion to properly give me the subitems of OFFERS.  You can easily see the feed using the link I provide also.

	<cfhttp url="" result="httpResult" charset="utf-8" method="get"/>
 	<cfset BITdata = deserializeJSON(httpResult.filecontent)/>
	<cfloop array="#BITdata#" index="post">
		<cfif StructKeyExists(post, "datetime")>
			<cfset event_date = post.datetime>
			<cfset event_date = "">
		<cfif StructKeyExists(post, "venue") and StructKeyExists(post.venue, "name")>
		    <cfset ev_title =>
            <cfset ev_title = "">
		<cfif StructKeyExists(post, "venue") and StructKeyExists(post.venue, "city")>
			<cfset city =>
			<cfset city = "">
		<cfif StructKeyExists(post, "venue") and StructKeyExists(post.venue, "region")>
			<cfset region = post.venue.region>
			<cfset region = "">
		<cfif StructKeyExists(post, "offers[url]")>
		<cfset tickets = post.offers[url]>
		<cfset tickets = "">

Open in new window

Free Tool: Site Down Detector
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

I'm using one of the free Wordpress themes 'SELA'.

On this page I want the lower iFrame (the multitrack player) to extend across the page. At the moment it is restricted, even though the page template is called 'Wide Page'. The width of the iFrame is set to 1200px.

These seems to be a restriction on the theme that prevents a full width iFrame. How can I get round that please?
Hi Experts

Could you point how to workaraound this jquery error Uncaught Typerrror: Object values is not a function, acordingly with this code?

This code perfectly runs under most of the browsers:
    $('#last_operation').click(function () {
        // This perfectly returns an object
       	$.get("operation/syncronize_date", function(response){
            var dia_ultima_operacao = Object.values(response)[2];
            var usuario_ultima_replicacao = Object.values(response)[3];
            $("#ultima_operacao").val(usuario_ultima_operacao + " / "+ dia_ultima_operacao);


Open in new window

But in an server's browser it simply returns the jQuery error.

Could you sugest a workaround code?

Thanks in advance.
I'm trying to understand how this works so that I can make a few small tweeks.

When the page opens a dropdown list is populated, and a song selection can be made.
I can see that a Function loadSong(songName) { ...} is fired off at that point. (it is in sounds.js)

I have found that I can force the song by doing this on line 342
currentSong = new Song("Londres Appelle", context);

Open in new window

"Londres Appelle" is a song in the demo list.

My question is, would it be possible to force a 'song' in this function by using a URL parameter?
eg."Londres Appelle"

My background: JavaScript and Node.js newbie. Worked extensively with Classic ASP and VBScript back in the day  (2001-2003). I understand using QueryString to pass a variable to a page, but I don't know if I need to think differently in Node.js.


Javascript code for tracking which was incorporated into Joomla installation through a Custom HTML module has no effect on Piwigo gallery. How visits to the gallery could be tracked, i.e. where the code goes in it?
I am building a registration form in node.js using mongoDB.  When I submit my form, it shows blank.  Any ideas?

Here's my code.

vendor.js in my models forlder
//Create model for vendor
const mongoose = require('mongoose');
const Schema = mongoose.Schema;

//Schema for vendor
const vendorSchema = new Schema({
  firstName: String,
  lastName: String,
  phoneNumber: String,
  email: String,
  description: String,
  businessName: String

const Vendor = mongoose.model( 'Vendor', vendorSchema );

module.exports = Vendor

Open in new window

vendor.js in my routes folder
const express = require('express')

const Vendor = require('../models/vendor.js')

const vendorRouter = express.Router()

//define Routers
//url: Localhost:3000/vender/registration
console.log("Vendor Router")

vendorRouter.get('/', (req,res) =>{
})'/thanks', (req, res) => {
  let newVendor = new Vendor({
    firstName: req.body.firstName,
    lastName: req.body.lastName,
    phoneNumber: req.body.phoneNumber,
    description: req.body.description,
    businessName: req.body.businessName

vendorRouter.get('/thanks', (req,res) =>{

vendorRouter.get('/forgotpassword', (req, res) => {

module.exports = vendorRouter

Open in new window

img dir
Here's how I know blanks are coming in.  Table is populated but noting is showing
Here's the page using handlebars
<table id="tblArtist" class="display" cellspacing="0" width="100%" border="1">
    <th>First Name</th>
    <th>Last Name</th>
		<th>Phone Number</th>
{{#each vendors }}
    <td>{{ firstName }}</td>
    <td>{{ lastName }}</td>
    <td>{{ phoneNumber }}    </th>
    <td>{{ email }} </td>

Open in new window

I'm creating a new object like this:
function Car(type) {
  this.type = type; = "sports"; 
var favoriteThing = new Car('Corvette');

Open in new window

This works fine.  I need to do something like this though:
var favoriteTypeOfThing = "Car";
var favoriteThing = new favoriteTypeOfThing('Corvette'); // new Car('Corvette');

Open in new window

I know this doesn't work, because favoriteTypeOfThing is a string.  How do I pull this off?

(FYI: I'm limited to ES5, so I can't uses class/constructor.)






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.