+ Reply to Thread
Results 1 to 2 of 2

Thread: [Javascript] Protected Pages

  1. #1
    secretply is offline x10Hosting Member secretply is an unknown quantity at this point
    Join Date
    Sep 2008
    Posts
    50

    [Javascript] Protected Pages

    I am fairly done with the password protected pages that I have done from yesterday. What I have is a link that will open a popup window showing the protected page then requires the user to enter a password to access another page from that javascript. Alright, I have the enter password to another page down and working but before that I have a little issue. I used this code to open another window:

    Code:
    <a href="javascript:newWin();" onclick="newWin(); return false;>
    Here's the issue, when clicked it does show the javascript in a new window BUT when the window is still opened (minimized or not) and the user clicks on the same link the content would duplicate but still on the same window. Is it possible to make sure that when the window is opened, the link does nothing until the window is closed or when the window is minimized and still opened, set a focus to show that the window is still opened? Thanks a bunch in advance for any help.

    Issue Resolved: I re-looked at the website that I started with it and I apparently forgot to stop the document from writing itself over and over again.
    Last edited by secretply; 07-06-2009 at 08:17 AM. Reason: Issue Resolved

  2. #2
    espfutbol98's Avatar
    espfutbol98 is offline x10 Sophmore espfutbol98 is an unknown quantity at this point
    Join Date
    Apr 2009
    Location
    Zagreb... želim
    Posts
    200

    Re: [Javascript] Protected Pages

    I would never use Javascript for protecting pages because the user can view the script. I would use server-side scripting. It's fine for the pop-up box. Question, is the "pop-up box" an alert box or is it styled and everything? Just asking because most people hate alert boxes.

+ Reply to Thread

Similar Threads

  1. Need Help with Log In and Password Protected Pages
    By MomentsInTime in forum Scripts & 3rd Party Apps
    Replies: 3
    Last Post: 09-11-2008, 06:06 PM
  2. Replies: 4
    Last Post: 07-13-2008, 07:03 AM
  3. help-add content to all pages at once
    By andhrafun in forum Scripts & 3rd Party Apps
    Replies: 3
    Last Post: 09-19-2007, 03:41 AM
  4. Ads on my pages
    By cokacola650 in forum Free Hosting
    Replies: 2
    Last Post: 02-16-2006, 10:38 AM
  5. Replies: 7
    Last Post: 09-16-2005, 10:27 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers