Paspirgilis
Weißer Powerranger
Wir gesagt,
Prototype's aJaX-request geht im IE 5.5, 7, 8 nicht.
der Funktioniert nur im Firefox, und IE6, Safari, Chrome, Opera.
Aber nicht im IE 5.5, 7 und 8.
Findet jemand einen Fehler und kennt jemand das prob?
MfG
Mark Paspirgilis
Prototype's aJaX-request geht im IE 5.5, 7, 8 nicht.
der Funktioniert nur im Firefox, und IE6, Safari, Chrome, Opera.
Aber nicht im IE 5.5, 7 und 8.
Code:
new Ajax.Request(
"content_pages/info.html",
{ method: 'post',
onSuccess: function( reqObject )
{
info_content = reqObject.responseText;
}
}
)
function createContent( carrierVari )
{
var page_name = 'home';
if( $_GET )
{
switch( $_GET['pageid'] )
{
case '2':
page_name = 'home';
break;
case '4':
page_name = 'projects';
break;
case '5':
page_name = 'members';
break;
case '6':
page_name = 'account';
break;
}
}
else if ( carrierVari )
{
switch( carrierVari )
{
case '2':
page_name = 'home';
break;
case '4':
page_name = 'projects';
break;
case '5':
page_name = 'members';
break;
case '6':
page_name = 'account';
break;
}
}
new Ajax.Request(
"content_pages/" + page_name + ".html",
{ method: 'post',
onSuccess: function( reqObject )
{
switch( page_name )
{
case 'home':
construct = '<div class="center_small">' + reqObject.responseText + '</div>' + info_content + '<div class="clear"></div>';
break;
case 'projects':
construct = '<div class="center_small">' + reqObject.responseText + '</div>' + info_content + '<div class="clear"></div>';
break;
case 'members':
construct = '<div class="center_small">' + reqObject.responseText + '</div>' + info_content + '<div class="clear"></div>';
break;
case 'account':
construct = '<div class="center_small">' + reqObject.responseText + '</div>' + info_content + '<div class="clear"></div>';
break;
case 'projects':
construct = '<div class="center_wide">' + reqObject.responseText + '</div><div class="clear"></div>';
break;
}
$$(".content")[0].innerHTML = construct;
}
}
)
}
createContent(false);
Findet jemand einen Fehler und kennt jemand das prob?
MfG
Mark Paspirgilis