Hi,
I am trying to launch a new browser with the same url location as the
current browser, and at the same time run some javascript.
This works with <a href=javascript :setCursorPosit ion(1527,'HATSF ORM')>test</a>
, which runs the javascript in the current url location, but when I
try window.open(jav ascript:setCurs orPosition(1527 ,'HATSFORM'), it
opens a new browser with the string
"javascript:set CursorPosition( 1527,'HATSFORM' )" in the url location of
the browser, which obviously fails.
So I need the window.open to open up a new browser with the same
relative url and then execute the javascript string. Any ideas?
BTW, this also fails when I try <a
href=javascript :setCursorPosit ion(1527,'HATSF ORM')
target=_NEW>tes t</a> for the same reason that the relative url
location is not kept for the new browser.
Thanks in advance
Bill 1 2874
> This works with <a
href=javascript :setCursorPosit ion(1527,'HATSF ORM')>test</a>
I'm guessing that this method simply moves the current window to the correct
location on the page. , which runs the javascript in the current url location, but when I try window.open(jav ascript:setCurs orPosition(1527 ,'HATSFORM'), it opens a new browser with the string "javascript:set CursorPosition( 1527,'HATSFORM' )" in the url location of the browser, which obviously fails.
Yeah, window.open requires a URL to be passed. I think what you need to
something like this:
var newwindow = window.open(win dow.location.hr ef);
newwindow.setCu rsorPosition(15 27,'HATSFORM');
The idea is to open a new window with the same URL as the current window and
then call the setCursorPositi on() method with the correct parameters in the
new window. This is assuming that the method will exist in the new window.
Hope this helps
Mike This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: John |
last post by:
I am having a problem with window.print in a popup window.
I am creating 2 popup windows both with a print button in them, 1
works the other doesn't. Code runs in a javascript function on a
webpage. Here is the difference :
First example (works) -
mywinman=window.open('t&cs.htm','win2','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=600,height=500,left=100,top=100');
|
by: Martin Nadoll |
last post by:
Hello,
i want to close a popup-window with the onBlur eventHandler.
function closeIt() {
setTimeout('window.close()',2000); }
<body onBlur="closeIt()">
html
</body>
|
by: dibyendu_k |
last post by:
Hi,
There is a problem i cant solve regarding Internet Explorer 5.5. It is regarding the Print Dialog Box.
From a webpage if I open a popup window (window.open()) containing buttons Print and Close.
The functionality is that when i press the "print" button the Print dialog box is opened (window.print();)
and when I click on the close button the popup window is closed (window.close();)
But the problem occurs when
1. The Print button is...
|
by: Dave |
last post by:
Hi,
I am using the following code to try to open a window in a target
frame using a button control that is in the original frame. It does
not work unless I click the button twice. If anyone can help I'd
appreciate it. This is on a standard webform.
.......................................
Private Sub btTools_Click(ByVal sender As System.Object, ByVal e_ As
System.EventArgs) Handles btTools.Click
|
by: Scott Zabolotzky |
last post by:
I'm using the following code to launch SIGNCODE.EXE to sign a CAB
provisioning file from an ASP.NET app. When I run the code the
exit code comes back as -1. I have not been able to determine what
this exit code means (other than Error, as the CAB file does not
get signed).
No exceptions are thrown and I've verified that the app can read
and write to the c:\mps\provdata directory. It seems as if it's
not a permissions problem as the...
| |
by: tochiromifune |
last post by:
Hello
The window.open method brings my window to the top only if it is new. If
it's being reused, the window does not come to the foreground (with IE 6 it
does).
Is there a new way in Mozilla/Firefox that I can ensure that this
window comes to the top?
Thank you for your help
|
by: John |
last post by:
Hi,
I posted this earlier in microsoft.public.dotnet.framework.aspnet, but
didn't get a response, so I thought I'd try here.
Basically, I'm having a problem opening / downloading csv files when
generated from within a page opened with window.showModalDialog( ) ( IE6 ).
To isolate this problem, I've written 3 files (see below).
1. main.htm allows the user to open the page containing the link in a
|
by: len.hartley |
last post by:
Hi,
I am trying to pop-up a window when the user clicks on an image. The
problem is that when the user clicks on the image and the window pops
up OK, but the window underneath also proceeds to the image. The
desired behavior is that when the pop-up is invoked, I want the
underlying window to stay put.
I don't have this problem when I run the code on my local computer but
I do have it when I run the code on geocities.
|
by: ajay7387 |
last post by:
i am facing a problem with window.opener.
i have a function addToTable(var d) and if i am calling that from child window using window.opener.addToTable(var) its not working.
"<A HREF='#' style='text-decoration:none;'" + " onClick=\"javascript:window.opener.addToTable("+ vDay + "); self.opener.document." + this.gReturnItem + ".focus();window.close();\">" +
this.format_day(vDay) +
"</A>" +
can anyone suggest how to pass a...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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,...
| |
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...
|
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...
|
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...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| | |