Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Jun 2013
    Posts
    8
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Question Javascript frame sticks (chrome browser)

    I am working with code which mainly is VB script, (about 5-10 years old)... I find it working in IE but in chrome browser my frame sticks and does not refresh back to menu bar.

    here is an example, It is a notebar which comes up if clicked, after hitting the save button it is automatically removed, saved and goes back to menu bar. but in chrome it does not, it saves and works, but sticks and does not go back to its menu bar.

    example:

    Code:
    <script language="Javascript">
      <!--
    var randomnumber=Math.floor(Math.random()*100001);
    //alert('Add process requested, B2 = <%=Request("B2")%>');
      <%If Request("B2")<>"" Then%>
        parent.main.location = 'noteMain.asp?Rpt_no=<%=Request("Rpt_no")%>';
      <%End If%>
    alert('menubar.asp?randomnumber='+randomnumber);
      self.parent.menubar.location = 'menubar.asp?randomnumber='+randomnumber;
     //cnv_LoadFrameWithURL(window.parent.menubar, 'menubar.asp?randomnumber='+randomnumber);
     cnv_LoadFramenameWithURL('menubar', 'menubar.asp?randomnumber='+randomnumber);
    
      //-->
      </script>
    any ideas??? please help!!

  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    26,576
    Thanks
    80
    Thanked 4,497 Times in 4,461 Posts
    For starters, don't show us ASP code. Show us the code *AS THE BROWSER* sees it.

    To do so, bring up the page in the browser.
    Then click the VIEW menu of the browser.
    Then click SOURCE or PAGE SOURCE menu item.
    *NOW* copy what you see in the window or editor that pops open showing the source code.

    Oh...and since surely the real work here is being done in the function cnv_LoadFramenameWithURL you would need to show that code, as well.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • #3
    New to the CF scene
    Join Date
    Jun 2013
    Posts
    8
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Code details (correction)

    Hello, sorry I have the whole code here. I copied the entire page source so it may be a little long. I believe the focus is between lines 10-80 is where the problem maybe. Also the cnv_Conversion code will be pasted under neath ( I will mark it) Thank you very much for taking your time to help me out, I appreciate your help very much!
    *********************************





    Code:
    	<script type='text/javascript' src='/JavaScriptSpellCheck/include.js' ></script>
    	<script type='text/javascript'><!-- $Spelling.SpellCheckAsYouType('NOTE')//--></script>
    
    
    
    <head>
    <script language="JavaScript">
    <!--
    var cnv_is_Chrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1;
    function cnv_DoesFrameContainURL(frame, urlstring){
    //alert('cnv_DoesFrameContainURL: frame.name = ' + frame.name + ', cnv_is_Chrome = ' + cnv_is_Chrome);
    	var theElement = frame;
    	if(cnv_is_Chrome){
    		if(theElement.location.indexOf(urlstring) >= 0){
    //alert("true in chrome");
    			return true;
    		}else{
    //alert("false in chrome");
    		return false;
    		}
    	}else{
    		if(theElement.location.href.indexOf(urlstring) >= 0){
    //alert("true in ie");
    			return true;
    		}
    		else{
    //alert("false in ie");
    		return false;
    		}
    	}
    }
    
    function cnv_LoadFrameWithURL(frame, urlstring) {
    alert('cnv_LoadFrameWithURL: frame.name = ' + frame.name + ', cnv_is_Chrome = ' + cnv_is_Chrome  + ', urlstring = ' + urlstring);
    	frame.location.href = urlstring
    }
    
    function cnv_LoadFramenameWithURL(framename, urlstring) {
    alert('cnv_LoadFramenameWithURL: framename = ' + framename + ', cnv_is_Chrome = ' + cnv_is_Chrome  + ', urlstring = ' + urlstring + ', name = ' + parent.frames[framename].name);
    parent.frames[framename].location = urlstring;
    }
    
    //-->
    </script>
    
      <script language="Javascript">
      <!--
      function fillOutline(element) {
      	var value=element.options[element.selectedIndex].value
      	var outline = '';
      	if (value=='IO') outline = 'Initial Facts of Loss: \nPFC: \nCvg: \nDone: \nTo Do: '
      	else if (value=='TL') outline = 'IV or CV: \nTotal Repair Costs: \nCars.Com Comparables: \nEdmunds Value: \nACV: \nNADA: \nAutotrader Comparables: '
      	else if (value=='LIA') outline = 'ID Stmt: \nCD Stmt: \nWitness: \nPR: \nTheory of Negligence: '
      	else if (value=='CVG') outline = 'Coverage Question: \nSummary: '
      	else if (value=='PIP') outline = 'Did claimant own a vehicle? \nDid claimant have insurance? \nDid claimant have full or limited PIP? \nDoes Coverage Apply? \nDid any Pip exclusions apply if so which one(s): :'
      	else if (value=='SEC') outline = 'Reason for delay: '
      	else if (value=='COM') outline = '1) What is the year, make, model & color of the vehicle being claimed? \n2) Who is the owner of the vehicle? \n3) Is the vehicle individually owned or corporately owned? \n4) Who is the main driver of the vehicle? \
      	                                  \n5) Does anyone else ever drive this vehicle? If so, who? \n6) What is the main use of this vehicle? \n7) What is the name of your employer? \n8) Are you self-employed? \
                                          \n9) How long have you been working for this employer? Need the day, month & year if the loss occurred during the month the policy incepted otherwise the month & year is acceptable. \
                                          \n10) What is your occupation? \n11) What do your duties include? \n12) What is the year, make, model & color of the vehicle being claimed? \n13) Do you use your vehicle in the course of your employment? \
                                          \n14) Do you own any other vehicles?   \n15) What is the year/make/model/color of each vehicle you own? \n16) Are any of these vehicles used during the course and scope of your employment? \
                                          \n17) Do you use the vehicle for-hire meaning pickup and/or delivery of property, goods, people or debris, or are any flammables or explosives transported in the vehicle? \
                                          \n18) Do you have any signs/logos on your vehicle advertising the name of your employer? \n19) Do you carry tools/supplies in your vehicle? \
                                          \n20) How many stops do you go to per day, per week, per month? \n21) How many miles per day do you travel? \n22) How much are you reimbursed per mile? \
                                          \n23) Are you reimbursed weekly, monthly or yearly? \n24) Do you claim business miles on your tax returns? \n25) When you went to get the policy with _________________ Insurance Company did you advise the agent the vehicle would be used for business? \
                                          \n26) Did you disclose the nature of your employment with your agent?  \n27) Do you recall signing and business use endorsements on your policy application? \
                                          \n28) During the scope and course of your employment do you go further than 100 miles from the policy address?  \n29) Did you ever travel out of state with the vehicle? \
                                          \n30) How often?  \n31) Where did you go? \n32) We show that you put ...  miles on the vehicle in ... months.  Can you explain you put so many miles on the vehicle in such a short time? \
                                          \n33) Is there anything else you would like to add? '
      	document.form1.NOTE.value = outline;
     		document.form1.NOTE.focus()
      }
      //-->
      </script>
    </head>
    
    <body onLoad="document.form1.NOTE.focus();" topmargin="0" leftmargin="0" style="font-family: Arial" link="#000080" vlink="#000080">
    <table width="100%" align="left" cellspacing="0" cellpadding="0">
      <form method="post" action="notesbar.asp" name="form1">
      <tr>
        <td width="10%" align="center" bgcolor="#999999" valign="bottom" height="50" rowspan="2">
          <font color="#FFFFFF" size="1">
          <A HREF="menubar.asp"><img border="0" src="graphics/backArrow.gif" width="26" height="24" alt="Back"></A><br>
          Back</font><br>
          <img border="0" src="graphics/spacer3.gif" width="1" height="3">
        </td>
        <td align="center" bgcolor="#999999" valign="bottom" height="5" width="10%"></td>
        <td align="center" bgcolor="#999999" valign="bottom" height="5" width="10%"></td>
        <td align="center" bgcolor="#999999" valign="bottom" height="5" width="10%"></td>
        <td align="center" bgcolor="#999999" valign="bottom" height="5" width="10%"></td>
        <td align="center" bgcolor="#999999" valign="bottom" height="5" width="10%"></td>
        <td align="center" bgcolor="#999999" valign="bottom" height="5" width="10%"></td>
        <td align="center" bgcolor="#999999" valign="bottom" height="5" width="10%"></td>
        <td align="center" bgcolor="#999999" valign="bottom" height="5" width="10%"></td>
        <td width="10%" align="center" bgcolor="#999999" valign="bottom" rowspan="2"></td>
      </tr>
      <tr>
        <td bgcolor="#999999" height="45" align="center">&nbsp;</td>
        <td height="85" colspan="7" rowspan="2">
         <TABLE align="center" width="100%" HEIGHT="100%" BORDER=0 CELLSPACING=2 CELLPADDING=0 BGCOLOR=#666666>
            <TR>
            <TD>
        <table width="100%" height="100%" bgcolor="#FFFFFF" cellspacing="0" cellpadding="0">
          <tr>
            <td width="100%" height="1" valign="middle" align="center" bgcolor="#666666" colspan="3"><font color="#FFFFFF" size="2"><b>Add&nbsp;Claim&nbsp;Note</b>
             &nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" name="SPECIAL" value="Y" /></font><span onclick="document.form1.SPECIAL.click()" style="cursor:pointer"><font size="1" color="#FFFFFF">Top Note</font></span></td>
          </tr>
          <tr>
            <td width="70%" height="100%" align="center" bgcolor="#EEEEEE">
              <a href="#" onClick="$Spelling.SpellCheckInWindow('NOTE')"><IMG SRC="/Reports/graphics/spellcheck.gif" BORDER="0" width="29" height="25" ALT="Check Spelling"></a><br>
              <textarea rows="4" name="NOTE" cols="55" tabindex="1" style="font-family: Arial; border: 1 solid #000000"></textarea>
            </td>
            <td width="15%" height="100%" align="center" bgcolor="#EEEEEE">
              <input type="hidden" name="Rpt_No" value="31193">
              <input type="hidden" name="Process" value="ADD">
              <img border="0" src="graphics/spacer6.gif" width="1" height="3"><br>
    
              <SELECT SIZE="5" multiple NAME="Note_Msg" tabindex="32" style="font-family: Arial; font-size: 8pt;">
                <OPTION value="Nobody" SELECTED>- Send To -</OPTION>
                <option>aalmanzar</option>
    <option>aaltieri</option>
    <option>aatest2</option>
    <option>AccDam</option>
    <option>adeniz</option>
    <option>adesouza</option>
    <option>adimasi</option>
    <option>afranks</option>
    <option>afuentes</option>
    <option>ahubert</option>
    <option>alexl</option>
    <option>allstatetw</option>
    <option>alowe</option>
    <option>aloweali</option>
    <option>amarosande</option>
    <option>amiller</option>
    <option>amosca</option>
    <option>andrew</option>
    <option>anotaras</option>
    <option>apradhan</option>
    <option>arobinson</option>
    <option>asauer</option>
    <option>aschuster</option>
    <option>ashuster</option>
    <option>aswitzer</option>
    <option>avelazque</option>
    <option>AWRS</option>
    <option>AWRSDeme</option>
    <option>bcopelin</option>
    <option>bgarner</option>
    <option>bhall</option>
    <option>bjoseph</option>
    <option>blowery</option>
    <option>bmarks</option>
    <option>bnail</option>
    <option>bseffer</option>
    <option>BULLPEN</option>
    <option>caustin</option>
    <option>cbello</option>
    <option>ccorry</option>
    <option>cdavis</option>
    <option>cknight</option>
    <option>cmaccarelli</option>
    <option>cmanko</option>
    <option>cmapes</option>
    <option>cmonteagudo</option>
    <option>cmootoosammy</option>
    <option>cmozca</option>
    <option>cquintero</option>
    <option>CRM</option>
    <option>cstoll</option>
    <option>ctuell</option>
    <option>dausecha</option>
    <option>dawn</option>
    <option>dbonano</option>
    <option>dbrown</option>
    <option>dcourson</option>
    <option>dfrancis</option>
    <option>dhaughie</option>
    <option>diane</option>
    <option>djean</option>
    <option>dlevi</option>
    <option>dlitmanowicz</option>
    <option>dlombardo</option>
    <option>dlprince</option>
    <option>dlrtire</option>
    <option>dnaparstek</option>
    <option>draymond</option>
    <option>eandrus</option>
    <option>ebeare</option>
    <option>edelcastillo</option>
    <option>efennimore</option>
    <option>egaran</option>
    <option>ehall</option>
    <option>eherczeg</option>
    <option>ehill</option>
    <option>elained</option>
    <option>erojas</option>
    <option>esharfstein</option>
    <option>ewilliams</option>
    <option>ezilm</option>
    <option>fdupoux</option>
    <option>FlaInspect</option>
    <option>fmenella</option>
    <option>gfader</option>
    <option>gferry</option>
    <option>gmolina</option>
    <option>gmullings</option>
    <option>greg</option>
    <option>Guest</option>
    <option>gyoon</option>
    <option>gzanelli</option>
    <option>hconde</option>
    <option>hcruz</option>
    <option>hginsberg</option>
    <option>hkraft</option>
    <option>hmatheny</option>
    <option>HND</option>
    <option>howard</option>
    <option>hrose</option>
    <option>iecheona</option>
    <option>inuzzi</option>
    <option>ivonneg</option>
    <option>jadams</option>
    <option>jamie</option>
    <option>javiers</option>
    <option>jcorrea</option>
    <option>jduarte</option>
    <option>jdwyer</option>
    <option>jeaninej</option>
    <option>jgaasch</option>
    <option>jghurpersad</option>
    <option>jgoldberg</option>
    <option>jhull</option>
    <option>jimmyc</option>
    <option>jlamberti</option>
    <option>jmasuzzo</option>
    <option>jmccrea</option>
    <option>jmerkatz</option>
    <option>jmoore</option>
    <option>jmurray</option>
    <option>joan</option>
    <option>josefinam</option>
    <option>josephinam</option>
    <option>jragland</option>
    <option>jsherrill</option>
    <option>jsmall</option>
    <option>jsopon</option>
    <option>jstein-resnick</option>
    <option>jsteinresnick</option>
    <option>jvera</option>
    <option>jwhoriskey</option>
    <option>jyambo</option>
    <option>kcaballeros</option>
    <option>kflynn</option>
    <option>kgray</option>
    <option>khepburn</option>
    <option>klettelier</option>
    <option>kmendola</option>
    <option>kpost</option>
    <option>kristiet</option>
    <option>ksandberg</option>
    <option>ksukowske</option>
    <option>ktavares</option>
    <option>ktavarez</option>
    <option>laurab</option>
    <option>lauren</option>
    <option>LBM</option>
    <option>lcline</option>
    <option>lczufin</option>
    <option>ldavis</option>
    <option>lduncan</option>
    <option>lhampton</option>
    <option>lisa</option>
    <option>llafrance</option>
    <option>llindauer</option>
    <option>lmannmcintosh</option>
    <option>lnarlinger</option>
    <option>lrivera</option>
    <option>mariej</option>
    <option>mariselku</option>
    <option>martha</option>
    <option>mauditor</option>
    <option>mbray</option>
    <option>mchupp</option>
    <option>MCI</option>
    <option>mcollazo</option>
    <option>MDAutoBody</option>
    <option>mfalconi</option>
    <option>mfisher</option>
    <option>mgebo</option>
    <option>mglasspool</option>
    <option>mgomez</option>
    <option>micahbs</option>
    <option>michellee</option>
    <option>mikem</option>
    <option>mikew</option>
    <option>milagrosc</option>
    <option>mpottinger</option>
    <option>mquiroga</option>
    <option>mramaley</option>
    <option>msalmon</option>
    <option>msharfstein</option>
    <option>mtrelles</option>
    <option>naltieri</option>
    <option>ncarlisle</option>
    <option>NICK</option>
    <option>nphanor</option>
    <option>obenedetti</option>
    <option>pbrown</option>
    <option>PDA</option>
    <option>PDABoulder</option>
    <option>PDACoSprings</option>
    <option>PDADenver</option>
    <option>PDADurango</option>
    <option>PDAGreeley</option>
    <option>PDAPueblo</option>
    <option>pdickey</option>
    <option>PENDING</option>
    <option>pexantus</option>
    <option>pnahoum</option>
    <option>power</option>
    <option>pschluter</option>
    <option>pscott</option>
    <option>rahrens</option>
    <option>rbergeman</option>
    <option>RCHURCH</option>
    <option>rduvall</option>
    <option>rener</option>
    <option>rgoldstein</option>
    <option>rgross</option>
    <option>rhall</option>
    <option>rlambraia</option>
    <option>rlehman</option>
    <option>RMDA</option>
    <option>rnapoleon</option>
    <option>rodolfor</option>
    <option>rquiroga</option>
    <option>Safelite</option>
    <option>samanthad</option>
    <option>sbarrett</option>
    <option>sberinger</option>
    <option>sbray</option>
    <option>scarvajal</option>
    <option>sdunn</option>
    <option>sectow</option>
    <option>sferrell</option>
    <option>sfranks</option>
    <option>sgalor</option>
    <option>sgibson</option>
    <option>simonea</option>
    <option>slabrosse</option>
    <option>smayo</option>
    <option>smcnamara</option>
    <option>smulholland</option>
    <option>snelson</option>
    <option>soneil</option>
    <option>soneil, jghurpersad</option>
    <option>ssampson</option>
    <option>ssayers</option>
    <option>sthompson</option>
    <option>strenker</option>
    <option>swhilby</option>
    <option>tdelrio</option>
    <option>timothyb</option>
    <option>tinas</option>
    <option>tkligler</option>
    <option>tnoles</option>
    <option>tporper</option>
    <option>TSA</option>
    <option>tsokol</option>
    <option>ttest</option>
    <option>tvazquez</option>
    <option>vbredin</option>
    <option>vfernandez</option>
    <option>viviannam</option>
    <option>vmanning</option>
    <option>vmaxwell</option>
    <option>vsurety</option>
    <option>wrichardson</option>
    <option>xalvandi</option>
    <option>yennyp</option>
    <option>zdoniger</option>
    
              </SELECT><br><img border="0" src="graphics/spacer6.gif" width="1" height="3"><br>
    
            </td>
            <td width="15%" height="100%" align="center" bgcolor="#EEEEEE">
              <img border="0" src="graphics/spacer6.gif" width="1" height="3"><br>
    
              <SELECT SIZE="1" NAME="Code" tabindex="32" style="font-family: Arial; font-size: 8pt;">
                <option value="">- Codes -</option>
                <option value="">None</option>
                <option value="LIT">Litigation</option>
    <option value="LIA">Liability</option>
    <option value="TL">Total Loss</option>
    <option value="BI">Bodily Injury</option>
    <option value="IO">Initial Outline</option>
    <option value="SUB">Subrogation</option>
    <option value="CVG">Coverage</option>
    <option value="DG">Damages</option>
    <option value="ARB">Arbitration</option>
    <option value="CMPLN">Complaint</option>
    <option value="SEC">Secondary Tow</option>
    
              </SELECT>
    
              <br><img border="0" src="graphics/spacer6.gif" width="1" height="3"><br>
              
                <input type="submit" value="Save Note" name="B1" style="font-size: 9pt; font-family: Arial; border: 1 solid #666666" tabindex="2">
              
              <br><img border="0" src="graphics/spacer6.gif" width="1" height="3"><br>
    
              <SELECT SIZE="1" onChange='fillOutline(this);' NAME="Outline" tabindex="32" style="font-family: Arial; font-size: 8pt;">
                <option value="">- Outline -</option>
                <option value="IO">Initial Outline</option>
    <option value="TL">Total Loss</option>
    <option value="LIA">Liability</option>
    <option value="CVG">Coverage</option>
    <option value="PIP">PIP Coverage</option>
    <option value="SEC">Delay</option>
    <option value="COM">Commercial Use</option>
    <option value="SOL">SIU Outline</option>
    <option value="SOC">SIU Outcome</option>
    
              </SELECT>
    
              </td>
          </tr>
        </table>
        </td>
          </tr>
        </table>
        </td>
      </tr>
      <tr>
        <td width="10%" align="left" height="1" valign="top" bgcolor="#FFFFFF" rowspan="2"><img border="0" src="graphics/left.gif" width="50" height="50"></td>
        <td bgcolor="#FFFFFF" height="40" align="center" valign="top"><img border="0" src="graphics/spacer_White.gif" width="1" height="5"></td>
        <td width="10%" align="right" height="1" valign="top" bgcolor="#FFFFFF" rowspan="2"><img border="0" src="graphics/right.gif" width="50" height="50"></td>
      </tr>
      <tr>
        <td bgcolor="#FFFFFF" height="10"></td>
        <td bgcolor="#FFFFFF" height="10" colspan="2"></td>
      </tr>
      <input type="hidden" name="DenialApprove" value="">
      </form>
    
    </table>
    </body>
    *********************cnv_ConversionSubs.js code:*********

    Code:
    <!--
    var cnv_is_Chrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1;
    function cnv_DoesFrameContainURL(frame, urlstring){
    //alert('cnv_DoesFrameContainURL: frame.name = ' + frame.name + ', cnv_is_Chrome = ' + cnv_is_Chrome);
    	var theElement = frame;
    	if(cnv_is_Chrome){
    		if(theElement.location.indexOf(urlstring) >= 0){
    //alert("true in chrome");
    			return true;
    		}else{
    //alert("false in chrome");
    		return false;
    		}
    	}else{
    		if(theElement.location.href.indexOf(urlstring) >= 0){
    //alert("true in ie");
    			return true;
    		}
    		else{
    //alert("false in ie");
    		return false;
    		}
    	}
    }
    
    function cnv_LoadFrameWithURL(frame, urlstring) {
    alert('cnv_LoadFrameWithURL: frame.name = ' + frame.name + ', cnv_is_Chrome = ' + cnv_is_Chrome  + ', urlstring = ' + urlstring);
    	frame.location.href = urlstring
    }
    
    function cnv_LoadFramenameWithURL(framename, urlstring) {
    alert('cnv_LoadFramenameWithURL: framename = ' + framename + ', cnv_is_Chrome = ' + cnv_is_Chrome  + ', urlstring = ' + urlstring + ', name = ' + parent.frames[framename].name);
    parent.frames[framename].location = urlstring;
    }
    
    //-->
    Last edited by VIPStephan; 06-13-2013 at 04:08 PM. Reason: added code BB tags

  • #4
    New to the CF scene
    Join Date
    Jun 2013
    Posts
    8
    Thanks
    2
    Thanked 0 Times in 0 Posts
    I posted, but it said administrator needs to see it? I think because the post is too large

  • #5
    New to the CF scene
    Join Date
    Jun 2013
    Posts
    8
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Here is s shorter version.. Under it will be the cnv_Conversion
    ****

    Code:
    <head>
    <script language="JavaScript">
    <!--
    var cnv_is_Chrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1;
    function cnv_DoesFrameContainURL(frame, urlstring){
    //alert('cnv_DoesFrameContainURL: frame.name = ' + frame.name + ', cnv_is_Chrome = ' + cnv_is_Chrome);
    	var theElement = frame;
    	if(cnv_is_Chrome){
    		if(theElement.location.indexOf(urlstring) >= 0){
    //alert("true in chrome");
    			return true;
    		}else{
    //alert("false in chrome");
    		return false;
    		}
    	}else{
    		if(theElement.location.href.indexOf(urlstring) >= 0){
    //alert("true in ie");
    			return true;
    		}
    		else{
    //alert("false in ie");
    		return false;
    		}
    	}
    }
    
    function cnv_LoadFrameWithURL(frame, urlstring) {
    alert('cnv_LoadFrameWithURL: frame.name = ' + frame.name + ', cnv_is_Chrome = ' + cnv_is_Chrome  + ', urlstring = ' + urlstring);
    	frame.location.href = urlstring
    }
    
    function cnv_LoadFramenameWithURL(framename, urlstring) {
    alert('cnv_LoadFramenameWithURL: framename = ' + framename + ', cnv_is_Chrome = ' + cnv_is_Chrome  + ', urlstring = ' + urlstring + ', name = ' + parent.frames[framename].name);
    parent.frames[framename].location = urlstring;
    }
    
    //-->
    </script>

    ***********cnv_Convesion:

    Code:
    <!--
    var cnv_is_Chrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1;
    function cnv_DoesFrameContainURL(frame, urlstring){
    //alert('cnv_DoesFrameContainURL: frame.name = ' + frame.name + ', cnv_is_Chrome = ' + cnv_is_Chrome);
    	var theElement = frame;
    	if(cnv_is_Chrome){
    		if(theElement.location.indexOf(urlstring) >= 0){
    //alert("true in chrome");
    			return true;
    		}else{
    //alert("false in chrome");
    		return false;
    		}
    	}else{
    		if(theElement.location.href.indexOf(urlstring) >= 0){
    //alert("true in ie");
    			return true;
    		}
    		else{
    //alert("false in ie");
    		return false;
    		}
    	}
    }
    
    function cnv_LoadFrameWithURL(frame, urlstring) {
    alert('cnv_LoadFrameWithURL: frame.name = ' + frame.name + ', cnv_is_Chrome = ' + cnv_is_Chrome  + ', urlstring = ' + urlstring);
    	frame.location.href = urlstring
    }
    
    function cnv_LoadFramenameWithURL(framename, urlstring) {
    alert('cnv_LoadFramenameWithURL: framename = ' + framename + ', cnv_is_Chrome = ' + cnv_is_Chrome  + ', urlstring = ' + urlstring + ', name = ' + parent.frames[framename].name);
    parent.frames[framename].location = urlstring;
    }
    
    //-->


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •