473,663 Members | 2,838 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

problem integrating java window.open with VB


....still new to VWeb .net 2005 wtih VB...

....having some problem integrating java script to open a second browser window with my VB code. The following line (in page-load)
properly opens a new IE window (when button1 is pushed) called, "NewWin" and places the content from "comment.as px" into it.

button1.Attribu tes.Add("onclic k", "window.open('c omment.aspx','N ewWin',width=55 0, height=450');")
....but I can't seem to get any code - java or VB - to do anything with the new window. e.g., like closing it or setting focus to it.
Info on the web suggests that this should be possible, but I can't get anything to work. Perhaps this has something to do with the
necessity to somehow declare "NewWin" so that it is accessible outside of the page load event?

Could someone point me in the right direction, or provide some code with instructions easy enough for a VB newcomer to understand.

Thanks

Jeff



--
Posted via a free Usenet account from http://www.teranews.com

Aug 10 '06 #1
1 1672
Jeff,

Have a look at the page class and than particulary the both register script
methods
http://msdn2.microsoft.com/en-us/lib...e_members.aspx

I hope this helps,

Cor
"Jeff" <no**@none.coms chreef in bericht
news:44******** *************** @free.teranews. com...
>
...still new to VWeb .net 2005 wtih VB...

...having some problem integrating java script to open a second browser
window with my VB code. The following line (in page-load)
properly opens a new IE window (when button1 is pushed) called, "NewWin"
and places the content from "comment.as px" into it.

button1.Attribu tes.Add("onclic k",
"window.open('c omment.aspx','N ewWin',width=55 0, height=450');")
...but I can't seem to get any code - java or VB - to do anything with the
new window. e.g., like closing it or setting focus to it.
Info on the web suggests that this should be possible, but I can't get
anything to work. Perhaps this has something to do with the
necessity to somehow declare "NewWin" so that it is accessible outside of
the page load event?

Could someone point me in the right direction, or provide some code with
instructions easy enough for a VB newcomer to understand.

Thanks

Jeff



--
Posted via a free Usenet account from http://www.teranews.com

Aug 10 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2769
by: Phil Powell | last post by:
I have a PHP script that will be doing an @fopen file open command to a Java servlet, sending content via a query string. Problem is that it appears the Java servlet does not receive anything via its doGet() method and does no action. Has anyone here successfully ever sent anything via PHP to a Java servlet? Tell me what you are supposed to do, I thought it was this simple:
13
6587
by: BlackHawke | last post by:
Our program, game program Andromeda Online (www.andromedaonline.net) uses two programs- one to play the game, another to patch the game as updates come out. Players actually launch the updater which checks for fresh updates, then installs them, then launches the game client. We have begun our beta test, and would like to have the client open with a console window so that players can see exceptions that are thrown. How to do this seems to...
7
2095
by: Grant | last post by:
Ok I have XP Pro and recently upgraded to SP2 but after doing so one of my favorite webpages to check daily does not respond the same as before. It used to be (pre SP2) that I could when visiting this page http://facs.scripps.edu/surf/buoylist.html When I ran my mouse over the green CDIP buoys that it would not only show the current data in the upper part of the summary, but if I clicked on the Dana Point green bar for instance it would...
3
1522
by: Chris K. | last post by:
Hi, Setting my first steps into Java, managing my genealogy website. In the list of names, with the names in anchor tags, i want a popup window to appear on clicking the name. With the command <a href="N0001.jpg" target="_blank" onClick="viewPic(this.href); return false"> i call the javascript below(found on the net and adapted). The picture appears perfect on the screen, but without name, date of birth, date of death,..
5
2418
by: Steve | last post by:
Hi, I currently have a problem passing a variable value from one page to another. Once a form submit button is pressed java pops up a window and displays some information. The problem being is variables value needs to be passed from the main page to this popup window ... but it isn't. why? the submit button one the PHP page is
1
2311
by: Vinder | last post by:
Hey.... I want to execute java script code like this : javascript:void(d=window.document ); var el=d.getElementsByTagName("img"); var Lenth = d.getElementsByTagName("img").length;while(Lenth--)el.parentNode.removeChild(el);d.close(); i want to remove all images from open anew window openning I used this code to open a new webpage window.location=sURL; // sURL open a new web borwser.... i didn't programmer in Java script ... i...
3
3327
by: Jeff | last post by:
I'm hoping that someone can help me. I know little javascript and only need a very small amount in a visual web 2005 application using vb. I'm not sure whether my problem is related to the java or to the vb, but I'm thinking that it may likely be the vb. I'm attempting to open a java modal dialog box from a parent window. I have most of the dialog box working with one problem. The dialog box opens fine with the code below associated with...
0
1071
by: subbukumararaja | last post by:
Hi guys, i am trying to integrate the PHP and Java. Actually i am trying to create the instance of a java class in php file and use it's methods. My environment is WinXP/Apache 1.3/ PHP 5/jdk 1.5 I have done the configuration changes in the php.ini file as below; extension=php_java.dll
7
1664
by: maralfarshadi | last post by:
Dear All I am working on a Java based Web app - In this application, a window contains many textboxes which open the same child window. The user should choose among the option boxes provided and the choice should be reported back to parent window. 1. To know which textbox caused the child window to open, the two hidden inputs namely cbox and statbox are used to keep track. 2. The javascript code goes through the option boxes to find...
0
8345
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8858
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8771
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8548
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7371
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6186
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4182
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4349
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2000
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.