SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Evangelist borna's Avatar
    Join Date
    Jun 2006
    Location
    Iran, Tehran
    Posts
    475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Cool simpler href's must be operated sooner!

    sometimes simple href
    Code:
    <a href="javascript:history.back(1)">Back</a>
    or
    Code:
    <a href="index.jsp">Home</a>
    takes an almost long, about 5 seconds for loading or even so, to operate.

    Could you tell me of the reason and also of possible different suggestions.
    -1/2=999?

  2. #2
    SitePoint Wizard rozner's Avatar
    Join Date
    Oct 2002
    Location
    Paris
    Posts
    1,058
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    the Javascript way is using the browser's cache and processing is done on the client side, although may not always work properly depending on what the site is doing.

    the second way is starting the request all over again from the server

    Theoretically the second way will take longer but is more reliable.

  3. #3
    SitePoint Evangelist borna's Avatar
    Join Date
    Jun 2006
    Location
    Iran, Tehran
    Posts
    475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    while I try
    Code:
    doLogin?actionType=logout
    it works in mili seconds. I may implemet such command for refering to my index.jsp page. sth like
    Code:
    doLogin?actionType=firstpage
    and write some code to redirect to that page. What do you think?
    -1/2=999?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •