Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1096081
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T00:13:43+00:00 2026-05-17T00:13:43+00:00

we are running a click-to-call service, my idea is basically like this: website have

  • 0

we are running a click-to-call service, my idea is basically like this: website have a link on their page, when the link is clicked, a web page(say it is popup.aspx) hosted on our server is popup, user can input their phone number, and click “call me” button to let the website call him. In the button click event, I want to get Request.UrlReferrer, then query the db to get website’s phone. But in IE, Request.UrlReferrer is null(firefox is ok, not test chrome yet),my question is how to get opening window’ url in IE?

we put popup.aspx on our server because

  1. our client website is not force to use asp.net.

  2. we have the control what we put on the popup window, and can modify the page just from our side, if we put the pop window on our partner’s side, if we have 100 partner, and we change the page’s design, we will notify everyone of them to change this, change that…

  3. we can implement a statics system to know how popup a day, which site is most popular,etc

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T00:13:44+00:00Added an answer on May 17, 2026 at 12:13 am

    Did you try window.opener.location.href (in javascript)?

    You could also call a pageMethod in javascript with the opener to get back your CSS from your (server side query) and apply it to your page in javascript.

    Link

    Popup.aspx

     <form id="form1" runat="server">
    <asp:ScriptManager EnablePageMethods="true" runat="server"></asp:ScriptManager>
    <div>
    
    <script>
        function call() {
            var location = window.opener.location.href;       
            PageMethods.GetPhoneNumber(location, clientcall);
        }
    
        function clientcall(phone){
            alert(phone);
        }
    
    </script>
    <a href="javascript:call();">Call</a>
    </div>
    </form>
    

    Popup.aspx.cs

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Web.Services;

    public partial class Popup : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
    
        }
    
        [WebMethod]
        public static string GetPhoneNumber(string referer)
        {
    

    // Put your code to call your database here
    return "888-888-888";
    }
    }

    Calling page

        <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title></title>
    </head>
    <body>
    <script>
        function opening() {
            window.open("Popup.aspx","mywindow", "status=1,toolbar=1");
        }
    </script>
    <a href="#" onclick="opening()">Ouvrir</a>
    
    </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm really new at this jquery stuff. I have a wcf web service running
I have a C# ASP.NET web service running (successfully) on this PC. I can
Code is not running on .click when I have this: $(.cancel).click(function() { alert(got here);
I have this script, running on a links list: $('li#linkcat-25 a').bind('click', function (e) {
There is a web service running on tomcat on a server. It is built
So there is a button call next (page). Its href link is site/blah/#. So
I have hosted web application with simple asmx web service in IIS 7.5 using
I have the following ajax call: $(#welcome a.close).click(function(e) { $.ajax({ type: GET, url: /visitors/hide_welcome,
I have a situation as below: I have 2 web applications running on Tomcat.
On click of a button I want to start service using method startService(new Intent(currentActivity.this,MyService.class))

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.