Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jan 2009
    Posts
    12
    Thanks
    1
    Thanked 0 Times in 0 Posts

    javascript loginbox for domain

    hi there people
    i wonder if anyone can point me in the right direction

    i have a reseller package with heart internet and i am currently creating a support page for my users

    so they can log in and control there domain, ect ect

    here is the current log in box that heart internet have gave me

    what i want to do is take this login box and add it to my site so users dont have to be redirected to another page - just so they can log in

    domain control page

    http://domaincontrol.glasgoweb.co.uk

    can some have a look at the code for me , and tell me what area i should be copying and pasting, and what to add if anything-

    i have tryed to copy over the code and i get an error see bellow

    The requested URL /domaincp.cgi was not found on this server.
    Apache/2 Server at www.randomfixes.co.uk Port 80

    so i went to the part of the script that was named domaincp.cgi and added the ip address of my server,

    it just then redirected me back to heart internet login

    thanks in advance people

    also if you think this is a big job let me know and i will post it on the cash code part of this site
    Last edited by randomfix; 01-22-2009 at 08:50 PM.

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,253
    Thanks
    203
    Thanked 2,557 Times in 2,535 Posts
    What you want cannot be done with Javascript.

    For security reasons JavaScript cannot access anything beyond the domain of the current page. This is known as the "same origin policy" and prevents a document or script loaded from one origin from getting or setting properties of a document from a different origin.

  • #3
    New Coder
    Join Date
    Jan 2009
    Posts
    12
    Thanks
    1
    Thanked 0 Times in 0 Posts
    thanks mate

    so i wasted a few hours then today

    silly people at heart net said it can be done


    so the only way my customers can check there domain is via a hyperlink or something

    any ideas for me


  •  

    Posting Permissions

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