Problème d'ancre sous IE et Chrome

Fermé
djflexlive Messages postés 557 Date d'inscription mercredi 26 mars 2008 Statut Membre Dernière intervention 23 avril 2015 - 23 déc. 2011 à 16:22
bg62 Messages postés 23652 Date d'inscription samedi 22 octobre 2005 Statut Modérateur Dernière intervention 29 octobre 2024 - 28 déc. 2011 à 09:29
Bonjour,

Petite demande à ceux d'entre vous qui manipulent des documents avec des ancres, je rencontre un soucis sur IE9 et Chrome :
Dans une page HTML A, j'intègres vers le bas de cette page une iframe qui appelle une autre page HTML B à une ancre #lambda. Cela fonctionnes oui MAIS sous IE et Chrome, au chargement de la page A, celle ci descends toute seule vers l'iframe en question ... Hors c'est pas du tout ce qui est demandé !

Sous firefox pas de problème ... Avez vous une idée ? Merci.

Voici le code :
 
[onload;file='../tpl/header.html';subtpl;getbody]
<div class="main_content">
[onload;file='../tpl/menu.html';subtpl;getbody]
<div class="center_content">
[onload;file='../tpl/left_menu.html';subtpl;getbody]
<div class="right_content">
<div id="bigtable">
 
<h2>Admin > [onshow.pagename] > List of titles</h2>
<hr style="border: none; border-top: 1px solid #CCC; margin-top:-5px"/>
<div class="error_box" style="display: none"></div>
<div class="valid_box" style="display: none"></div>
<div class="warning_box" style="display: none"></div>
 
<h2><a href="title_step1.php" class="bt_green" style="margin-top: -3px"><span class="bt_green_lft"></span><strong>+ Add new title</strong><span class="bt_green_r"></span></a></h2>
 
<div class="form" style="width: 800px">
		<form id="search_title" action="titles.php" method="post" class="niceform" style="float: left; width: 100%">
                <fieldset>
					<dl>
						<dt style="width: 75px; text-align: left;"><label>[blk11.key;block=dl] :</label></dt>
						<dd><input type="text" name="[blk11.val;block=dd]" id="" size="50" /></dd>
					</dl>
					<dl>
						<dt style="width: 75px; text-align: left;"><label>Format:</label></dt>
						<dd>
							<select name="format_id">
							<option value=""></option>
							<option value="[formats_s.format_id; block=option]">[formats_s.format_en; block=option]</option>
							</select>
						</dd>
					</dl>
					<dl>
						<dt style="width: 75px; text-align: left;"><label>Category:</label></dt>
						<dd>
							<select name="cat_id">
							<option value=""></option>
							<option value="[categories_s.cat_id; block=option]">[categories_s.cat_en; block=option]</option>
							</select>
						</dd>
					</dl>
					<dl>
						<dt style="width: 75px; text-align: left;"><label>Studios:</label></dt>
						<dd>
							<select name="studio_id">
							<option value=""></option>
							<option value="[studios_s.studio_id; block=option]">[studios_s.studioname; block=option]</option>
							</select>
						</dd>
					</dl>
 
					<dl>
						<dt style="width: 75px; text-align: left;"><label>[blk13.key;block=dl]:</label></dt>
						<dd><input type="text" name="[blk13.val;block=dd]" id="[blk13.val;block=dd]id" size="50" maxlength="4"/></dd>
					</dl>
					<dl style="font-weight: bold">
					<hr style="height: 1px; border: none; border-top: 1px solid #CCC"/>
					Availabilities</dl>
					<dl>
						<dt style="width: 75px; text-align: left;"><label>Platform:</label></dt>
						<dd>
							<select name="platform_id">
							<option value=""></option>
							<option value="[platforms_s.platform_id; block=option]">[platforms_s.platformname; block=option]</option>
							</select>
						</dd>
					</dl>
					<dl>
						<dt style="width: 75px; text-align: left;"><label>[availabilities.key;block=dl]:</label></dt>
						<dd><input type="text" name="[availabilities.val;block=dd]" id="[availabilities.val;block=dd]id" size="50" /></dd>
					</dl>
				<dl class="submit">
					<input type="submit" name="submit" id="submit" value="Search" />
				</dl>
                </fieldset>      
         </form>
</div>
 
<div class="error_box">[onshow;block=div;when [titles.#]=0]No titles found ...</div>
 
<div style="float: left; width: 100%; margin-bottom: 10px">
<h1>Make a report:</h1><br/>
	<div style="float: left; width: 100%">
		<iframe id="iframe_report" src="report.php?show_generate_button=true#select_template" frameborder="0" scrolling="no" width="600" height="150"/></iframe>
	</div>
</div>
<table id="rounded-corner">
    <thead>
    	<tr>
        	<th scope="col" class="rounded-company" style="text-align: center;"></th>
        	<th scope="col" class="rounded" style="">Image</th>
        	<th scope="col" class="rounded" style="">Title<br/><a href="?orderasc=true&orderby=title"><img src="[onshow.adminpath]/images/orderup.png" border="0"/></a><a href="?orderdesc=true&orderby=title"><img src="[onshow.adminpath]/images/orderdown.png" border="0"/></a></th>
            <th scope="col" class="rounded">Org. Lang.<br/><a href="?orderasc=true&orderby=origin_country"><img src="[onshow.adminpath]/images/orderup.png" border="0"/></a><a href="?orderdesc=true&orderby=origin_country"><img src="[onshow.adminpath]/images/orderdown.png" border="0"/></a></th>
            <th scope="col" class="rounded">Categories</th>
            <th scope="col" class="rounded">Date<br/><a href="?orderasc=true&orderby=production_year"><img src="[onshow.adminpath]/images/orderup.png" border="0"/></a><a href="?orderdesc=true&orderby=production_year"><img src="[onshow.adminpath]/images/orderdown.png" border="0"/></a></th>
            <th scope="col" class="rounded">Studio<br/><a href="?orderasc=true&orderby=studio"><img src="[onshow.adminpath]/images/orderup.png" border="0"/></a><a href="?orderdesc=true&orderby=studio"><img src="[onshow.adminpath]/images/orderdown.png" border="0"/></a></th>
            <th scope="col" class="rounded">Formats</th>
            <th scope="col" class="rounded">Lang.</th>
            <th scope="col" class="rounded">[onload.admin_titles_rights; if [val] = 'ok'; then 'Edit'; else '']</th>
            <th scope="col" class="rounded-q4">[onload.admin_titles_rights; if [val] = 'ok'; then 'Del'; else '']</th>
        </tr>
    </thead>
    <tbody>
		[titles;block=begin]
    	<tr id="tr[titles.title_id]">
            <td style="text-align: center"></td>
            <td><img src="http://[titles.img_url]" style="max-width: 90px; border: 1px solid #CCC; background: #FFF; padding: 2px"/></td>
            <td><a href="title_step1.php?title_id=[titles.title_id]">[titles.title;htmlconv=no]</a></td>
            <td>[titles.original_lang_en]</td>
            <td>[categories.val;block=tr;htmlconv=no]</td>
            <td>[titles.production_year]</td>
            <td>[titles.studioname]</td>
            <td>[formats.val;block=tr;htmlconv=no]</td>
            <td>[langs.val;block=tr;htmlconv=no]</td>
            <td class="clickable">[onload.admin_titles_rights; if [val] = 'ok'; then '<a href="title_step1.php?title_id=[titles.title_id]"><img src="[onshow.adminpath]/images/user_edit.png" alt="" title="" border="0" /></a>'; else '']</td>
			<td class="clickable">[onload.admin_titles_rights; if [val] = 'ok'; then '<a href="titles.php?title_id=[titles.title_id]&action=delete" class="ask"><img src="[onshow.adminpath]/images/trash.png" alt="" title="" border="0"/></a>'; else '']</td>
		</tr>
		[titles;block=end]
    </tbody>
</table>
 
 
<script type="text/javascript">
$(document).ready(function() {
	$("tbody tr").children("td").css("cursor","pointer").addClass("view_infos");
	$(".view_infos:not(.clickable)").click( function() {
		var title_id = $(this).parent("tr").attr("id").replace("tr","");
		window.location.href = 'title_step1.php?title_id='+title_id;
		return false;
	});
	$('#fromid,#toid').numeric();
	$("#afromid,#atoid").datepicker({
		changeMonth: true,
		changeYear: true,
		dateFormat: 'yy-mm-dd'
	});
});
</script>
[onload;file='../tpl/inc_pagination.html';subtpl;getbody]
</div>
 
<div id="response"></div>
</div><!-- end of right content-->
</div><!--end of center content -->
<div class="clear"></div>
</div><!--end of main content-->
[onload;file='../tpl/footer.html';subtpl;getbody]

A voir également:

7 réponses

bg62 Messages postés 23652 Date d'inscription samedi 22 octobre 2005 Statut Modérateur Dernière intervention 29 octobre 2024 2 384
23 déc. 2011 à 17:34
que faire d'un tel code ?
si tu ne donnais qu'un seul 'morceau' qui te pose problème au niveau des "ancres" ... ;)
0
djflexlive Messages postés 557 Date d'inscription mercredi 26 mars 2008 Statut Membre Dernière intervention 23 avril 2015 95
26 déc. 2011 à 23:09
De quoi as tu besoin exactement ?
0
bg62 Messages postés 23652 Date d'inscription samedi 22 octobre 2005 Statut Modérateur Dernière intervention 29 octobre 2024 2 384
27 déc. 2011 à 09:39
un seul petit exemple d'une ligne de code avec une 'ancre' ;)
0
djflexlive Messages postés 557 Date d'inscription mercredi 26 mars 2008 Statut Membre Dernière intervention 23 avril 2015 95
27 déc. 2011 à 16:16
Ok, voici le code html de la page iframe :

 
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=iso8859-1" />
<title>Report templates</title>
<link rel="stylesheet" type="text/css" href="../../admin/style.css" />
<script type="text/javascript" src="../../admin/jquery.min.js"></script>
<script type="text/javascript" src="../../admin/jquery.numeric.js"></script>
<script type="text/javascript" src="../../admin/ddaccordion.js"></script>
<script type="text/javascript" src="../../admin/jquery.ui.datepicker.js"></script>
<script type="text/javascript" src="../../admin/jquery.jclock-1.2.0.js.txt"></script>
 
<script type="text/javascript" src="../../admin/jconfirmaction.jquery.js"></script>
<script type="text/javascript" src="../../admin/jquery-ui-1.7.1.custom.min.js"></script>
<script type="text/javascript" src="../../admin/jqbrowser-compressed.js"></script>
<link rel="stylesheet" href="../../admin/css/redmond/jquery-ui-1.7.1.custom.css" type="text/css" title="ui-theme" />
 
<script type="text/javascript">
ddaccordion.init({
	headerclass: "submenuheader", //Shared CSS class name of headers group
	contentclass: "submenu", //Shared CSS class name of contents group
	revealtype: "click", //Reveal content when user clicks or onmouseover the header? Valid value: "click", "clickgo", or "mouseover"
	mouseoverdelay: 200, //if revealtype="mouseover", set delay in milliseconds before header expands onMouseover
	collapseprev: true, //Collapse previous content (so only one open at any time)? true/false 
	defaultexpanded: [], //index of content(s) open by default [index1, index2, etc] [] denotes no content
	onemustopen: false, //Specify whether at least one header should be open always (so never all headers closed)
	animatedefault: false, //Should contents open by default be animated into view?
	persiststate: true, //persist state of opened contents within browser session?
	toggleclass: ["", ""], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]
	togglehtml: ["suffix", "<img src='../../admin/images/plus.gif' class='statusicon' />", "<img src='../../admin/images/minus.gif' class='statusicon' />"], //Additional HTML added to the header when it's collapsed and expanded, respectively  ["position", "html1", "html2"] (see docs)
	animatespeed: "fast", //speed of animation: integer in milliseconds (ie: 200), or keywords "fast", "normal", or "slow"
	oninit:function(headers, expandedindices){ //custom code to run when headers have initalized
		//do nothing
	},
	onopenclose:function(header, index, state, isuseractivated){ //custom code to run whenever a header is opened or closed
		//do nothing
	}
})
 
$(document).ready(function() {
	setTimeout(function() {
	if ( $.browser.OS() == 'Mac' ) {
		$("input[value='+']").each( function() {
			$(this).css({"position":"relative","margin-left":"-1200px"});
			$(this).prev(".NFButtonLeft").css({"position":"absolute","margin-left":"-20px"});
			$(this).next(".NFButtonRight").css({"position":"absolute","margin-left":"1190px"});
		});
	} else {
		$("input[value='+']").each( function() {
			$(this).css({"position":"relative","margin-left":"-1200px"});
			$(this).prev(".NFButtonLeft").css({"position":"absolute","margin-left":"-20px"});
			if ( $.browser.msie() )
			$(this).next(".NFButtonRight").css({"position":"absolute","margin-left":"1190px"});
			else
			$(this).next(".NFButtonRight").css({"position":"absolute","margin-left":"1190px"});
		});
	}
	} , 500);
	$('.ask').jConfirmAction();
});
 
$(function($) {
    $('.jclock').jclock();
});
</script>
 
<script language="javascript" type="text/javascript" src="../../admin/niceforms.js"></script>
<link rel="stylesheet" type="text/css" media="all" href="../../admin/niceforms-default.css" />
 
</head>
<body>
 
<div id="main_container">
 
<div class="header">
    <div class="logo"><a href="titles.php"><img src="../../admin/images/VVSLogo.png" alt="" title="" border="0" /></a></div>
 
    <div class="right_header">You are logged on : xxx@xxx.fr<br/><br/><a href="login.php?logout=true" class="logout">Logout</a></div>
    <div class="jclock"></div>
</div>
 
 
<div class="main_content">
<div class="menu">
	<ul>
 
		<li><a href="titles.php" >Titles</a></li><li><a href="title_step1.php" >Add a title</a></li><li><a href="studios.php" >Admin fields</a></li><li><a href="datas_import.php" >Data import</a></li><li><a href="report.php" class="current">Report templates</a></li><li><a href="users.php" >Users</a></li>
	</ul>
</div>
 
 
<div class="center_content">
 
<div class="right_content">
 
<div id="bigtable">
 
<h2>Report templates</h2>
<hr style="border: none; border-top: 1px solid #CCC; margin-top:-5px"/>
<div class="error_box" style="display: none"></div>
<div class="valid_box" style="display: none"></div>
<div class="warning_box" style="display: none"></div>
 
<form id="select_template" method="post" action="report.php?select_report=true&show_generate_button=true#select_template">
	Saved templates : <select id="select_template_select" name="report_select" onchange="$('#template_submit').click(); $(document).html('');">
	<option>Choose one</option>
	<option value="3">full</option><option value="4">gi fo</option>
 
	</select>
	<input id="template_submit" type="submit" name="submit" value="Ok" style="display:none"/>
<br/><br/>
 
<hr style="border: none; border-top: 1px solid #CCC; margin-top:15px"/>
</form>
<br/>
<input type="checkbox" id="select_all"/> <span style="font-weight: bold" class="ask">Check all form</span><br/>
<div class="form" style="width: 800px">
	<form id="main_form" action="report.php" method="post" class="" style="float: left; width: 100%">
	<div style="float: left; width: 100%;display: none">
 
		<fieldset>
			<ul>
				<li><input type="checkbox" name="general_informations" class="main_cb" id="cgi"/> General informations</li>
				<ul class="gi">
					<li><input type="checkbox" name="title_id_0"/> Title ID</li>
					<li><input type="checkbox" name="title_0"/> Original title</li>
 
					<li><input type="checkbox" name="volume_0"/> Volume</li>
					<li><input type="checkbox" name="language_0"/> Original language</li>
					<li><input type="checkbox" name="duration_0"/> Duration</li>
					<li><input type="checkbox" name="amg_0"/> AMG</li>
					<li><input type="checkbox" name="studioname_0"/> Studio</li>
 
					<li><input type="checkbox" name="img_url_0"/> Image url</li>
					<li><input type="checkbox" name="categories_0"/> Genres</li>
					<li><input type="checkbox" name="production_year_0"/> Year of production</li>
					<li><input type="checkbox" name="origin_country_0"/> Country of origin</li>
					<li><input type="checkbox" name="canadian_certified_0"/> Canadian certified</li>
 
					<li><input type="checkbox" name="cavco_certified_number_0"/> Cavco certified number</li>
					<li><input type="checkbox" name="cavco_points_0"/> Cavco points</li>
				</ul>
				<li><input type="checkbox" name="formats" class="main_cb" id="cfo"/> Formats</li>
				<ul>
					<li><input type="checkbox" name="format_en_1"/> Format</li>
 
					<li><input type="checkbox" name="lang_en_1"/> Language</li>
					<li><input type="checkbox" name="dub_title_1"/> Title</li>
					<li><input type="checkbox" name="title_number_1"/> Item #</li>
					<li><input type="checkbox" name="img_url_f_1"/> Image URL</li>
					<li><input type="checkbox" name="upc_1"/> UPC</li>
 
					<li><input type="checkbox" name="srp_1"/> SRP</li>
					<li><input type="checkbox" name="mwp_1"/> Minimum wholesale price</li>
					<li><input type="checkbox" name="release_date_1"/> Release date</li>
					<li><input type="checkbox" name="closed_captionning_1"/> Closed captionning</li>
					<li><input type="checkbox" name="closed_captionning_lang_1"/> Closed captionning language</li>
 
					<li><input type="checkbox" name="subtitles_1"/> Subtitles</li>
					<li><input type="checkbox" name="subtitles_lang_1"/> Subtitles language</li>
					<li><input type="checkbox" name="video_description_1"/> Video description</li>
					<li><input type="checkbox" name="extra_features_1"/> Extra features</li>
					<li><input type="checkbox" name="discs_number_1"/> Number of discs</li>
 
					<li><input type="checkbox" name="links_1"/> Links</li>
					<li><input type="checkbox" name="materials_received_1"/> Materials received</li>
					<li><input type="checkbox" name="audio_1"/> Audio</li>
					<li><input type="checkbox" name="aspect_ratio_1"/> Aspect ratio</li>
					<li><input type="checkbox" name="commentary_1"/> Commentary</li>
 
				</ul>
				<li><input type="checkbox" name="details" class="main_cb" id="cde"/> Details</li>
				<ul>
					<li><input type="checkbox" name="trailer_link_2"/> Trailer link</li>
					<li><input type="checkbox" name="website_2"/> Website</li>
					<li><input type="checkbox" name="director_2"/> Director</li>
 
					<li><input type="checkbox" name="synopsis_fr_2"/> Synopsis FR</li>
					<li><input type="checkbox" name="synopsis_en_2"/> Synopsis EN</li>
					<li><input type="checkbox" name="short_synopsis_fr_2"/> Short synopsis FR</li>
					<li><input type="checkbox" name="short_synopsis_en_2"/> Short synopsis EN</li>
					<li><input type="checkbox" name="keywords_fr_2"/> Keywords FR</li>
 
					<li><input type="checkbox" name="keywords_en_2"/> Keywords EN</li>
					<li><input type="checkbox" name="awards_fr_2"/> Awards FR</li>
					<li><input type="checkbox" name="awards_en_2"/> Awards EN</li>
					<li><input type="checkbox" name="taglines_fr_2"/> Taglines FR</li>
					<li><input type="checkbox" name="taglines_en_2"/> Taglines EN</li>
 
					<li><input type="checkbox" name="crew_fr_2"/> Crew FR</li>
					<li><input type="checkbox" name="crew_en_2"/> Crew EN</li>
					<li><input type="checkbox" name="crew_lname_2"/> Crew Names</li>
					<li><input type="checkbox" name="reviews_fr_2"/> Reviews FR</li>
					<li><input type="checkbox" name="reviews_en_2"/> Reviews EN</li>
 
					<li><input type="checkbox" name="reviews_lname_2"/> Reviews Names</li>
					<li><input type="checkbox" name="actors_lname_2"/> Actors</li>
				</ul>
				<li><input type="checkbox" name="boards" class="main_cb mainboard" id="cbo"/> Boards</li>
				<ul>
					<li><input type="checkbox" name="quebec" class="main_cb boards" id="cque"/> Quebec</li>
 
					<ul>
						<li><input type="checkbox" name="qc_film" class="main_cb" id="cqufi"/> Film</li>
						<ul>
							<li><input type="checkbox" name="film_qc_certificate_3"/> Certificate</li>
							<li><input type="checkbox" name="film_qc_runing_time_3"/> Runing time</li>
							<li><input type="checkbox" name="film_qc_rating_fr_3"/> Rating FR</li>
 
							<li><input type="checkbox" name="film_qc_rating_en_3"/> Rating EN</li>
							<li><input type="checkbox" name="film_qc_rating_bil_3"/> Rating BIL</li>
							<li><input type="checkbox" name="film_qc_description_3"/> Description</li>
						</ul>
						<li><input type="checkbox" name="qc_trailer" class="main_cb" id="cqutr"/> Trailer</li>
 
						<ul>
							<li><input type="checkbox" name="trailer_qc_certificate_3"/> Certificate</li>
							<li><input type="checkbox" name="trailer_qc_runing_time_3"/> Runing time</li>
							<li><input type="checkbox" name="trailer_qc_rating_fr_3"/> Rating FR</li>
							<li><input type="checkbox" name="trailer_qc_rating_en_3"/> Rating EN</li>
 
							<li><input type="checkbox" name="trailer_qc_rating_bil_3"/> Rating BIL</li>
							<li><input type="checkbox" name="trailer_qc_description_3"/> Description</li>
						</ul>
					</ul>
				</ul>
				<ul>
					<li><input type="checkbox" name="ontario" class="main_cb boards" id="cont"/> Ontario</li>
 
					<ul>
						<li><input type="checkbox" name="on_film" class="main_cb" id="confi"/> Film</li>
						<ul>
							<li><input type="checkbox" name="film_on_certificate_3"/> Certificate</li>
							<li><input type="checkbox" name="film_on_runing_time_3"/> Runing time</li>
							<li><input type="checkbox" name="film_on_rating_fr_3"/> Rating FR</li>
 
							<li><input type="checkbox" name="film_on_rating_en_3"/> Rating EN</li>
							<li><input type="checkbox" name="film_on_rating_bil_3"/> Rating BIL</li>
							<li><input type="checkbox" name="film_on_description_3"/> Description</li>
						</ul>
						<li><input type="checkbox" name="on_trailer" class="main_cb" id="contr"/> Trailer</li>
 
						<ul>
							<li><input type="checkbox" name="trailer_on_certificate_3"/> Certificate</li>
							<li><input type="checkbox" name="trailer_on_runing_time_3"/> Runing time</li>
							<li><input type="checkbox" name="trailer_on_rating_fr_3"/> Rating FR</li>
							<li><input type="checkbox" name="trailer_on_rating_en_3"/> Rating EN</li>
 
							<li><input type="checkbox" name="trailer_on_rating_bil_3"/> Rating BIL</li>
							<li><input type="checkbox" name="trailer_on_description_3"/> Description</li>
						</ul>
					</ul>
				</ul>
				<ul>
					<li><input type="checkbox" name="maritimes" class="main_cb boards" id="cmar"/> Maritimes</li>
 
					<ul>
						<li><input type="checkbox" name="mar_film" class="main_cb" id="cmarfi"/> Film</li>
						<ul>
							<li><input type="checkbox" name="film_mar_certificate_3"/> Certificate</li>
							<li><input type="checkbox" name="film_mar_runing_time_3"/> Runing time</li>
							<li><input type="checkbox" name="film_mar_rating_fr_3"/> Rating FR</li>
 
							<li><input type="checkbox" name="film_mar_rating_en_3"/> Rating EN</li>
							<li><input type="checkbox" name="film_mar_rating_bil_3"/> Rating BIL</li>
							<li><input type="checkbox" name="film_mar_description_3"/> Description</li>
						</ul>
						<li><input type="checkbox" name="mar_trailer" class="main_cb" id="cmartr"/> Trailer</li>
 
						<ul>
							<li><input type="checkbox" name="trailer_mar_certificate_3"/> Certificate</li>
							<li><input type="checkbox" name="trailer_mar_runing_time_3"/> Runing time</li>
							<li><input type="checkbox" name="trailer_mar_rating_fr_3"/> Rating FR</li>
							<li><input type="checkbox" name="trailer_mar_rating_en_3"/> Rating EN</li>
 
							<li><input type="checkbox" name="trailer_mar_rating_bil_3"/> Rating BIL</li>
							<li><input type="checkbox" name="trailer_mar_description_3"/> Description</li>
						</ul>
					</ul>
				</ul>
				<ul>
					<li><input type="checkbox" name="manitoba" class="main_cb boards" id="cman"/> Manitoba</li>
 
					<ul>
						<li><input type="checkbox" name="man_film" class="main_cb" id="cmanfi"/> Film</li>
						<ul>
							<li><input type="checkbox" name="film_man_certificate_3"/> Certificate</li>
							<li><input type="checkbox" name="film_man_runing_time_3"/> Runing time</li>
							<li><input type="checkbox" name="film_man_rating_fr_3"/> Rating FR</li>
 
							<li><input type="checkbox" name="film_man_rating_en_3"/> Rating EN</li>
							<li><input type="checkbox" name="film_man_rating_bil_3"/> Rating BIL</li>
							<li><input type="checkbox" name="film_man_description_3"/> Description</li>
						</ul>
						<li><input type="checkbox" name="man_trailer" class="main_cb" id="cmantr"/> Trailer</li>
 
						<ul>
							<li><input type="checkbox" name="trailer_man_certificate_3"/> Certificate</li>
							<li><input type="checkbox" name="trailer_man_runing_time_3"/> Runing time</li>
							<li><input type="checkbox" name="trailer_man_rating_fr_3"/> Rating FR</li>
							<li><input type="checkbox" name="trailer_man_rating_en_3"/> Rating EN</li>
 
							<li><input type="checkbox" name="trailer_man_rating_bil_3"/> Rating BIL</li>
							<li><input type="checkbox" name="trailer_man_description_3"/> Description</li>
						</ul>
					</ul>
				</ul>
				<ul>
					<li><input type="checkbox" name="british_columbia" class="main_cb boards" id="cbr"/> British Columbia</li>
 
					<ul>
						<li><input type="checkbox" name="br_film" class="main_cb" id="cbrfi"/> Film</li>
						<ul>
							<li><input type="checkbox" name="film_br_certificate_3"/> Certificate</li>
							<li><input type="checkbox" name="film_br_runing_time_3"/> Runing time</li>
							<li><input type="checkbox" name="film_br_rating_fr_3"/> Rating FR</li>
 
							<li><input type="checkbox" name="film_br_rating_en_3"/> Rating EN</li>
							<li><input type="checkbox" name="film_br_rating_bil_3"/> Rating BIL</li>
							<li><input type="checkbox" name="film_br_description_3"/> Description</li>
						</ul>
						<li><input type="checkbox" name="br_trailer" class="main_cb" id="cbrtr"/> Trailer</li>
 
						<ul>
							<li><input type="checkbox" name="trailer_br_certificate_3"/> Certificate</li>
							<li><input type="checkbox" name="trailer_br_runing_time_3"/> Runing time</li>
							<li><input type="checkbox" name="trailer_br_rating_fr_3"/> Rating FR</li>
							<li><input type="checkbox" name="trailer_br_rating_en_3"/> Rating EN</li>
 
							<li><input type="checkbox" name="trailer_br_rating_bil_3"/> Rating BIL</li>
							<li><input type="checkbox" name="trailer_br_description_3"/> Description</li>
						</ul>
					</ul>
				</ul>
				<li><input type="checkbox" name="availabilities" class="main_cb" id="cav"/> Availabilities</li>
 
				<ul>
					<li><input type="checkbox" name="platformname_4"/> Platform</li>
					<li><input type="checkbox" name="territory_en_4"/> Territory</li>
					<li><input type="checkbox" name="afrom_4"/> From</li>
					<li><input type="checkbox" name="ato_4"/> To</li>
 
				</ul>
				<li><input type="checkbox" name="sales" class="main_cb" id="csa"/> Sales</li>
				<ul>
					<li><input type="checkbox" name="tv_clientname_5"/> Client</li>
					<li><input type="checkbox" name="exclusive_5"/> Exclusive</li>
					<li><input type="checkbox" name="sfrom_5"/> From</li>
 
					<li><input type="checkbox" name="sto_5"/> To</li>
				</ul>
				<li><input type="checkbox" name="web" class="main_cb" id="cwe"/> Web</li>
				<ul>
					<li><input type="checkbox" name="url_6"/> Link URL</li>
					<li><input type="checkbox" name="text_6"/> Link text</li>
 
				</ul>
			</ul>
			<br/>
			</div>
			<input type="radio" name="report_type" value="csv_fr"/>CSV FR | <input type="radio" name="report_type" value="csv_en"/>CSV EN | <input type="radio" name="report_type" value="html"/>HTML 
			<input id="generate_report_submit" type="submit" value="Generate report"/>
 
		</fieldset>
	</form>
 
</div>
 
<script type="text/javascript">
	$(document).ready(function() {
		$("#select_all,.ask").hide(); $("#main_form").attr("target","_blank").attr("action","cellules.php");
 
 
		$("input[type='checkbox']").css('margin-right','10px');
		$("ul,li").css('list-style-type','none');
	});
 
	$("#generate_report_submit").click( function() {
		if ( $("#select_template_select").val() == 'Choose one' || $("input[name='report_type']:checked").val() == undefined ) {
			alert("Select report name then CSV or HTML report");
			return false;
		}
	});
	$("#verif_form").click( function() {
		if  ( $('#report_name').val() == '' ) {
			alert('Fill the report name field before !');
			return false;
		}
	});
 
	$("#select_all").click( function() {
		if ( $(this).attr("checked") == true ) {
			$("input[type='checkbox']:not(#select_all)").attr("checked","checked");
			$(this).next("span").html("Uncheck all form");
		} else {
			$("input[type='checkbox']:not(#select_all)").attr("checked",false);
			$(this).next("span").html("Check all form");
		}
	});
	$(".main_cb").click(function() {
		var id = $(this).attr("id");
		if ( $("#"+id).attr("checked") != '' )
		$("#"+id).parent("li").next("ul").children("li").children("input[type='checkbox']").attr("checked","checked");
		else
		$("#"+id).parent("li").next("ul").children("li").children("input[type='checkbox']").attr("checked",false);
	});
 
	$(".mainboard").click( function() {
		if ( $(this).attr("checked") != '')
		$(".boards").click().click().attr("checked","checked");
		else
		$(".boards").click().click().attr("checked",false);
	});
 
	$(".boards").bind('click', function() {
		if ( $(this).attr("checked") != '')
		$(this).parent("li").next("ul").children("li").children("input[type='checkbox']").click().click().attr("checked","checked");
		else
		$(this).parent("li").next("ul").children("li").children("input[type='checkbox']").click().click().attr("checked",false);
	});
</script>
<div id="response"></div>
 
</div><!-- end of right content-->
</div><!--end of center content -->
<div class="clear"></div>
</div>
</div><!--end of main content-->
    <div class="footer">
    <div class="left_footer"></div>
    <div class="right_footer"></div>
 
    </div>
</div>
</body>
</html>
0
bg62 Messages postés 23652 Date d'inscription samedi 22 octobre 2005 Statut Modérateur Dernière intervention 29 octobre 2024 2 384
27 déc. 2011 à 18:16
heureusement que je t'avais dit "bref" ...
une ancre, pour moi c'est ceci :
https://longuetraine.fr/?article614/ancre-et-positionnement-de-site-backlink-definition-referencement
;)
0

Vous n’avez pas trouvé la réponse que vous recherchez ?

Posez votre question
djflexlive Messages postés 557 Date d'inscription mercredi 26 mars 2008 Statut Membre Dernière intervention 23 avril 2015 95
27 déc. 2011 à 18:29
Il n'y a rien concernant de technique dans ton lien.

Puis je préfères tout mettre que un petit bout, parfois c'est dans le tout que quelque chose cloche (appel JS par ex.).

0
bg62 Messages postés 23652 Date d'inscription samedi 22 octobre 2005 Statut Modérateur Dernière intervention 29 octobre 2024 2 384
27 déc. 2011 à 20:43
ben dans ce cas ... attends pour voir si d'autres vont réussir à te comprendre .... ;)
0
djflexlive Messages postés 557 Date d'inscription mercredi 26 mars 2008 Statut Membre Dernière intervention 23 avril 2015 95
28 déc. 2011 à 04:08
Tu me demandes de mettre le contenu de la page où il y'a l'ancre en question et je te l'ai donné. Dans ton lien ca parle de référencement mais je viens pas ici pour du référencement alors bon , les phrases avec des 3 points de suspension ca ne m'aides pas énormément ...
Où bien tu m'aides si tu as une idée quelconque où ne réponds pas ; on évitera du perdre du temps l'un et l'autre.

Merci.
0
bg62 Messages postés 23652 Date d'inscription samedi 22 octobre 2005 Statut Modérateur Dernière intervention 29 octobre 2024 2 384
28 déc. 2011 à 09:29
je t'avais demandé ceci :
un seul petit exemple d'une ligne de code avec une 'ancre' ;)

et le lien mis en référence explique ce qu'est une 'ancre', sujet de ta question ...
aussi bien en codage qu'au niveau du ref ....
donc bye !!!
0