Jump to content

jimfog

Members
  • Posts

    1,803
  • Joined

  • Last visited

Posts posted by jimfog

  1. It will be fine for SEO, the links still work and the ajax URLs have a hash to tell the server to send ajax instead of normal content.

    I do not quite understand that...the importance of a hash in the URL.

     

    Regarding the other comments...I understand... but how am I going to translate these into code...specifically how am I going to achieve transitions within this code context.

  2. I am following this ...http://code.tutsplus.com/tutorials/how-to-load-in-and-animate-content-with-jquery--net-26

    Concentrate on line 25 on step 5.

    The whole tutorial is about using ajax to load in content when a link is clicked...and the function on line 25 just adds an effect to it.

    The question:

    In the context of the code you see there could a page transition be applied....in the function I mention?The code accomplishes what I want...I just want to add a transition effect when the new content gets loaded.

  3. I am trying to follow this tutorial here http://smoothstate.com/typical-implementation.html

     

    A demo is here http://smoothstate.com/demos/typical/index.html

     

    It is a plugin about page transitions.

    And there is something I do not understand though....if you look into the css in dev tools you will see that the properties related to chrome(webkit prefix) have a strike-through line.

     

    Why that...?

     

    These are supposed to be there specifically for chrome....why then,do they have a strike-through line?

  4. What are my other options?

     

    There is a compelling reason not to use any platform(whether it is WordPress or anything else)...security.

     

    By using a well known platform an attacker might know its "holes".

  5. I want to create a blog section for my web app....nonetheless I have no idea from which parts it will be comprised of....

     

    For example it must have pagination...

     

    What frameworks/plugins are out there to help me in that respect...

     

    I do not use any platform (wordpress for example)...so that for example I can "attach" a plugin to it.

  6. I want to implement session timeout....my site has two different users and the timeout requirement is different for them.

     

    After a search I found that when adjusting session timeout....the time that the session will last..must also be set in session.gc_maxlifetime.

     

    If that is the case how am I going to accomplish this...since we are dealing here 2 different timeouts and session.gc_maxlifetime accepts only one value.

     

    How do you think I should deal the issue given the fact we are dealing with two different users with different timeout requirements.

  7. here is the source of my confusion:

    as I said this site has two types of users....a regular user and a business user....some pages are only for the first and some pages are only for the second...to view.

     

    Suppose now that the regular users is logged in(has ticked "remember me")....and then the business_user goes to access a page.

     

    Since the business user has not ticked the remember me option he will be redirected to the login page...and here is where the problem begins.

    This is the code in login.php:

     if(isset($_COOKIE['cookiename_reg']))//cookie related to the regular user       {     $username=checkcookie_reg($conn,true);//here the cookie is checked and if correct perform redirect     delete_cookie_token($conn,$username);//delete cookie     setcookie_pers($conn,$username,'regular_user');//create a new one      }      elseif(isset($_COOKIE['cookiename_buz']))//cookie related to the business user      {     $username= checkcookie_buz($conn,true);     delete_cookie_token($conn,$username);      setcookie_pers($conn,$username,'buz_user');      } 

    Since the regular user is already logged in...the first if statement runs and t business user is presented with regular_user_member.php

     

    So I was confused by the above fact...until I realized that in the real world the regular users's machine will be different from the business_users's machine

    Unless the reason for the above behavior is something else...

     

    What do you think?I am just afraid that I miss something....maybe...I do not know.

  8. If they have ticked the remember me option...then of course they will be able to go in whatever page they want without entering their credentials..

     

    That means...put such code in every page...which to leads to my current...problem...testing for session and/or remember me cookie seems to be non-trivial...especially if the site has two type of users(as in my case)...

     

    I am trying to think the conditionals combination that will do the work here....

  9. Suppose the user has ticked the remember me option and comes back to the site...at which point I create a new cookie for him.

     

    Of course there must be a check first IF a cookie has been set....so as to automatically login the user.

     

    Question:

     

    Code that checks the existence of coookie...should it be present at every site page?

  10. Take a look at this code....

       var_dump($_POST['email']);     if(($_POSΤ['email']))         {       var_dump($_POST['email']);         } 

    The above code is found in a script which accepts ajax requests from a form...one field of which is the e-mail....

     

    The strange part:

    While vardumping $_POST['email'] gives the value of it...

    Inside the IF statement the same variable gets to be undefined...how can that be?

  11. yes I found it thanks...

     

    The only thing that puzzles me is why despite the fact I had set a mouse click breakpoint(in dev tools)...this did not led me to connect.js.

    Connect.js did not appear on the call stack

     

    It only led me to the code in the HTML(onclick handler on the a tag.)

  12. go to this site https://taxibeat.com/...click the contact link...you will see a modal appearing from the top.

     

    My question is how this modal is produced...is it part of a library...and if yes...which library?

     

    I used devtools to track the code...and the only thing I saw that a method(modal.open) is called upon click event...

     

    Apart from that I have not managed to gather other info regarding it...

     

    I just want to implement the same effect on my site...thanks.

  13. The "session" used by session_start() is not the same as a user's login session. The session is simply a way to have the same variables available on multiple pages, whether they're logged in or not, you need a session to remember things.

    I do not understand...what exactly is the session used by session_start()....in contrast with the user's login session.
  14. I qm trying to implementin forgotten password functionality...as such i have some questions.What hash function should i use for creating the token?Do you append the token to an url where the use must click?...and this url is sent with e-mail of course.How do you check that the user has already clicked the link?Do you use a dedicated table for storing token and its expiry date...apart from these what other would you store in such a table?I do not want to ask other questions for now... Thanks

×
×
  • Create New...