Hi All,
I have just been asked to look at incorporating a JQuery plugin into a webspeed page which we have never done before so have started with the basics but keep getting an error when defining the entry point.
The standard jQuery entry point code is described as follows
<script type = "text/javascript">// Define the entry point
$(document).ready(function() {
// The DOM (document object model) is constructed
// We will initialize and run our plugin here
}</script>
which I am then putting into the webspeed code as
{&OUT}
'<script type = "text/javascript">''// Define the entry point'
'$(document).ready(function() ~{'
' // The DOM (document object model) is constructed'
' // We will initialize and run our plugin here'
'~}''</script>'.
this compiles fine but when I run it in IE I get the exclamation mark in the bottom left corner and the message within the popup when I double click it is saying that an 'Object is expected' at char 0 on the $(document).ready(function(){ line.
I'm not sure where I have gone wrong
and cannot find any examples within the forums so hoped someone who has used jQuery would care to share their secrets...:awink:
regards,
Dave.
I have just been asked to look at incorporating a JQuery plugin into a webspeed page which we have never done before so have started with the basics but keep getting an error when defining the entry point.
The standard jQuery entry point code is described as follows
<script type = "text/javascript">// Define the entry point
$(document).ready(function() {
// The DOM (document object model) is constructed
// We will initialize and run our plugin here
}</script>
which I am then putting into the webspeed code as
{&OUT}
'<script type = "text/javascript">''// Define the entry point'
'$(document).ready(function() ~{'
' // The DOM (document object model) is constructed'
' // We will initialize and run our plugin here'
'~}''</script>'.
this compiles fine but when I run it in IE I get the exclamation mark in the bottom left corner and the message within the popup when I double click it is saying that an 'Object is expected' at char 0 on the $(document).ready(function(){ line.
I'm not sure where I have gone wrong
regards,
Dave.