View Full Version : javascript loginbox for domain

01-22-2009, 08:45 PM
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


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

Philip M
01-22-2009, 08:54 PM
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.

01-22-2009, 09:03 PM
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