Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
  • Aug 17 09:32
    User @bjorno43 unbanned @linkin-park
  • Jun 20 21:19
    @bjorno43 banned @shenerd140
  • Apr 25 17:13
    @mstellaluna banned @cmal
  • Jan 08 22:05
    @mstellaluna banned @dertiuss323
  • Nov 07 2018 04:42
    User @texas2010 unbanned @ows-ali
  • Nov 02 2018 16:25
    @texas2010 banned @ows-ali
  • Oct 12 2018 05:50
    @bjorno43 banned @NACH74
  • Oct 05 2018 23:02
    @mstellaluna banned @JomoPipi
  • Sep 16 2018 12:21
    @bjorno43 banned @yash-kedia
  • Sep 16 2018 12:16
    @bjorno43 banned @vnikifirov
  • Sep 05 2018 08:12
    User @bjorno43 unbanned @androuino
  • Sep 05 2018 07:38
    @bjorno43 banned @androuino
  • Aug 23 2018 16:57
    User @bjorno43 unbanned @rahuldkjain
  • Aug 23 2018 16:23
    @bjorno43 banned @rahuldkjain
  • Jul 29 2018 14:13
    User @bjorno43 unbanned @jkyereh
  • Jul 29 2018 01:00
    @bjorno43 banned @jkyereh
  • Jul 10 2018 22:09
    @bjorno43 banned @manafn
  • Jul 06 2018 15:20
    @texas2010 banned @imlegend19
  • Jul 03 2018 12:28
    @bjorno43 banned @vbvmatta
  • Jun 29 2018 13:54
    @bjorno43 banned @OGTechnoBoy
Darth Skywalker
2) I see some Angular JS things in your page!
and still you're using jquery
i am not good at angular :(
so certain things must be done using jQuery.
Darth Skywalker
@cityproject lol. With Angular, this will be a piece of cake!
anyway, let's solve your log out button problem first
i thought that, replacing login button with logout button can be done using html tag
so yeah
Darth Skywalker
Put this at the end of your template
<div><button id="logout" style="display:none;">Log Out</button></div>
and your ajax

      url: '/api/users/login/',
      error: function(response){
        alert('Not authorized.');  // Or something in a message DIV
      success: function(response){
oh yrah
why didn't i think of this solution?
Darth Skywalker
You wnat to solve it using Angular way?
if that's more seamless yes
Darth Skywalker
It's seamless for everyone :D
do you have any angular code already?
ah yes. i have one for displaying the contents.
Darth Skywalker
Share that code
let's modify it
Darth Skywalker
What directive is for login?
login's just ajax
Darth Skywalker
does that code belong to posts.html?
the html code i mean
you can try with test, test1234 for id and password each
login's inside the index.html
the angular js code has two templates
post.html and posts.html
i have to leave my room for 15 minutes though :(
Muhammad Sirajuddeen
Let's continue mark. Post ur questions
Come back let's try
Dariusz Biskupski
Hi all, I wonder if anyone can help me understand why a bunch of divs position: relative is overlapping my top navbar positioned as fixed
Muhammad Sirajuddeen
Try this
<div id="nav"><!-- here u put your options --></div><script>
position : relative;
top :0%;
height :100px;</script>
Hi Dariusz ,try this and lemme know.
and I'm back.
Dariusz Biskupski
I haven't added script to html yet, I have <header class="navbar">...</header> ... I put this script underneath but didn't help:(
Norvin Burrus
@Visiona are you using nested divs?
Muhammad Sirajuddeen
Send me ur navbar properties
Vishal Bansal
hi all...i need help with Random quote machine...
anybody can help?
hello does anybody know about some recent changes in openweahtermap api, I just realised my project has stoped working, ajax call is suddenly returning an error
@d1sr3 i'm assuming you're on chrome
in which case, chrome stopped allowing html5 location to be transmitted over http (requires https)
you could get location via ip and it would still work in chrome but not be quite as accurate @d1sr3