Hi,
I''m trying to implement the scriptaculous slider in a web site built
in Lotus Domino 6.5. I''ve lifted the following example from the web
and modified it to work in Domino ( pretty easy ) and it works fine in
IE6. How ever in Firefox it fails with the error message $
("SliderValue") has no properties. I really can''t understand
why as
this is just the core Prototype $ funtion which seems to be failing.
Can anyone point me in the direction of just what I might be doing
wrong?
The HTML generated by Domino is as follows
// <![CDATA[
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Slider Test</title>
<script language="JavaScript" type="text/javascript"
src="/CSV/
CommSurvey.nsf/prototype.js?OpenJavascriptLibrary">
</script>
<script language="JavaScript" type="text/javascript"
src="/CSV/
CommSurvey.nsf/scriptaculous.js?OpenJavascriptLibrary">
</script>
<script language="JavaScript" type="text/javascript">
<!--
document._domino_target = "_self";
function _doClick(v, o, t, h) {
var form = document._DominoForm;
if (form.onsubmit) {
var retVal = form.onsubmit();
if (typeof retVal == "boolean" && retVal == false)
return false;
}
var target = document._domino_target;
if (o.href != null) {
if (o.target != null)
target = o.target;
} else {
if (t != null)
target = t;
}
form.target = target;
form.__Click.value = v;
if (h != null)
form.action += h;
form.submit();
return false;
}
// -->
</script>
<link rel="stylesheet" type="text/css"
href="/CSV/CommSurvey.nsf/
slider.css?OpenCssResource">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<form method="post" action="/CSV/CommSurvey.nsf/Test%20Slider?
OpenForm&Seq=1" name="_DominoForm">
<input type="hidden" name="__Click"
value="0"><h1>Horizontal slider</
h1>
<div id="slider1" class="track" style="width:200px;
height:9px;">
<div id="slider1-left" class
="track-left"></div><div id="handle1"
style="width:19px; height:20px;"><img
src="slider-images-handle.gif"
alt="" style="float: left;" /></div>
</div>
<script type="text/javascript" language="javascript">
// horizontal slider control
new Control.Slider(''handle1'', ''slider1'', {
range: $R(1,7),
values: [1,2,3,4,5,6,7],
onSlide: function(v) { $F(''SliderValue'') = v },
onChange: function(v) { $F(''SliderValue'') = v }
});
</script>
<input name="SliderValue" value=""></form>
</body>
</html>
// ]]>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---