Javascript - IE - Get Popup's Opening Window When Using Window.open (url)?

Sep 23, 2010

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

our client website is not force to use asp.net. 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. we can implement a statics system to know how popup a day, which site is most popular,etc

View 1 Replies


Similar Messages:

Web Forms :: Close Popup Window And Open Page In Parent Window?

Mar 10, 2011

I have a login page that is loaded in popup window (colorbox) and after user logs in it should be closed and parent window should be loaded with new page.

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Do While reader.Read()
If Trim(reader("ZAP").ToString()) = Trim(textBoxZap.Text) Then
Session("A") = "1"
Response.Redirect("~/default.aspx")
Else
lblErr.Text = "incorect"
End If
Loop

So once the buton is clicked and user name and password is corect popup window should be closed and user redirected to default aspx.

View 1 Replies

Web Forms :: Retrieve Value From Popup Window Opened Using Window.open?

Apr 28, 2010

I am trying to open a popup window from main window using window.open() method. How to get back the value from the called popup window to the calling window in vb.net, basically i need to get back the value and populate in the text box available in the main window.

View 3 Replies

Javascript - Window.open As Modal Popup?

Oct 14, 2010

I want open window.open as modal popup.

var features = 'resizable= yes; status= no; scroll= no; help= no; center= yes;
width=460;height=140;menubar=no;directories=no;location=no;modal=yes';
window.open(href, 'name', features, false);

I can use Window.ShowModelDialog(), but in my child window I am calling parent javascript method. That is not happening with ShowModelDialog().

function CallParentScript(weburl) {
alert(weburl);
if (weburl != null) {
var url = weburl;
window.opener.SelectUserImageCallback(url);
window.close();
return false;
}
}

If I use window.open(). I can call Parent javascript. But window is not modal. How to solve this? Can I write something in child popup to always top?

View 3 Replies

Web Forms :: Open Popup Window With In Another Window

Aug 26, 2010

I have an aspx page which contains a user control(a gridview). When I click on a link button in the gridview, I will open a popup window(An aspx page) successfully. When I click on save button in the popup, I am saving the details and refreshing the parent page successfully. I have a button in popup window. My requirement is:

When I click on the button inside popup window1, I would like to open another popup(aspx)(Say popup window2) in a new window without closing popup window1. When I save some changes in popup window2 and click on save button in popup window2, I need to close it and refresh popup window1.

View 2 Replies

Javascript - Passing Data Between A Parent Window And A Child Popup Window With JQuery

Dec 3, 2010

I have the following HTML

<tr>
<td class="label" valign="top">
Affiliate Party
</td>
<td class="field">
<input type="hidden" name="ctl00$MainContent$ExternalAccountAttributes$AffiliatePartyId" id="AffiliatePartyId" />
<input name="ctl00$MainContent$ExternalAccountAttributes$AffiliatePartyName" type="text" id="AffiliatePartyName" class="PartyLookup" />
</td>
</tr>

and the following Javascript/jQuery

$(".PartyLookup").after("<img src='Images/book_open.png' class='PartyLookupToggle' style='padding-left:4px;' />");
$(".PartyLookupToggle").click(function () {
window.open("PartySearch.aspx", "PartySearch", "width=400,height=50");
return false;
});

I need to be able to flag ANY PartyId input field with class="PartyLookup" so that it will modify the DOM and include the image next to the input field. The popup window returns data to populate both the hidden and text fields, but since the click() is generic I need to pass it the ID of the input field.

View 2 Replies

Using The Javascript To Open A Child Window Using Window.showModaldialog?

Sep 24, 2010

I am using the javascript to open a child window using window.showModaldialog(), i have retuen a value from the child page is working fine in IE and firefox but is not working in chrome browser, is there any work around or alternative for it to work in chrome as well.

View 2 Replies

Not Open A New Window (JavaScript Popup) If JQuery Validation Plugin Returns False?

Sep 23, 2010

I have an .aspx page with a couple of textfields. I validate these with jQuery validation plugin when the user clicks the submit button. When the submit button is clicked I also open up a new window, but I only want to open the window if the fields are correctly filled out.How do I stop the window from opening if the fields are not validated?

.aspx.cs
protected void Page_Load(object sender, EventArgs e)
{

[code]...

View 1 Replies

How To Pass A Parameter To The Child Window From Parent Window Using Window.open

Oct 18, 2010

i have an aspx page in which a link in the grid view opens a popup page . the data in the grid view would be dynamic and i need to send the id of the row of grid while calling the child window. i get the id using sender.id, but how would i send this using window .open()?

View 2 Replies

How To Print Webpage Without Opening A Popup Window

Apr 16, 2010

I want to print a web page using javascript. But I do not want to open the page as a popup windows. How can I print directally a web page like 'mypage.aspx' using javascript window.print method without opening it as a popup window?

Also the condition is 'I dont want to use any Activex for this'

View 5 Replies

Web Forms :: Opening New Window Popup Through Code Behind?

Apr 29, 2010

I have a asp.net linkButton on my page. on click of link button i hv written a code on linkbutton click event. after executing that code lastly i want to open new window. I had used a following code for that.

//Script to pass to the RegisterClientScriptBlock method

View 4 Replies

Open A Popup Window On Top Of A Popup Window

May 7, 2010

I have a scenario where I have a popup window open and that will have links to open up another window that's going to pop open on top of the already open popup window. I've tried all sort of tricks (javascript window.open, target="_blank" etc.) but nothing seem to work. It always was opening the page on the already opened popup window.

View 1 Replies

Forms Data Controls :: Datalist Links Opening In New Window Rather Than Parent Window?

Jan 28, 2010

i have following datalist in WhatsNews.aspx page.

[Code]....

when i open home page and click a link in whatsnew section, IE 8 opening the links in a new window.but firefox 3.5.7 opens in parant window, just like i want.how can i make IE 8 also open the links in parent window?

View 3 Replies

C# - Login Time Out When Calling Opening A New Window From Modal Popup?

Jun 15, 2010

I have a weird problem. I have a window, on a button click I open a modal popup (using ModelPopupExtender), that let's you select a few criteria and then click a submit button. On click of submit button, I open a new window (using window.open()) that shows the status of what happened to your submitted request. However, every time this status window is opened, it goes to the login page. I am thinking the modal popup can't pass the authentication cookie to the newly opened window, but I'm not sure.

View 1 Replies

Web Forms :: Parent Window Refreshing When Opening A Child Window?

Oct 22, 2010

Im having the flowwing problem i have a gridview that i want to list many records when i click on a row iwant to be able to click on a button and go to the form of this record in order to update it. All the navigation works fine.I click on the button and then using javascript i window.open the page that has the form the problem is that when the new page loads the parent page (the page that has the gridview refreshes and because there are many records it is really annoying how can i use window open to pop up a child page without having the parent window to refresh.

Because im using all this in a dotnetnuke framework i have tried enabling and disabling partial rendering to the parent page page but always refreshes when i open the child window

View 2 Replies

AJAX :: Modal Pop Up Not Opening JavaScript Window

Feb 25, 2010

I have a modal pop up window (Ajaxcontroltoolkit one) and inside that I am trying to open a normal Java Script new window.

ScriptManager.RegisterClientScriptBlock(this.UpdatePanel1, this.UpdatePanel1.GetType(), "AnyScriptNameYouLike", "window.open('http://www.yourwebsite.com');", true);

But for some reason it does not open.

But it opens fine if I pu the same line of code in a button click event.

View 5 Replies

How To Open Popup Window In C#

Aug 5, 2010

I can't use RegisterStartupScript('window.open...), because Chrome blocks the popup without even informing the user.

I can't use "onclientclick=window.open(..." in the markup, because I have to invoke code in the button click event handler before opening the popup window.

I can't expect every user of the website to add the site as an exception in Google Chrome's popup blocker, since they'll assume it's an error on the website and not with the popup blocker.

So what other options do I have?

View 1 Replies

Open Popup Window With Js Code

Sep 14, 2010

I did a little research and all i can find is binding the js to a control that will fire the popup.Is there a way that i can use in code so i can trigger a popup window from vb.net code? If it is to complicated then is there a way to have a button set with the popup message i want the user to view and make the button click with .net code so the onclick event will fire and show the popup window?

View 13 Replies

Web Forms :: Open Second Popup Window?

Feb 3, 2010

how to open the second pop up window. as i always replace the extisting pop up window if type the following code:

Page.ClientScript.RegisterStartupScript(this.GetType(), "openpopup"
"<script language="javascript"></script>)o;

View 2 Replies

AJAX :: Open New Popup Window?

May 12, 2010

i want to open new window while clicking on the linkbtn how can i do this

View 3 Replies

Popup - Open New Window Through Querystring

Jan 19, 2010

i have 4 pages in aspx. page A, B , C, D. if i go from pageA to Page B then after clicking submit on PageB its should goto PageC and open Page D in a new window at same time. but if i go directly to PageBand click submit then it should only goto PageC and not open PageD in new window. i am using /?dest=pageD.aspx in querystring but it wont work. How can i acheive this?

View 1 Replies

JQuery :: How To Open Popup Window

Dec 17, 2010

i want to open attractive new window using jquery,

View 6 Replies

Web Forms :: Open A Popup Window In C# Without Using RegisterStartupScript?

Aug 5, 2010

I can't use RegisterStartupScript('window.open...) because then Google Chrome silently blocks the popup window. I can't use javascript onclientclick in the markup, since I have to open the popup window after running some code in the button click event handler.

View 2 Replies

Open A Popup Window From User Control?

Oct 27, 2010

I would like to open a popup window from user control on button click event. I am using the following code but I am not able to open new window

[Code]....

View 4 Replies

Web Forms :: Return True Or False From Popup Window To Parent Window

Sep 25, 2010

I am trying to return true or false from popup window to the parent window. Actually the parent window has a button control, which on click popup another window. The popup window holds some emailing data and a button "send". This "send" button onclick send email. Now I want to return true if the email is successfully sent otherwise false, to the parent window. Depending on returning value a label present on parent window displays a text message. But I am not able to implement it. Because it might happen that the popup window is blocked by web-browsers popup blocker or popup window is accidentally closed by user. So how can I confirm to parent window whether or not the email is successfully sent?

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved