IE6 & IE7 on the same PC
hi:
has anybody tried any of this approaches to run IE6 & IE7
on the same PC?
http://blogs.msdn.com/ie/archive/2006/11/30/ie6-and-ie7-running-on-a-single-machine.aspx
http://labs.insert-title.com/labs/Multiple-IEs-in-Windows_article795.aspx
jdoe
Hugh Watkins wrote:
> John Doe wrote:
>
>> hi:
>>
>> has anybody tried any of this approaches to run IE6
& IE7 on the same PC?
>>
>>
http://blogs.msdn.com/ie/archive/2006/11/30/ie6-and-ie7-running-on-a-single-machine.aspx
>>
>>
http://labs.insert-title.com/labs/Multiple-IEs-in-Windows_article795.aspx
>
>
> you can have a virtual machine to run legacy software
>
>
http://www.parallels.com/en/
>
>
> Hugh W
>
yes, virtualization seems to be the best approach, i'm
planning to use
Parallels in my MacIntel. for those using only Windows, the
free VPC
virtual machine image looks as a good option:
"IE6 and IE7 Running on a Single Machine
Many of you have asked how to run IE6 and IE7 in a side by
side
environment. As Chris Wilson blogged about early this year,
its
unfortunately not so easy to do. There are workarounds, but
they are
unsupported and dont necessarily work the same way as
IE6 or IE7 would
work when installed properly. As Chris said, the best way to
use
multiple versions of IE on one machine is via virtualization.
Microsoft
has recently made Virtual PC 2004 a free download; weve
taken advantage
of that by releasing a VPC virtual machine image containing a
pre-activated Windows XP SP2, IE6 and the IE7 Readiness
Toolkit to help
facilitate your testing and development. The image is time
bombed and
will no longer function after April 1, 2007. We hope to
continue to
provide these images in the future as a service to web
developers.
Now you can install IE7 on your main machine for development,
and get
all the advantages of IE7, like the RSS platform, native
XMLHTTP stack,
and improved security, while still running IE6 simultaneously
in the VPC
on the same computer. Most importantly, you dont even
have to buy an
additional Windows license. The VPC image runs in a virtual
machine that
offers all of the functionality of a full IE6 installation
without
giving it any access to its host machines hard drive,
registry, etc.
You can make as many modifications as you want to the virtual
machine
without affecting your host installation at all.
Included in the VPC image are:
Windows XP Professional SP2 + high-priority fixes through
November 2006
Internet Explorer 6.0
Internet Explorer 7 Readiness Toolkit 2.0
While weve released a VPC image today with Windows XP
SP2, were also
investigating creating other VPC images, for example IE5,
IE5.5, IE6 and
IE6 SP1, as well as versions of IE on different language
operating systems.
Get more information on Virtual PC 2004
Download Virtual PC 2004
Download the Internet Explorer 6 Testing VPC Image
One more note - VPC 2004 doesnt run on Windows Vista,
but this image
will work fine with VPC 2007, which is in beta now. You can
get this
free beta via Connect.
Happy testing!
PEte LePage
Product Manager"
Similar Messages
-
The webpage address is
http://www.utdallas.edu/~jxc064000/CS6359Fall2011.htm
The same page opens fine in IE7. I am more of a firefox guy and i rarely use IE. Being a computer science student myself i am rather curious regarding the possible reason behind this problem.
My operating system is Windows 7.'''Change Firefox to use the encoding Unicode (UTF16)
It apparently has a lot of odd characters within it, presumably an unexpected coding.
I tried the text as displayed in firefox (NOT the page source) cut out the first two characters and pasted the remainder into a html file and it opened ok in firefox.
I then changed to Unicode (UTF16) and the original webpage then loads and displays ok.
* Menubar -> View -> Encoding -> () Unicode (UTF16) -
Hello,
I have a asp.net mvc 5 web application running on .net 4.5 hosted on my local windows 8 machine on macbook pro using parallels. I'm running Internet Explorer 8 Version: 8.0.6001.18702 running on XP and Version: 8.0.7601.17514 running on Windows 7 Enterprise.
I've got both of the virtual machine source from www.modern.ie
My web application is attempting to provide single page user experience by having some client-side routing by using '#!/xxx' hashbangs in the url so that I can get and post via ajax and change the hash in the url without causing the page to reload. My
code works fine in IE9+ and other modern browsers.
However, I'm facing this strange issue in both of the IE8 versions. When running my demo app in IE8, I can login, view home page and can navigate from this home page to many details page. From the very first login page, all the pages are the result
of form's post action via ajax which then expects html from server and loads in the DOM. The page structure of my app is like summary form => Details page (can also contain summary forms) => Details...so on.
The above process works fine for few of the navigation steps. If I keep navigating from one page to another & go back, I have observed that the browser back button is removing the history items slowly. And a time comes when it totally forgets about
all the history pages that I visited to reach this current page I'm viewing!! It treats like I have just started my browsing session and this current page is the first page I've landed on with no back option. Now if I again try to navigate, I have encountered
problems like both the back and forward buttons gets disabled.
Hope, my words above is clear enough to explain this problem. The same application works fine in IE9+ and other browsers.
Till now, I have tried following steps on both VMs:
Resetting IE8.
Increasing disk space to 1024mb for temporary internet files storage.
Setting 'Never' for Check for newer versions of stored pages.
Disabling the automatic crash recovery feature didn't helped in this case. Found this on support website.
Deleted temporary files, history, cache, etc many a times.
Search many forums, posted question on StackOverflow, ASP.NET
Forums - but didn't helped.
Tried 'beforeunload' event of browser to see if any of the page is reloading because of submit or any other reason. But the page doesn't reload at all.
The issue is browser forgets about the browsing history while I'm still browsing the same site.
Is there any possible fix for the issue above? Does IE8 have any issues as many ajax form post is happening on every page?I have really tried many things to identify any possible reason of the issue above. Even rewrote all my javascript navigation code and checked server-side code.
But the only place where I got the solution is at site: http://www.enhanceie.com/ie/bugs.asp which states that there is a bug in IE8 which reads like:
IE0012: IE Travellog broken when navigating back/away from a page with
a large POST form If there is a form input field with a value longer
than 523,659 characters, when you navigate away from the page, IE may
clear the current session's travellog (similar to history), disabling
the back and forward buttons. Repros in IE6 & IE7.
There are following solutions that you can go for:
- Check for the input field that has lots of characters as mentioned above and solve your problem.
- If you have control over the system where IE8 will be used, you can add the following registry key on that machine. There is no existing key, so, you need to add a new one:
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\TravelLog] "MaxSize"=dword:ffffffff
I am really relaxed to find this information as I spent really long time to solve this issue. Hope this will help someone. -
Margin not the same as in browser
I have a site created as this :
<div id="container">
<div id="header"></div>
<div> id="content">my content goes here>
<div id="leftcolumn">links and things go
here</div>
<div id="rightcolumn">links and things go
here</div>
<div id="footer">my footer links go here</div>
</div>
All info goes in the rigth column. I have problems with the
margin. My textt ends directly to the right border of the
rightcolumn.
Now I already tried the following to have more space between
the text and the right border
1) made a class called p2 and put a padding of e.g. 50 px.
or
2) amended the padding in the rightcolumn container.
I used one of them, never together.
In DW the result is fine then as the text indeed goes further
away from the border. If I click F12 to have a preview in the
browser, the result is still ok.
I upload the page to my server and .............result has
dissappeared.
An example of one of my pages :
http://www.lotolux.com/actingcareer.html
You will notice that the text is almost against the right
border but in DW I do have 50 px. DW shows it also with a nice
space of 50 px in the preview.
Uploaded there is no result at all anymore.
How to solve this? I have IE 7 if that is maybe necessary to
know.
Many thanks for your advise/assistance.
Kind regards
MartineAmong other unrelated warnings/errors, the validator finds
this -
Error Line 177, Column 5: end tag for element "div" which is
not open.
</div>
Fix that and see what happens.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"mightyxena" <[email protected]> wrote in
message
news:gjcjbs$a7j$[email protected]..
>I uploaded again and all of a sudden it worked.
>
> New problem with only 1 page
http://www.lotolux.com/actingcareer.html
> After uploading and watching at home with IE7 all is
showing correctly.
>
> When I watch it at the office (IE6) the layout is
totally messed up.
>
> It is very strange as all pages are built up the same
way. I though first
> it
> was because of the empty left column but then again I
have other pages the
> same
> way and they appear as I created them.
>
> What might be the problem here?
>
> Kind regards
> Martine
>
> -
Greetings,
I have been testing a small java applet for a phpbb mod, named Proxy Revealer
Basically the java applet "phones home" (connects back to the http host serving the applet) via a Socket connection to establish a direct connection, then basically writes a custom HttpRequest string with some parameters passed to it from the php script's HTML, so it looks like:
GET /probe.php?mode=java&ip=initial_external_ip&extra=random_unique_identifier&local=LAN_IP&vendor=java_vendor&version=num&user_agent=browser
which would allow the php script on the host/site to verify the client's IP address, and compare it with the initial IP that requested the page which loaded the applet, as well as Internal LAN IP if user is behind a router/NAT
This allows the php script to unmask & log proxied users for security purposes, in case of spamming/trolling on the forum, in an attempt to thwart the average spammers/trollers at the least.
The applet and the code works as desired and in various browsers, but only on JRE 1.6.0_02 and earlier releases...
It seems ever since JRE 1.6.0_03, this has stopped working when the end-user has HTTP Proxy configured in the browser.
I tested latest JRE as of date, ver 1.6.0_07, with IE6, IE7 & Firefox 2.0.0.15 and 2.0.0.16 and it still exhibits this odd behavior.
This is what appears in Java Console when I try to visit the page serving this applet with an HTTP proxy configured in browser:
java.security.AccessControlException: access denied (java.net.SocketPermission xxx.xxx.xxx.xxx:80 connect,resolve)
xxx.xxx.xxx.xxx is the resolved IP of the server host that is hosting the applet, so basically the same origin....
If I disable the HTTP Proxy configured in the browser, the applet connects back fine. So it only happens when HTTP Proxy is configured in browser..
Is this a new feature or a bug??
Here's the java applet code:
// httpRequestor.java
// Copyright (c) MMVI TerraFrost
// Licensed under the GPL.
import java.applet.*;
import java.net.*;
public class HttpRequestor extends Applet
public void start()
try
String javaVendor = System.getProperty("java.vendor");
String javaVersion = javaVendor.startsWith("Microsoft") ? System.getProperty("java.version") : System.getProperty("java.vm.version");
Socket sock = new Socket(getParameter("domain"), Integer.parseInt(getParameter("port")));
String path = getParameter("path")+"&local="+sock.getLocalAddress().getHostAddress()+
"&vendor="+URLEncoder.encode(javaVendor, "UTF-8")+
"&version="+URLEncoder.encode(javaVersion, "UTF-8")+
"&user_agent="+URLEncoder.encode(getParameter("user_agent"), "UTF-8");
String httpRequest = "GET "+path+" HTTP/1.0\r\nHost: "+getParameter("domain")+"\r\n\r\n";
sock.getOutputStream().write(httpRequest.getBytes());
sock.getInputStream();
catch (Exception e)
e.printStackTrace();
}and the relative portion from the probe.php script loading it:
$java_url = $path_name . "probe.$phpEx?mode=java&ip=$client_ip&extra=$sid,$key";
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
</head>
<body>
<applet width="0" height="0" code="HttpRequestor.class" codebase=".">
<param name="domain" value="<?php echo $server_name; ?>">
<param name="port" value="<?php echo $board_config['server_port']; ?>">
<param name="path" value="<?php echo $java_url; ?>">
<param name="user_agent" value="<?php echo htmlspecialchars($HTTP_SERVER_VARS['HTTP_USER_AGENT']); ?>">
</applet>
</body>
</html>A barebone/proof-of-concept demo (also employing a couple other tricks to detect CGI proxies in the same page):
http://www.frostjedi.com/terra/scripts/ip_unmasker.php?mode=utf16
Another similar java applet code (with demo) is found towards the bottom of this page:
http://www.burghardt.pl/2008/05/web-browser-anonymity-threats/
Both of these demos work with JRE versions 1.6.0_02 and older, but fail to work (in both IE & FF) with JRE 1.0.6_03 and newer - up to 1.0.6_07 which is latest as of date
Thanks,
JasmineThought I might elaborate on the details of the bug report I made, perhaps someone needs to add to it or needs to understand the problem better.
Description:
Unsigned applets cannot connect back via Socket to the originating host (from codebase) when a Proxy is configured in user's browser (IE7/IE6//FF3/FF2 tested) and when origin host's IP address doesn't resolve back to the same hostname.
Example:
www.hostingsite.com resolves to 1.2.3.4
but, 1.2.3.4 resolves back to 4.3.2.1-somewebhost.com
Affects JRE versions 1.6.0_03 - 1.6.0_07
This wasn't a problem in 1.6.0_02 or prior versions according to my tests.
An AccessControlException is thrown about SocketPermission:
I believe the security manager is doing unnecessary lookups, even after the resolved IP matches to the IP of the origin host. This is apparent from the fairly long delay before the ACE is thrown about SocketPermission.
Steps to Reproduce:
1. Configure HTTP Proxy in browser (IE/Firefox)
2. visit an html page that embeds a simple applet that tries to connect back to origin host whose hostname resolves to an IP address but the IP address resolves to a different hostname. (example code below)
Expected Result:
Applet should be able to connect back to originating host via Socket connection or write (post) to a URL on origin host (which requires a new Socket connection back)
Actual Result:
Socket sock = new Socket(Proxy.NO_PROXY);
InetSocketAddress sockAddress = new InetSocketAddress(getCodeBase().getHost(), port);
sock.connect(sockAddress);The above snippet of code would throw an ACE about SocketPermission when applet tries to initiate sock.connect
Moreover,
URL urlRequest = new URL(this.getCodeBase()+path);
HttpURLConnection conn = (HttpURLConnection)urlRequest.openConnection(Proxy.NO_PROXY);
conn.getOutputStream();would also throw an ACE about SocketPermission when the applet tries to initiate Socket connection for the conn.getOutputStream() call.
Error Message(s):
java.security.AccessControlException: access denied (java.net.SocketPermission x.x.x.x:80 connect,resolve)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkConnect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at HttpRequestor.start(HttpRequestor.java:16)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
x.x.x.x being the resolved IP address of the origin server
Source code for an executable test case:
import java.applet.*;
import java.net.*;
public class HttpRequestor extends Applet
public void start()
try
Socket sock = new Socket(Proxy.NO_PROXY);
InetSocketAddress sockAddress = new InetSocketAddress(getCodeBase().getHost(), Integer.parseInt(getParameter("port")));
sock.connect(sockAddress);
String path = getParameter("path")+"&local="+sock.getLocalAddress().getHostAddress();
String httpRequest = "GET "+path+" HTTP/1.0\r\nHost: "+getCodeBase().getHost()+"\r\n\r\n";
sock.getOutputStream().write(httpRequest.getBytes());
sock.getInputStream();
catch (Exception e)
e.printStackTrace();
Workaround:
The only possible workaround I could find is if the the applet can be loaded from IP-address in the codebase URL to avoid the unnecessary lookups by the SecurityManger.
This, however, maybe very difficult to use in most virtual-hosting environment, and IE browsers older than IE7 would most likely throw an error like "Class not found".
Example, if www.hostingsite.com resolves to 1.2.3.4
and http://1.2.3.4 goes to http://www.hostingsite.com
Change the codebase URL in the html embedding the applet, from:
"http://www.hostingsite.com/classes"
to:
"http://1.2.3.4/classes"
I also forgot to mention in my bug report that this would also be quite a big problem in server farms, where the origin-hostname resolves to multiple IP addressses and when those IP addresses do not all resolve back to the same hostname. -
Spry text fields "invisible" on ie6/ie7
Hi, Attached is a screen shot of how spry text fields look in their initial state under ie6 and ie7 on a project at www.printingcommunication.com/wa/seattle/contact.html
They are "invisible".
I'm using Dreamweaver CS4 and spry 1.6.1. I have not made any modifications to the default spry yet. This works ok on every other browser. Does any one know what modifications I need to make to have these text fields show ok under IE6/IE7? Thanks...With all associated files (including the apparently interfering css file) linked, open the page in Dreamweaver.
Make sure your CSS Styles Panel is open;
select "Current" on that panel to get a look at the styles that are in play.
In the bottom of the Styles panel, select the asterisk-asterisk-downarrow icon at the bottom left, so that you see only the styles in use.
Then (if you have the option) select the right-hand cascade button...it looks like a little flight of stairs.
Okay, in Design View, click on one of your input fields. Leave the cursor there and look over at the CSS Styles Panel. You will see the cascade of styles that are affecting that item. The lowest-most will be the most specific, but all that affect your item will show in a list.
Make sure the bottom of the styles panel is opened up...you may have to drag it open if you haven't used it; close other panels below to make more room.
You will see there all the attributes that have been defined for the particular style you are working with.
This should help you to focus on what is exactly going on. The form tags come with their own styling, so you'll have to look for styles that explicitly state something like input {border: none;} You may need to step up the list (pausing to check the attributes list) to find the affecting style.
By the same token, you can alter the styling as you wish, for instance:
<style type="text/css">
<!--
input {
border: solid 1px red;
-->
</style>
Of course, if you are using Spry Validation Text Fields, you might not want to make them red, as I have done! They will have their own set of colors.
I hope some of this helps your situation. If anything, it will let you get "up close and personal" with your CSS Styles Panel
Z -
Cfinput datefield gives wrong display in IE6 IE7
With CF8, I try cfform=html with cfinput type=datefield. When
I use 2 input dates, and click on the calendar image, the opened
calendar window appears behind the second cfinput. You can check
the result here :
datefiled.pdf
The code is quite simple :
<cfform action = "cfinput.cfm">
<p> </p>
<cfinput type="datefield" name="MyDate1"
firstDayOfWeek="1">
<p> </p><p> </p>
<cfinput type="datefield" name="MyDate2"
firstDayOfWeek="1">
<p> </p>
<input type="Submit" name = "" value="Submit">
</cfform>
The display problem appears in IE6 and IE7, but not in
Firefox. Is this a bug, or any workaround is already know ?
Thanks.
Firmus.<input type="Submit" name = "" value="Submit">
corrected to: <input type="Submit" name = "sbmt"
value="Submit">
> Is this a bug
Seems so. You should report it.
i suspect the likely cause to be the z-index value.
Z-index
is a CSS property. It determines one element's stack order in front
of or behind another. An element with a higher z-index will be
stacked in front of one with a lower value. The default value is 0,
for example, in the case where you don't specify the z-index.
To see the relevance to your case, open in Internet Explorer
a page containing just the form. View the source code. The
Coldfusion engine has automatically arranged the HTML within the
form into two main DIV blocks, each containing other DIVs. You will
notice that neither of the two main DIV blocks has z-index in its
style attribute. It means that they have the same z-index value,
namely, the default value 0.
The calender image at the top has the same z-index value as
the input field at the bottom, namely, the default value 0. One
would naturally expect that order of appearance would be the
deciding factor. Apparently, order of appearance is important in
Mozilla but not in Internet Explorer. It seems that, if two
elements have the same z-index, Internet Explorer may show the
second one in front of the first.
>... any workaround ...
Yes, here is one:
<cfform action = "cfinput.cfm">
<div class="df1" style="position:relative;">
<p> </p>
<cfinput type="datefield" name="MyDate1"
firstDayOfWeek="1">
</div>
<div class="df2" style="position:relative;z-index:-1;">
<p> </p><p> </p>
<cfinput type="datefield" name="MyDate2"
firstDayOfWeek="1">
</div>
<div class="sbmt">
<p> </p>
<cfinput type="Submit" name = "sbmt" value="Submit">
</div>
</cfform> -
How to compensate for differences in IE6 / IE7
I have pages located at:
www.salleboise.com/club_tournaments.cfm and the other at
http://www.salleboise.com/tournament.cfm?tid=1&f=1&e=1
The pages appear fine in IE6 and FF (as far as I know), but
in IE7, they 2
pages positioning isn't the same (at the top of the page).
How can I determine what changes I need to make in a CSS file
so I can make
sure they look the same in either version.
I'm sure I can come up with a way to load the correct one
based on the
browser detected.....Hmmmm, that's odd, there seems to be more spacing before the
wording of
Tournament Schedule . on
http://www.salleboise.com/club_tournaments.cfm
as
apposed to the wording Spring Fling 2008 on
http://www.salleboise.com/tournament.cfm?tid=1&f=1&e=1.
I'm noticing this within XP IE7......
Does it look the same to you??
"Pablo" <[email protected]> wrote in message
news:fk6go4$guf$[email protected]..
> It looks fine to me in IE7 Win XP.
>
> --
> Kind Regards
>
> Pablo
> .................................
> An Eye of Menorca
> www.dellimages.com
> .................................
> "Steve Grosz" <[email protected]> wrote in
message
> news:fk6e2d$e12$[email protected]..
>>I have pages located at:
>> www.salleboise.com/club_tournaments.cfm and the
other at
>>
http://www.salleboise.com/tournament.cfm?tid=1&f=1&e=1
>>
>> The pages appear fine in IE6 and FF (as far as I
know), but in IE7, they
>> 2 pages positioning isn't the same (at the top of
the page).
>>
>> How can I determine what changes I need to make in a
CSS file so I can
>> make sure they look the same in either version.
>>
>> I'm sure I can come up with a way to load the
correct one based on the
>> browser detected.....
>>
>>
>>
>>
>
>
> -
Open new window in the same Window
Im developing a project in JavaFX where I wish to open the new window in the same window
Here is my code :
Stage st=(Stage)((Node)t.getSource()).getScene().getWindow();
I tried this but its giving an exceptionIt is possible to specifiy a named window instead of _blank.
So you could use the following instead:
web.show_document('html/hello.htm','my_window');
where my_window can be anything you want to call that browser window.
However, I have discovered that if you put this in a button trigger, the second time you press the button (if the window is still open) it will not take focus - ie. it remains in the background.
You can get around this by closing the window if it is already open:
web.show_document('html/close.htm','my_window');
web.show_document('html/hello.htm','my_window');
The close.htm needs to contain some javascript to close the window:
<html>
<body onload="closeit()">
<script>
function closeit()
window.opener = top;
window.close();
</script>
</body>
</html>
Apparently XP SP2 is a little stricter with javascript and may not allow this. Also, not sure if this works in all browsers, I only tried IE6. -
Open new document in the same window as before..how to?
Dear all,
I need to open a image document in a new browser window each time the user clicks on a particular button. The built-in I'm using is web.show_document('URL', '_blank'). But this opens a new browser window each time the button is clicked. The client wants to have open it in the first time in the day (in a new browser window) and later on open the new image on the same browser window. Do not want to open a new browser. I have tried the '_top' and '_parent' but they replace my application.
Is there any way to open the image in the same open window? Please advice.It is possible to specifiy a named window instead of _blank.
So you could use the following instead:
web.show_document('html/hello.htm','my_window');
where my_window can be anything you want to call that browser window.
However, I have discovered that if you put this in a button trigger, the second time you press the button (if the window is still open) it will not take focus - ie. it remains in the background.
You can get around this by closing the window if it is already open:
web.show_document('html/close.htm','my_window');
web.show_document('html/hello.htm','my_window');
The close.htm needs to contain some javascript to close the window:
<html>
<body onload="closeit()">
<script>
function closeit()
window.opener = top;
window.close();
</script>
</body>
</html>
Apparently XP SP2 is a little stricter with javascript and may not allow this. Also, not sure if this works in all browsers, I only tried IE6. -
How do you keep the same URL connection connected continuously?
I am trying to extract information from a web page, but it puts a cust_id in the middle of the URL. It generates the cust_id randomly everytime you use the site. I connect to the initial URL to find the cust_id, I substring that to the new URL and then make a new connection to extract the information, but the web page gives me an error saying that it doesn't recognise the cust_id. As if it was a new connection with the wrong cust_id.
How can I keep the first connection open and with the same cust_id information and then jump to another web page but using the initial connection. Using IE6 I can just cut and paste the second URL and get to the page, but with my java application it doesn?t work. Please have a look at my code and let me know if I am doing anything wrong.
URL inputURL;
String inputLine;
URLConnection connection;
String page = "";
int x;
String cust_id1 = "";
String cust_id2 = "";
String site;
File outputFile = new File("web.txt");
FileWriter out = new FileWriter(outputFile);
try
inputURL = new URL("http://www-ets.woolworths.com.au/ets/owa/login?topage=search");
connection = inputURL.openConnection();
BufferedReader inputStream = new BufferedReader(new InputStreamReader(connection.getInputStream()));
while ((inputLine = inputStream.readLine()) != null)
page = page + inputLine;
System.out.println(inputLine);
x = inputLine.indexOf("cust_id=");
if (x != -1)
cust_id1 = inputLine.substring(x, x + 14);
PrintWriter file = new PrintWriter(new FileOutputStream("web.txt"));
out.write(page);
out.close();
System.out.println("1st time successful");
System.out.println(cust_id1);
//inputStream.close();
//extracted the customer id, now able to search for the product
//test for milk
site = "http://www-ets.woolworths.com.au/ets/owa/items?search_pattern=milk&";
site = site + cust_id1;
site = site + "&imode=search&search_option=";
System.out.println(site);
inputURL = new URL(site);
BufferedReader inagain = new BufferedReader(new InputStreamReader(inputURL.openStream()));
//tried the connection way
//connection = inputURL.openConnection();
//BufferedReader in = new BufferedReader(new InputStreamReader(connection.getInputStream()));
while ((inputLine = inagain.readLine()) != null)
//System.out.println(inputLine);
x = inputLine.indexOf("cust_id=");
if (x != -1)
cust_id2 = inputLine.substring(x, x + 14);
System.out.println(cust_id1);
System.out.println(cust_id2);
System.out.println("2nd time completed");
inputStream.close();
catch(ArrayIndexOutOfBoundsException obe)
System.out.println("Usage: FetchURL url");
catch(IOException ioe)
System.out.println("IO Exception");Please have a quick look at my code and see if I am doing anything wrong. I havent been able to set the correct cookies and the output html page comes up with an error saying that it could not retrieve my request. This time there is no mention of invalid cust_id.
try
URL inputURL = new URL("http://www-ets.woolworths.com.au/ets/owa/login?topage=search");
connection = inputURL.openConnection();
System.out.println("filename = " + inputURL.getFile());
BufferedReader inputStream = new BufferedReader(new InputStreamReader(connection.getInputStream()));
while ((inputLine = inputStream.readLine()) != null)
//System.out.println(inputLine);
page = page + inputLine;
x = inputLine.indexOf("cust_id=");
if (x != -1)
cust_id = inputLine.substring(x + 8, x + 14);
out.write(page);
out.close();
System.out.println("extracted cust_id: " + cust_id);
for (int i = 1; i <= 30; ++i)
System.out.println(" Header " + i + ": " + connection.getHeaderFieldKey(i) + ": " + connection.getHeaderField(i));
header = header + connection.getHeaderFieldKey(i);
header = header + ": ";
header = header + connection.getHeaderField(i);
outcookie.write(header);
outcookie.close();
inputStream.close();
//extracted the customer id, now able to search for the product
//test for milk
String url2 = "http://www-ets.woolworths.com.au/ets/owa/items";
//String url2 = "http://www-ets.woolworths.com.au/ets/owa/login?topage=search";
inputURL = new URL(url2);
connection = inputURL.openConnection();
connection.setDoOutput(true);
//connection.setUseCaches(false);
System.out.println("filename = " + inputURL.getFile());
String date = "; expires=Mon, 28 Jan 2002 02:53:17GMT; path/;";
String date1 = "expires=Sun, 31 Dec 1989 14:00:00 GMT; path/;";
connection.setRequestProperty("cookie", "qwc=" + cust_id + date);
connection.setRequestProperty("cookie", "cust_id=" + cust_id + "; path=/;");
connection.setRequestProperty("cookie", "cd=2%40142%40%40%40%40N%40; path=/;");
connection.setRequestProperty("cookie", "state=NSW; path=/;");
connection.setRequestProperty("cookie", "dsd=1; path=/;");
connection.setRequestProperty("cookie", "sb1=0%2A%2D645746%2D0%2A; path=/;");
connection.setRequestProperty("cookie", "sb2=0; " + date1);
connection.setRequestProperty("cookie", "sb3=0; " + date1);
connection.setRequestProperty("cookie", "sb4=0; " + date1);
connection.setRequestProperty("cookie", "sb5=0; " + date1);
connection.setRequestProperty("cookie", "sb6=0; " + date1);
connection.setRequestProperty("cookie", "sb7=0; " + date1);
connection.setRequestProperty("cookie", "sb8=0; " + date1);
connection.setRequestProperty("cookie", "sb9=0; " + date1);
connection.setRequestProperty("cookie", "sb10=0; " + date1);
connection.setRequestProperty("cookie", "sbn=; path=/");
connection.setRequestProperty("cookie", "search=milk; " + date1);
//connection.setRequestProperty("Content-type", "application/octet-stram");
//connection.setRequestProperty("Content-type", "application/x-www-form-urlencoded");
//String parms = "?search_pattern=" + URLEncoder.encode("milk") + "&cust_id=";
//parms = parms + URLEncoder.encode(cust_id);
//parms = parms + "&imode=" + URLEncoder.encode("search") + "&search_option=";
//System.out.println("parms : " + parms);
String parms = "?search_pattern=milk&cust_id=";
parms = parms + cust_id;
parms = parms + "&imode=search&search_option=";
System.out.println("parms : " + parms);
PrintWriter outStream = new PrintWriter(connection.getOutputStream());
outStream.println("parms");
outStream.close();
BufferedReader inputStream1 = new BufferedReader(new InputStreamReader(connection.getInputStream()));
//BufferedReader inagain = new BufferedReader(new InputStreamReader(connection.getInputStream()));
while ((inputLine = inputStream1.readLine()) != null)
//System.out.println(inputLine);
page2 = page2 + inputLine;
x = inputLine.indexOf("cust_id=");
if (x != -1)
cust_id2 = inputLine.substring(x + 8, x + 14);
out2.write(page2);
out2.close();
System.out.println("2nd attempt cust_id" + cust_id2);
for (int i = 1; i <= 30; ++i)
System.out.println(" Header " + i + ": " + connection.getHeaderFieldKey(i) + ": " + connection.getHeaderField(i));
header2 = header2 + connection.getHeaderFieldKey(i);
header2 = header2 + ": ";
header2 = header2 + connection.getHeaderField(i);
outcookie2.write(header2);
outcookie2.close();
inputStream.close();
}The original web page to get the cookie is
http://www-ets.woolworths.com.au/ets/owa/login?topage=search
Enter a search product eg milk and that is the second page I am trying to extract.
You will notice in the middle of the url is cust_id.
Am I going about this 2 pages completely wrong? -
Use of Multiple instances of the same browser...
Hi folks,
I have a question...
I have inherited a large APEX application, it uses Oracle SSO to log in.
We are migrating the application to a new set of servers and are running regression tests.
The testers are logging in using IE6 and opening multiple instances of the application at the same time on both the oldTest and newTest servers.
So at any one time, there can be:an application Admin user (username ADMINTEST123) logged into the application on oldTest
an application Admin user (username ADMINTEST123) logged into the application on newTest
an application standard user (username TEST123) logged into the application on oldTest
an application standard user (username TEST123) logged into the application on newTestIs this supported?
Could someone tell me or point me toward the documentation or thread that lists what is supported / unsupported for browser use with APEX and SSO?
Thanks in advance,
Gus..Hi lev,
thanks but sorry, that doesn't really help me, I'm talking about users and their logins, not developers using different browsers while developing apex.
Also, our users are locked down to IE6 for the foreseeable future.
Hi Scott,
I found the following quote from this web site http://aranea.zuavra.net/index.php/80/ about Cookie separation in modern browsers
*4.3. Internet Explorer 6.0*
Finally, Explorer is the one that introduces an interesting quirk. It too has separate settings per machine users, although it cannot make use of multiple profiles for the same user.
The interesting thing is the way it handles session cookies. Normally, long term a.k.a. non-session cookies are stored on disk in the user preferences. However, Explorer has a setting called “browse in new process” which, if enabled, forces a new session with each new window. That’s right, this means that every time you open a new Explorer window it opens a separate process, even though the windows belong to the same user! And, in turn, these processes will NOT share their session cookies.
Note: By “new window” I mean windows started from shortcuts, from Start Menu entries or by calling iexplore.exe directly somehow (from a file manager, for example). Windows started via Control+N or File/New window run in the same process and share session cookies. Also, please note that it’s a lot more likely for users to click their taskbar shortcut when they need a new window than it is to use the File menu or the Control+N shortcut.+
Furthermore, ever since version 5.0 the setting cannot be changed manually, by the user. It is automatically determined by the browser based on how much RAM the machine has. Anything with at least 32 MB of RAM gets the “one window, one process” behaviour, which nowadays means almost all machines.
I have tested the *"new window"* opening methods and found that for IE6 there is NO NEW PROCESS started when the user opens a new window in the following 3 ways:
from an open window, File>New>Window
from an open window, CTRL+N
from an open window, right click>Open in New Window
So from this can I conclude that from what you say and the results above we may get issues if users login and then open new windows in those ways?
Thanks,
Gus.. -
Apex mixes applications working with two windows at the same time
Hi all, while developing in Apex I have found the following problem:
Working with two different applications at the same time, the browser goes from one to another indistinctly.
To reproduce the problem:
1. Open the same application builder in two different Firefox windows
2. Open a different application in each window (In my case: application 103 in window1 and application 105 in window2)
3. Go to shared components in both windows (window1 first)
- window1 breadcrumbs show: Home > Application Builder > Application 103 > Shared Components
- window2 breadcrumbs show: Home > Application Builder > Application 105 > Shared Components
4. Click in any shared component in window1 (Templates, Authentication Schemes...)
- window1 breadcrumbs show: Home > Application Builder > Application *105* > Shared Components > Templates (Application 105 instead of 103)
Is it a bug? I have read the known issues [[Here]|http://www.oracle.com/technetwork/developer-tools/apex/downloads/apex402knownissues-189793.html] but it does not appear.
Related Data:
Application Express version 4.0.2.00.07
Firefox 3.6.15
SO: Windows XP
The error is not reproduced with IE7. I have not tested any other browser.
Regards,
MolinaIf you tried opening up two pages in the same application each of which modifies the same page items, you would notice the same issue.
This is because, in a session there is only one set of values for page items(or application items) and every parallel call to the same page would update the same bind variables.
Now the development environment or Apex Builder is also an apex application , and when try and open up the pages as you mentioned, they both access the same Application Builder page and sets/resets any existing values for those variables(and maybe cookies too if they are being used) , hence the 'mixing up'.
If that didn't convince you, check the URL of both the pages when you load them, they should show the same page number ( f?p=APP_ID:PAGE_NUMBER syntax). Imagine if the same approach was done with one of your application pages, say an edit form opened from a report with multiple records in multiple tabs like what happened with this case: {message:id=9346663}
So this really isn't a bug in a way, because that is how session states in apex is/was maintained. Ofcourse if they used another kind of development platform for building pages, it may have been avoided, but thats an altogether different point in itself. -
Using two or more JRE's at the same time?
Our company uses 1.4.2-b08 as default JRE, but some departments still have 1.3.1 as standard since business applications must use this version. We've tried migrating to 1.4.2 and 1.5.0 but they were not backwards compatible (or simply not JRE compliant programmed).
What I'd like to do is deploy 1.5.0 as 'default JRE' so that every website or intranetsite through IE6/Firefox is secure, and leave old JRE's on every workstation so that non-browser applications can still run.
Questions:
-if some applications run through a browser, is there a possibility through commandlines or startup options in a link or batchfile to use the non-default JRE?
-using a link that refers to the 1.4.2 or 1.3.1 java.exe (plus the other variables for the application to run of course, instead of simply java.exe without path/directory names), seems to work fine - but does it?
-with starting an old JRE through this commandline, do the libraries of the same the new/default JRE version get called on? I'm not sure whether Windows or the JRE first look in the environment settings of Windows XP, in the current path of java.exe and higher subdirectories or in the registry?Our company uses 1.4.2-b08 as default JRE, but some
departments still have 1.3.1 as standard since
business applications must use this version. We've
tried migrating to 1.4.2 and 1.5.0 but they were not
backwards compatible (or simply not JRE compliant
programmed).
What I'd like to do is deploy 1.5.0 as 'default JRE'
so that every website or intranetsite through
IE6/Firefox is secure, and leave old JRE's on every
workstation so that non-browser applications can
still run.
Questions:
-if some applications run through a browser, is there
a possibility through commandlines or startup options
in a link or batchfile to use the non-default JRE?If you're using applets, or Java Web Start to start applications, yes. Applets use html, WS uses jnlp files. Other than these, not that I'm aware of.
-using a link that refers to the 1.4.2 or 1.3.1
java.exe (plus the other variables for the
application to run of course, instead of simply
java.exe without path/directory names), seems to work
fine - but does it?If you're running java applications from the commandline (ie, executing java.exe) then yes, if your machine is correctly configured.
-with starting an old JRE through this commandline,
do the libraries of the same the new/default JRE
version get called on? Yes - see prior reply.
I'm not sure whether Windows
or the JRE first look in the environment settings of
Windows XP, in the current path of java.exe and
higher subdirectories or in the registry?If you supply a full path to an executable that is the executable that will run. If you machine is mis-configured, other problems can subsequently occur. -
When i do a ctrl+hyperlink click in my website running in firefox, it opens up in a new tab, I dont want the ctrl+hyperlink click to open in new tab or new window. It should open in the same browser. (works as required in IE 7)
== This happened ==
Every time Firefox openedCtrl+left click on a link or bookmark will open in a new tab. That is a standard Firefox keyboard shortcut. Middle-click will do the same (Middle-click = press the scroll wheel). On the following page, scroll down to "Web Navigation" or Find (Ctrl+F), enter "Ctrl+lef" (without quotation marks) in the Find box. Read the footnote 4 about how to change from background tab to foreground tab.
See: http://www.7is7.com/software/firefox/shortcuts.html
To open a link or bookmark in the currently active tab, simply click on the link or bookmark. Your current tab will be over-written with the new link or bookmark.
The following page shows the shortcuts for IE7. Click "Working with tabs". It shows Ctrl+click will "Open links in a new tab in the background" and on the next line, it shows CTRL+SHIFT+click will "Open links in a new tab in the foreground".
See: http://windows.microsoft.com/en-US/windows-vista/Internet-Explorer-keyboard-shortcuts#
Maybe you have installed something to change the shortcuts on your installation?
<u>'''''Other Issues''''': to correct security/stability issues</u>
<u>'''Update Java'''</u>: your version 1.6.0.18; current version 1.6.0.20 (<u>important security update 04-15-2010</u>)
''(Windows users: Do the manual update; very easy.)''
See: '''[http://support.mozilla.com/en-US/kb/Using+the+Java+plugin+with+Firefox#Updates Updating Java]'''
Do the update with Firefox closed
Maybe you are looking for
-
Hi im trying to help my friend, when he loads up the new motion 5 and clicks on his video on the left browse section motion crashes and shows this crash report. http://pastebin.com/p62P2nGe He is using an imac with 4GB of ram 3.2 GHZ intel i3 Process
-
I have an emac running 10.5.8 I purchased a copy of snow leopard from apple. upon attempting the install i read that the computer is not an intel. I believe this is a power PC? Is there a way to upgrade to the snow leopard or am I stuck with this v
-
hi i am learning how to Move data to flat file to db..i try to connect flat file i create logical schema and model upto reverse engineer i did i correctly get all column names from flat file but while try to see data its showing error " Execution of
-
A lot of folks are having "issues" with battery life after the over the air (OTA) update and there has been much speculation as to the cause. My frustrattion level increased with each new post I read that did not reveal a resolution. The back and f
-
Help opening PDF in windows 7 in Mac using parallels
HI can anyone help... I recieve this error "Warning: Distiller will not process .PDF or .JDF file extensions" when i try and open a PDF while in windows (v7) via parallels (v8) using my mac (snow leopard).