Jump to content

IE gets visible...


Recommended Posts

Hi,

I have a little problem wiht my script. I want to automatize some actions on web page... And i did it. Then i want to make browser page "invisible"... But this browser pages keep popping up...

here is the part of my code...

$oIEx = _IECreate(0)
        _IEAction($oIEx,"invisible")
        _IENavigate($oIEx, "http://virtonomics.com/lien/window/unit/supply/multiple/vendor:"&$MakeOrderIDx&"/product:"&$productID1x&"/brandname:0")

All variables are declared before... But the IE pages keep popping up.. This code in a loop. So pages pop-up then go invisible..and again.. and again...

Anybody knows what is the problem?

Link to comment
Share on other sites

Javascript in the page has the same ability to set the page invisible as _IEAction does. You are likely fighting with the page developer.

Dale

Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y

Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Link to comment
Share on other sites

Hi,

I thought that too...

But weird thing is, when i try to open one browser, it's invisible...

But if i try to open 2 or more pages they start popping..

OR

Is there an option for IE to make it don't pop at this pages...

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>Supply</title>
        <link href="/css/main.css" rel="stylesheet" type="text/css" />
        <link href="/css/window.css" rel="stylesheet" type="text/css" />
        <link href="/css/realms/lien.css" rel="stylesheet" type="text/css" />
        
        <script type="text/javascript" src="/js/jquery.min.js"></script>
        <script type="text/javascript" src="/js/all.js"></script>

        
        <meta http-equiv="Expires" content="Tue, 01 Jan 2001 18:00:00 GMT" />
        <meta http-equiv="Pragma" content="no-cache" />
        <meta http-equiv="Cache-Control" content="no-cache" />

    </head>
    
    <body class="window" >

                
            
                
            
                
        
<!--[if lte IE 6]>
<style>

body { 
    margin-top: -6em;
    
 }
 
#headerWithSeparator {width: 102%; } 

</style>
<![endif]-->

<script>

$(document.body).css('padding-top', '6em');

</script>

<div id="headerWithSeparator" >

    <div class="headerContainer" >

    <img class="imgContainer" 
         alt="warehouse of a company Rapsag Inc" 
         title="warehouse of a company Rapsag Inc" 
         src="/img/unit_types/warehouse.gif" />

    <div class="unit_name">
        GP-Mark Logistics <br />
        <span class="unit_company">
                    Location 
                <abbr title="China, Northern China and Tibet" >

                    Lanzhou             </abbr>
        </span>
    </div>

    
    
    <div class="headerSeparator"><img src="/img/1.gif" width="1" height="1" border="0" /></div>

    </div>
</div>

<span><b>Products:</b> <img src="/img/products/milk.gif" align="middle" style="margin-right: 10px" alt="" border="0" />Milk</span>

<span style="padding-left: 10px;"><b>Quantity:</b> 13 507 490</span>
<span style="padding-left: 10px;"><b>Available:</b> 0</span>
<span style="padding-left: 10px;"><b>Quality:</b> 1.38</span>
<span style="padding-left: 10px;"><b>Price:</b> 199.00$</span>

<hr size="1" />







<script type="text/javascript">
    function checkUncheckUnit(o)
    {
        $('#'+ o.id +'_qty').attr({disabled : !o.checked, value : o.checked ? 1 : 0 }).focus();
        showresult(o.form);
    }
    
    function showresult(oForm)
    {
        iTotalQty = 0;
        fTotalPrice = 0;

        $.each
        (
            $('.unit'), 
            function ()
            {
                if (this.checked)
                {
                    iTotalQty       += parseInt($('#'+ this.id +'_qty').attr('value'))
                    fTotalPrice += parseFloat($('#'+ this.id +'_onecost').attr('value')) * parseInt($('#'+ this.id +'_qty').attr('value'));
                }
            }
        )
        
        $('#result_qty').html(sayNumber(iTotalQty));
        $('#result_cost').html(sayMoney(fTotalPrice));
        $('.button115').attr('disabled', !iTotalQty);
        
    }
</script>

<form action="http://virtonomics.com/lien/window/unit/supply/multiple/vendor:2497284/product:1489/brandname:0" method="POST">

<table width="100%" cellspacing="1" class="list">
    <tr>

        <th></th>
        <th>City</th>
        <th>Subdivision</th>
        <th>Per unit with delivery</th>
    </tr>
      
                
    <tr 
        class="even" 
        onmouseover="this.className = 'selected'"
        onmouseout="this.className = 'even'"
    >
        <td class="nowrap">

            <input type="hidden" id="unit_2504490_onecost" value="209.86782673622309" />
            <input type="checkbox" name="unit[2504490]" id="unit_2504490" class="unit" onclick="checkUncheckUnit(this)" />
            <input type="text" name="unit[2504490][qty]" id="unit_2504490_qty" disabled="disabled" value="0" style="width: 80px;" onchange="showresult(this.form)" />
        </td>
        <td><img src="/img/country/flags/kz.gif" title="Kazakhstan" align="left">&nbsp;East Kazakhstan<br /><b>Semipalatinsk</b></td>
        <td><a href="http://virtonomics.com/lien/main/unit/view/2504490"  ><img src="/img/unit_types/shop.gif" align="middle"  style="margin-right: 10px;"  alt= "Store"  title= "Store" /></a><a href="http://virtonomics.com/lien/main/unit/view/2504490"  >Store</a></td>
        <td align="right" class="nowrap">209.87$</td>

    </tr>
    
            
    <tr 
        class="odd" 
        onmouseover="this.className = 'selected'"
        onmouseout="this.className = 'odd'"
    >
        <td class="nowrap">
            <input type="hidden" id="unit_2505501_onecost" value="209.86782673622309" />
            <input type="checkbox" name="unit[2505501]" id="unit_2505501" class="unit" onclick="checkUncheckUnit(this)" />
            <input type="text" name="unit[2505501][qty]" id="unit_2505501_qty" disabled="disabled" value="0" style="width: 80px;" onchange="showresult(this.form)" />
        </td>
        <td><img src="/img/country/flags/kz.gif" title="Kazakhstan" align="left">&nbsp;East Kazakhstan<br /><b>Semipalatinsk</b></td>

        <td><a href="http://virtonomics.com/lien/main/unit/view/2505501"  ><img src="/img/unit_types/warehouse.gif" align="middle"  style="margin-right: 10px;"  alt= "Foodstf Warehouse No Rapsag No Fake Order PLZ (Warehouse)"  title= "Foodstf Warehouse No Rapsag No Fake Order PLZ (Warehouse)" /></a><a href="http://virtonomics.com/lien/main/unit/view/2505501"  >Foodstf Warehouse No Rapsag No Fake Order PLZ (Warehouse)</a></td>
        <td align="right" class="nowrap">209.87$</td>
    </tr>
    
    
</table>

<div>
    <hr size="1" />
    
    <table cellpadding="3" cellspacing="1" class="list" align="left">
      <tr>

        <th>Total order</th>
        <td id="result_qty">0</td>
      </tr>
      <tr>
        <th>For amount</th>
        <td id="result_cost">0</td>
      </tr>

      <tr>
        <td colspan="2"><input type="submit" name="contractit" disabled="disabled" value="Place an order" class="button115" /></td>
      </tr>
    </table>
</div>

</form>


                

    </body>
    
</html>

Here is the ALL code of the page, which i'm try to open...

Edited by continyu
Link to comment
Share on other sites

That is NOT all of the code for the page... see

<script type="text/javascript" src="/js/jquery.min.js"></script>

<script type="text/javascript" src="/js/all.js"></script>

There is no setting to prevent popups from being displayed. You may not be able to solve this without injecting code to change the intended behaviour of the page. Good luck.

Dale

Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y

Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...