Passing a variable into jquery from the calling script?
I've looked extensively for the answer to this but suspect my inexperience means I'm using the wrong "keywords" in searches, or the answer involves jquery beyond my comprehension.
I have script experience and have plug-in galleryView working but have no jQuery experience which is the problem.
The script:
<script type="text/javascript">
name = getValue("name");
$(document).ready(function(){
$('#photos').galleryView({
panel_width: 700,
panel_height: 450,
<more removed as they are not important>,
start_frame: 3
});
});
</script>
Variable name contains data stripped from the page URL (www.url.com?name=3). I want to use this variable in the jquery array/list passed into the galleryView instead of the number 3. How can this be achieved?
I suspect this could be done entirely in jquery (if I had the experience) or via the getdata script used above?
Many thanks
James