Solved

A Href question

Posted on 2012-04-03
6
256 Views
Last Modified: 2012-04-07
I have a site where in I have a link to another site's login page. The problem is the login page on the other site is a popup called via java script from that page. I need to send users to that login page... is this possible...

For example my site www.mysite.com (A link to goto othersite's login page)

www.othersite.com
The login page is a popup here and called via a java script on this site.

Can I call this java script from my page so user can directly goto login page instead of home page?
0
Comment
Question by:Aanvik
6 Comments
 
LVL 5

Expert Comment

by:dcowley
ID: 37803136
I guess that you don't have any control over the other site?

You say that the login page there is a pop-up called via JavaScript, but is it actually a JavaScript login mechanism, or does the JavaScript just make the pop-up work, which is standard html?
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 37803141
If it is a separate URL, it is possible.  But if their base page sets a cookie or some other code required for the login, it won't succeed.  And if it is not a separate page, I don't see how you would call their javascript without their page.  It could be in an iframe I guess.
0
 
LVL 16

Expert Comment

by:Wasim Akram Shaik
ID: 37803182
if you know the login page url, just paste it as a href instead of placing www.othersite.com in your site, directly place the login url at that place..
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 37803266
If you are sending traffic to this other site, I would think they would be co-operative in helping you to do so.  I suggest to contact the operator of the other site and see if they can help you reach your goal.


Cd&
0
 
LVL 22

Expert Comment

by:plusone3055
ID: 37803269
yes you can
you need to go to
www.othersite.com
Copy thier javascrpt files nad add them to your page so you can emilate it
0
 
LVL 2

Accepted Solution

by:
Elbassel earned 500 total points
ID: 37804907
Yes you can :D
1- you can append a parameter to  the link that you will click such as that
<a href="www.othersite.com?login=popup"

Open in new window

and then in the other site you can get this parameter from the request and you can do an action based on this parameter such as a login popup.

This is a solution, if this solution is acceptable, that's great, if not tell me again, because I have another solution.

Best wishes :D
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question