Skip to content

How to link table row to external URL with Javascript?

I my app I have a table like this: This is my Javascript: How come that clicking on Link 1 takes me to www.external.com (which is what I want) but clicking on Link 2 takes me to /entry/57/edit (which is not what I want)? I want both links to take me to www.external.com. How can this be done? Answer As

HTML page is not showing the info I need from json file

My script, this should be showing the Name of game computers in html but it does not, I have been trying so much andI betit will just be something stupid that is wrong or missing Console says : TypeError: data is undefined The console does show me retrieving the data works My function to show data on screen (…

get the data from the datatable on click

How to get the data object on click the cell.I have created the table and used datatable.I want to get the geography and customer type from the cell click I have tried as my table id is table and I got the response as below in console for console.log(data1); Answer If you add a click event on td and click

Cannot enter array values into graph

I am using Rgraph to general a line chart. I am trying to enter values into the chart with Javascript. here is the routine.. if I use the data as used all is fine. But if I use dta then I do get get a result. Answer After adding my previous comment I’ve been playing with this and you can

switch statement not working in javascript

I am experiencing an issue where a javascript function, is getting a var selectedMonth which is a string, and the alert dialog is showing the value of the string but for some reason the switch statement is not working. I am experiencing this issue on page load, it does work with <select> onchange listen…

Trying to implement isRepdigit() Algorithm in JS

I am pretty new to the Javascript environment. I think one of the most important ways, in order to be good at it, is practice. So I am trying to create a kind of algorithm that detects the number if it has repeated digits. The algorithm I trying to create should work like below, Turn the number into a string