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 :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
 
[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]