« first day (1772 days earlier)      last day (2330 days later) » 

 
3 hours later…
 
2 hours later…
 
1 hour later…
 
2 hours later…
7:35 AM
11 messages moved from GMTs
 
7:47 AM
25 messages moved from GMTs
 
 
1 hour later…
 
2 hours later…
 
1 hour later…
@Uwe oof, pretty bad q, imo. (no repro, no logic to mapping from input to output beyond title...) Jaap's answer looks good to me (based on what i can grok of the op's intent) surprised tibbles play nice with setDT
 
^- delete all by Natty
 
1:50 PM
1 message moved from PHP
 
6 messages moved from GMTs
 
1 message moved from JavaScript
 
2:08 PM
I got spam alerts for a message which apparently was moved here from the PHP room but then (I'm guessing) removed
no idea where to bring this up or even whether it needs to be discussed further
 
2:23 PM
Hello
I ma working on a program which calculates dot product of the vectors by using linked listimplementation
#include <iostream>

using namespace std;

struct node
{
int data;
int index;
node *next;
};
class linked_list
{
private:
node *head,*tail;
public:
linked_list()
{
head = NULL;
tail = NULL;
}
void add_node(int i,int n)
{
node *tmp = new node;
tmp->index = i;
tmp->data = n;
tmp->next = NULL;

if(head == NULL)
{
head = tmp;
tail = tmp;
}
else
{
tail->next = tmp;
tail = tail->next;
}
}
node* gethead()
{
return head;
}
};
void display(node *head)
{
while(head!=0)
{
cout << head->index <<" ," << head->data << endl;
My problem is in the main function while loop
 
nwp
@mwater07 Wrong room go here.
 
Thank you
 
6 messages moved from Lounge<C++>
 
 
1 hour later…
4:30 PM
Hello i am beginner in php

<script type="text/javascript" src="js/jquery-3.2.1.min.js"></script>
<a href="javascript:void(0)" title="<?php echo $row["id"]; ?>" onclick="updatedata(this);">Update</a>
function deletedata(obj)
{
alert(obj);
}
It alerts javascript:void(0)
I included jquery.
How to parse this obj in deletedata function?
 
1 message moved from JavaScript
 
 
1 hour later…
6:49 PM
fellas fellas fellas I hve a problem hopefully someone can help me:

var ControlArray = $("[GroupName=" + sender.getAttribute("GroupName") + "]");

I get an array of objects, what I'm trying to do is loop through and check .startsWith and based on the control i want to set the value.

Here is my code:

if (MentalHealth == "No") {
for (var i = 0; i < ControlArray.length; i++) {
alert(ControlArray);
if (ControlArray[i].startsWith("txt")) {
ControlArray[i].text == "";
}
else if (ControlArray[i].startsWith("drp")) {
 
1 message moved from JavaScript
 
fellas fellas fellas I hve a problem hopefully someone can help me:

I get an array of objects, what I'm trying to do is loop through and check .startsWith and based on the control i want to set the value.


var ControlArray = $("[GroupName=" + sender.getAttribute("GroupName") + "]");

if (MentalHealth == "No") {
for (var i = 0; i < ControlArray.length; i++) {
alert(ControlArray);
if (ControlArray[i].startsWith("txt")) {
ControlArray[i].text == "";
}
else if (ControlArray[i].startsWith("drp")) {
 
1 message moved from JavaScript
 
 
2 hours later…

« first day (1772 days earlier)      last day (2330 days later) »