This is a weird one..
On firefox, everything works fine with this code; there are only visual
display errors.. On IE though:
I took out an .xhr call out of IE on the page change from /shop/index to
/shop/item due to a javascript error that was holding up the page
change(again, only IE).
so on firefox /shop/index it makes an ajax call to /shop/item(.rjs), and
on IE /shop/index it makes a regular page call to /shop/item_show.rhtml
Now, on every page call in IE I am getting this error:
Line: 10
Char: 30
Error: Expected identifier, string or number
Code: 0
URL: http://www.ktwear.com/home
This error is on each page, only in IE, here is my display.rhtml layout
file:
<!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>KT wear</title>
<meta http-equiv="Content-Type"
content="charset=iso-8859-1" />
<%= javascript_include_tag :defaults %>
<script type="text/javascript">
<!--
function load_colors() {
var load
window.open(''/colors.html'','''',''scrollbars=yes,menubar=no,height=600,width=550,resizable=yes,toolbar=no,location=no,status=no'');
}
function load_size() {
var load
window.open(''/images/size.gif'','''',''scrollbars=yes,menubar=no,height=600,width=550,resizable=yes,toolbar=no,location=no,status=no'');
}
function select_style(num, value, price) {
element = ''<li><a
onclick="javascript:unselect_style('' + num +
'');"><div id="fade_up_select_'' + num +
''" style="display:none;"><div>'' +
value + '' '' + price +
''</div></div></a></li>'';
Effect.toggle(''item_creation_selects_'' + num,
''blind'', {duration:
''0.6''});
$(''item_creation_title_'' + num).innerHTML = element;
Effect.toggle(''fade_up_select_'' + num,
''appear'', {duration: ''0.3''});
var a_temp = document.create_form.options_selected.value;
var b_temp = a_temp.split('','');
b_temp[num] = value;
var new_value = b_temp.join('','');
document.create_form.options_selected.value = new_value;
var counter = 0;
for(i=1;i<=checkoptionslength;i++) {
if (b_temp[i] && b_temp[i].length > 0) {
counter++;
}
}
if (counter == checkoptionslength) {
Effect.toggle(''continue_finalize'',
''appear'', {duration: ''0.3''});
}
}
function unselect_style(num) {
element = ''<li><a
onclick="javascript:unselect_style('' + num +
'');">Select</a></li>'';
Effect.toggle(''item_creation_selects_'' + num,
''blind'', {duration:
''0.6''});
$(''item_creation_title_'' + num).innerHTML = element;
var a_temp = document.create_form.options_selected.value;
var b_temp = a_temp.split('','');
b_temp[num] = "";
var new_value = b_temp.join('','');
document.create_form.options_selected.value = new_value;
$(''continue_finalize'').style.display = "none";
}
// -->
</script>
<%= javascript_include_tag "builder" %>
<%= javascript_include_tag "lightbox" %>
<%= stylesheet_link_tag "lightbox" %>
<%= stylesheet_link_tag "style" %>
<!--[if IE 6]>
<Script Language="JavaScript">
alert("You are using an outdated version of Internet Explorer,
please visit: http://www.microsoft.com/windows/ie to upgrade.");
</Script>
<![endif]-->
<!--[if IE 7]>
<%= stylesheet_link_tag "styleIE7" %>
<![endif]-->
</head>
<body>
<center>
<div id="content" class="frame">
<div id="navigation" class="nav">
<%= display_nav_output(@controller_name, @action_name) %>
</div>
<div class="leftCol">
<img id="logo" src="/images/logo.gif"
alt=\"ktwear\" />
<%= display_left_col_browse %>
</div>
<div class="rightCol">
<div id="flash_notice">
<%= flash[:notice] %>
</div>
<%= @content_for_layout %>
<div id="test_div_output"></div>
</div>
<br class="clear" />
<div class="bottom">
<a
href="http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.ktwear.com%2Fstylesheets%2Fstyle.css&usermedium=all"
target="_blank"><img id="fCss"
src="/images/fCss.gif" border="0"
alt="fcss" /></a>
<!--<img id="fXhtml" src="/images/fXhtml.gif"
/>-->
<img id="fCopy" src="/images/fCopy.gif"
alt="fcopy" />
<a href="http://www.lanfusion.com"
target="_blank"><img border="0"
id="fLF" src="/images/fLF.gif" alt="fLF"
/></a>
</div>
</div>
</center>
</body>
</html>
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---