Open Multiple Popup Windows In Javascript?

Aug 2, 2011

I've got an sql datareader that has a bunch of paths in it. I need to open up multiple pop up windows / multiple tabs on the browser.So I tried looping through my datareader and doing a ClientScript.RegisterStartupScript but after the code completes nothing opens up.

[Code]...

View 2 Replies


ADVERTISEMENT

Javascript :: Open Multiple Child Windows And Keep Track Of Them All?

Aug 18, 2010

So here is the situation. I have a button on one of my extjs pages. This button opens a child window as a pop-up. This child window has a .method attribute as well as a .ref attribute, and also a .id. I need the functionality to open another window with the SAME template, everytime I click that button.I was thinking set the childwindow .method property to something like 'getWindow', and the .ref to something like 'newWindow' and then create a javascript function on the backend to look something like this:

var myArray = [];
var count = 0;
function getWindow() {

[code].....

View 2 Replies

Javascript - Jquery A Colorbox Popup Windows With Input Field?

Aug 11, 2011

the following sets my stage

vb.net
MasterPages
Usercontrol with defined events

This is what my usercontrol looks like:When the user clicks the 'Approve' button, an event is fired in the usercontrol that is then intercepted in the main page to do custom code (database update, mails etc...)

[Code]...

View 1 Replies

VS 2010 : Open The Popup In Same Windows?

Nov 19, 2010

I made a web browser project.But now when i use it and i click as site and example i click a link that opens in new page it pop ups using IE7. how can i make it not pop up IE but to open inside of that application i have made..?

View 13 Replies

Javascript - How Window.moveto Function Working On Multiple Tab Open In Browser

Sep 24, 2010

I have to maximiize my screen for mutiple tabs. window.moveto is not working.I am using this code:

if(document.all)
{
top.window.resizeTo(screen.availWidth,screen.availHeight);
}

[code]....

View 1 Replies

Javascript - Confirmation Popup Message (ASP.NET/VB)

Apr 30, 2011

I want to have a confirmation message box pop up when a user clicks the cancel button on a form. I believe this would be the correct javascript code:

function confirmation() {
var answer = confirm("Are you sure you want to cancel? Any information you have entered will be discarded.")

[CODE]...

But, I'm not sure how I can call the function with VB from my code behind page.

View 1 Replies

WebBrowser - How To Block JavaScript Popup

Feb 14, 2011

How would I suppress this popup coming from my webbrowser its a javascript onbeforeload? I think from what I've been reading I've tried everything currently I am using a timer to grab it by its caption and its very unprofessional Here is the image of what im trying to stop the "are you sure you want to leave this page thing" [URL] I want to hopefully stop it in any way I can rather then by timer and caption.

Tried e.cancel on a new window = fail
The timer method it still pops up = semi fail
Script errors suppressed = would never work

View 1 Replies

Open Multiple IE Windows At Once?

Sep 7, 2011

At my job, there are multiple web based tools we use. I'm trying to make a program that opens them all with one click, all in separate IE windows.

The code below, once executed, will produce 1 IE window. I'm pretty sure I understand why it's doing this, but not sure how to fix it. What I want is 3 IE windows open, at the respective sites.

VS 2008 & IE 8
Private Sub Button8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button8.Click
OpenURL("http:www.google.com")

[Code]....

Also, the way my GUI's set up I have buttons for each individual tool, when clicked they open a new tab in the same IE window, as opposed to a new IE window.

View 6 Replies

FormView Control And Javascript Popup Calendar?

Apr 18, 2009

Hello: i have javascript code for a popup calendar and works fine if a form is a form control:
<form id="FormView1" runat="server">

however, if i use my formview control w/ the same code for a formview control, it doesn't put the value back into my text box txtDate after the user selects the date:

<asp:FormView ID="FormView1" runat="server">
<asp:TextBox ID="txtDate" runat="server" TabIndex="3" Width="65px" ></asp:TextBox>
<a onmouseover="window.status ='Please Select Date';return true;"
onmouseout="window.status='';return true;"
href="javascript:show_calendar('FormView1.txtDate');">
<img alt="open calendar" src="images/SmallCalendar.gif"/></a>

this seems to be the only difference so i was wondering if perhaps i need to reference this form in a different way? i don't know why it won't work for my formview control.

View 1 Replies

Retrieve HTML Of External Javascript Popup Window?

Aug 13, 2011

I was offered this interesting scenario by a visitor of my site and have been trying a few approaches, but not seeming to get it quite right. I have a Form with a WebBrowser control (or an AxWebBrowser if that works too) and on the page loaded in the browser, is a link that uses javascript to open a new popup window.This popup window I am unable to take "ownership" of and it launches in a new instance of the user's default browser (IE for this scenario). I need to then interact with that javascript popup window which now is not part of my application. If I needed to set a value of an input box on that form, how would I accomplish that if I can't "interact" with the form?

View 1 Replies

VS 2010 Don't Allow Program Open Multiple Windows

Apr 1, 2012

i am making mp3 player. i didn't wanted to use open buttons so i've associated my app with .mp3 filetype (with If (My.Application.CommandLineArgs.Count > 0) Then...)

The problem is when i want to play next song while the first one is playing it opens my program again so it plays 2 songs at the same time.

I want to do is when im opening new mp3 make it shut down the old one

I guess there is more methods that open in same app but just change the url.

View 7 Replies

VS 2010 Open Multiple MP3 Files In Windows Media Player?

Jul 18, 2010

I'm creating a kind of 'playlist manager' application where the user can create his own music playlist and then play it from my application. However, I don't want to give my application any playback features itself, as there are already so many media players around. Instead, I just want to open the files in the current playlist in the media player of the user's choice.

I have a list of MP3 files (their filenames), how do I now open these files simultaneously in, for example, Windows Media Player? I can get it to play one song, using this command (and Process.Start)

[Code]...

Surely this must be possible? You can open multiple files in windows itself simply by selecting them and opening them at the same time. I'm pretty sure the filenames of the selected files will then be in the arguments of wmplayer so that it can open them, but I just don't know in what format.

View 20 Replies

Javascript - Button Click Event On Modal Popup, Inside A Grid-view Not Firing

Jun 10, 2012

I have a asp grid with a few columns that bind to data. The last column has been converted to a template-field. In this template-field is a button with a modal popup extender attached to it. Hidden inside this field is a modal popup. This modal popup is used to add a new account. it contains 2 text boxes, drop down lists and buttons("Add" and "Cancel"). When "add" is clicked the modal should close after the inserting of the new account in the code behind.

The Problem: I get the popup to display and load the Drop down lists from the cache, without problem. How do I get the button click event to fire in the code behind. I've tried using a JavaScript function that performs a _doPostBack('btnAddAcc','') but it keeps returning the error "JavaScript error: Object expected". I gathered after about 1 hour on Google that it is because "btnAddAcc' is not found because it is actually within the grid-view cell and can't be directly accessed. Using page methods and ajax calls is a last resort as the company has a strict policy against this and only allowes this after a bunch of paperwork.

The Code:

<asp:GridView ID="gvNEA" runat="server" CssClass="gridA_Orange"
AutoGenerateColumns="False" AllowPaging="True"
EmptyDataText="No transactions with 'Non Existent Account(s)'"

[Code]....

View 2 Replies

Make Popup Open In New Tab?

Apr 4, 2011

i am trying to make a webbrowser but i am not having any luck with opening pop ups in say webbrowser2. I click a link when browsing in webbrowser1 and a ie instance pops up. Is there a way to not let the pop up come in a different ie and have it go to webbrowser2(other tab)? like how it does in google chrome or other major webbrowsers.

View 1 Replies

Open Web Popup In Same Browser?

Jan 22, 2011

I am coding something, and the login for the webpage opens it in a new window on IE (its launching from a Flash login). How can I make this so that it catches that it is trying to pop up, stop it from popping up, then loading it in the web browser in the program?

View 2 Replies

VS 2010 Open A Popup On Button Click?

Apr 25, 2012

How To Open a Popup On button Click Like i have made a button and when someones clicks on that Button it shows a Popup Showing my Image But i dont know how to do it

View 2 Replies

Asp.net - Open A Form In Popup For Edit Mode Within Repeater?

Feb 18, 2012

I am developing web application in which I used repeater to create a grid and I bind a link for edit page when user clicks on that link then ID of that specific record passed to that page and all relevant information extracted from database for that ID and displayed in text boxes. Now i have to use Popup for edit form what should i do now? i used Ajaxtoolkit model popup but unfortunately I did not get id of that link on which user clicks so that i can load data against that ID?

View 1 Replies

Open Popup Link Of New Window Event In Webbrowser

May 11, 2012

I am trying to trap the newwindow event for the webbrowser control using this code

Private Sub wbMain_NewWindow(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles wbMain.NewWindow
Dim wb As WebBrowser = DirectCast(sender, WebBrowser)
Dim link As HtmlElement = wb.Document.ActiveElement
[Code] .....

But the href property is always empty, this is because the active element is the last button clicked. But it is a button I click in the webbrowser control that opens a link in IE.

View 1 Replies

Forms :: Button Popup With Multiple Thumbnails?

Nov 2, 2010

Maybe the title isn't very clear on what I try to do, but here's the explanation.

First I use vs 2010 I have a form and a button, the button is to change the form background image.When I click the button I want a popup to appear with 3 or 4 columns of thumbnails to chose from.

But the thing is, don't know how to do this.

View 7 Replies

How To Create Windows Popup

Mar 20, 2010

how to create windows popup using vb.net

View 1 Replies

How To Create Windows Popup Using .net

Apr 16, 2011

how to create windows popup using vb.net

View 2 Replies

PopUp Windows (WebBrowser Component)?

Jan 8, 2010

I have VB code for work with Function for login:

Sub Login()
Try
Form1.WebBrowser1.Document.GetElementById("ctl00_Login1_LoginTextBox").SetAttribute("Value

[code]....

View 1 Replies

VS 2010 Get Popup Windows Html?

Nov 9, 2010

There is a webpage where i can view someones profile, then i click "see friends" but this pops up in a popup, i can view the HTML of this popup and see the info i need.

However, i dont know how to target this new popup, when i get the html of the current document in my web browser control, it only get the html of the page, not the popup.I guess its not really a popup, not sure, its more like a javascript for.Its the widown that pops up on facebook when you click on one of your friends, then click "see all" friends.

View 1 Replies

Loop To Detect Specific Popup Windows

Jun 9, 2011

I am very new to vb.net. I need to be able to see when a certain popup window appears in another application. The time time it takes to appear varies so I need to know when it appears and in some cases when it has closed.

View 1 Replies

Popup Closed - Main Form Hidden Behind Other Windows

Oct 26, 2011

Using vb.net. I've got a main form that displays when application is opened. A popup form can then be opened. If there are other windows opened on the desktop, for example windows explorer, then when the popup form is closed, the main form gets hidden behind windows explorer. You have to move windows explorer out of the way to get to the main form. Is there a way to keep this from happening?

View 2 Replies

JavaScript - Window.Open Will Not Work Twice

Jul 21, 2011

I have an aspx page with a button. When the user clicks that button, the following javascript opens a new browser window (in this case, 'Reasons.aspx'). Works great. Here's the function for that part:

function ShowPanel(url) {
var width = 750;
var height = 600;
var left = (screen.width - width) / 2;
var top = (screen.height - height) / 2;
[Code] .....

When this window pops up, there are some controls. One of which is a button, which triggers almost identical code to popup a third window (in this case, ReasonCodes.aspx). Only it won't work. Here's the code for that:
function fGetReasons(url) {
var width = 750;
var height = 600;
var left = (screen.width - width) / 2;
var top = (screen.height - height) / 2;
[Code] ....

I've set breakpoints on the javascript. It does execute. Here's what's weird -- The above javascript executes, only I don't get a new window with ReasonCodes.aspx. However, I set a breakpoint in the page_load of ReasonCodes.aspx and all of it executes. So the javascript executes, the code-behind page_load of the third page executes, but I don't get a third page. Instead, the second window (Reasons.aspx) refreshes. It's like my third window is somehow 'hidden'.

View 2 Replies

For Certain Website ,credentials Are Asked In A POPUP Window, Not In The Windows Form?

Sep 14, 2010

I have used webbrowser control to automate the login issues(entering username/password)).ie programattically i can enter username & password for websites that requires it.But the problem is, for certain website ,credentials are asked in a POPUP window, not in the windows form. So how to enter the username/password in popup windows.

View 2 Replies

Programmatically Instigate A Windows Live Messenger Notification Popup?

Jul 29, 2009

I really like the MSN notification popup. Basically the popup you see when you receive a new email etc. I'd like to put timers and set times so I, for instance, get a popup at 2PM saying "Don't forget..." I know I could make my own notification bubble but I'd prefer the WLM one.

View 3 Replies

Javascript Window.open On Page Load?

Dec 20, 2011

I have used JavaScript on body onload event I used this code:

function timeMsg()
{
var t=setTimeout("mywindow()",1000);
}
function mywindow()

[Code]...

when the page load a pdf file open and also popup window,problem is that when i reresh the page which is callong pdf the popup window dnt open.I want to open every time when page is loaded each time

View 1 Replies

Make A Popup Blocker Type Message Box That Pops Up When A Popup Tries To Load A Page?

Dec 2, 2010

im trying to make a popup blocker type message box that pops up when a popup tries to load a page, and it asks The page [URL]is trying to open,open in a new tab?

(label)
No (button) Yes (button)

how would i make a menu appear when i click somwhere on the page,how would i make it recognise a picture, and be able to copy it to a location on the local drive?

View 3 Replies







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