« first day (3347 days earlier)      last day (1584 days later) » 

12:56 AM
navigator.permissions.query({name:'geolocation'}) doesn't work on safari iphone, what are my options rather than prompting for permission each time the page loads?
 
@テストやろう Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
 
2 hours later…
2:33 AM
Would anyone like to beta my app when I am done? You need either an iOS device (iPhone/iPad/iTouch) or a Mac that has text messages on it (imessage or sms is fine).
 
ABC
2:51 AM
How to bind the formControlName and the ngModel?
I got an error which is the

ERROR TypeError: Cannot assign to read only property 'id' of object '[object Object]'
 
Hello guys
 
@abcdef Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
Maybe someone help me with stackoverflow.com/questions/59328466/…
I don't know how to properly associate cookies with jQuery
 
ignore the auth part
457
A: Get cookie by name

kirlichOne approach, which avoids iterating over an array, would be: function getCookie(name) { var value = "; " + document.cookie; var parts = value.split("; " + name + "="); if (parts.length == 2) return parts.pop().split(";").shift(); } Walkthrough Splitting a string by token will produce ...

use the functions there ^
 
Thank you, I am using github.com/js-cookie/js-cookie
 
3:04 AM
also don't use cookies
no need
use local or session storage
 
The problem is cookie element is in different format
 
|| mdn localStorage
 
|| mdn sessionStorage
 
3:05 AM
read those two links
 
ABC
Good Day
 
Yes thank you JBis
But the problem is different
Take a look if you have a while stackoverflow.com/questions/59328466/…
 
ABC
can anyone help me
 
    console.log(Cookies.get('active_index_tab') );
    console.log(this);
output different thing
So idk exactly how to solve it, without make tons of ifs
 
ABC
https://stackoverflow.com/questions/59340908/how-to-bind-in-reactive-forms-which-is-the-formcontrolname-and-ngmodel-in-angula

can any know how to bind the formcontrol and ngmodel
 
3:08 AM
@abcdef wdym by 'output different thing'?
 
I set cookie depends onclick event
then i want to read it
but when i use get.cookie i got error
i put this to cookie
 
You can't put an html element in a cookie
(or local/session storage for that matter)
> Cookies.set('active_index_tab', this, { expires: 7 })
|| mdn document.cookies
 
Invalid command! Did you mean: cooking, coke, poke? Try help for a list of available commands..‍.‍.‍.‍.‍.‍.‍
 
Hmm
 
@abcdef Read the mdn doc for document.cookie
Cookies can only store strings
if its not a string, .toString will be called converting it into a string or error
 
3:14 AM
Yes i see
So there is no way
I need make if for every tab
?
assign a cookie onclick event
and then make if
cookie == "tab1" etc
 
sure
or just store the id of the tab and then
const tab = document.querySelector(`#${get_cookie_val()}`)
 
thank you
Please look
 
1 message moved to Trash can
@abcdef Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. Please separate code blocks from your actual question. Put your question in 1 message and then your code in a 2nd and format it. For posting large code blocks, use a paste site like like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
1 message moved to Trash can
@abcdef Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. Please separate code blocks from your actual question. Put your question in 1 message and then your code in a 2nd and format it.
1 message moved to Trash can
 
gmm
$(Cookies.get('active_index_tab')).addClass('at');
How can I add then
at class based on id
I need select div where id is
to add / remove class "at" for this div element
$('#' + Cookies.get('active_index_tab')).addClass('at');
like this
Solved
The problem is everytime i refresh the page
It jumps
from first tab
 
 
5 hours later…
8:34 AM
Hi
I always get [object Object]
$(document).ready(function()
{
 alert($("#traineroption option:selected".val));
 });
echo "<option id='traineroption'>".$row['Trainer_Name']."</option>";
}
echo "</select>";
 
8:47 AM
I find the solution
 alert($("#selectname").find("option:selected").text())   ;
 
ABC
9:04 AM
Hello, how to save a Dynamic form using *ngFor and submitting values
 
 
7 hours later…
4:01 PM
hi here anybody use debug?
 
 
1 hour later…
5:09 PM
@Webdev echo just doesn't exist in js fyi
 

« first day (3347 days earlier)      last day (1584 days later) »