Not sure if any of this is the source of your problem, but first, make sure
you are not loading jquery twice (it is loaded in the default layout.html
view). Second, in the addArrow function, the "<img.." tag is wrapped in
double quotes, but you also use double quotes to surround some of the
contained attribute values.
More generally, always check the browser Javascript console for errors.
Anthony
On Saturday, September 24, 2016 at 7:05:25 AM UTC-4, @brooks wrote:
>
> Hi,
> I want to use flot charts in my application.I tried running an example
> which required jquery.js ,jquery.flot.js ,jquery.flot.navigate.js files.I
> uploaded all these files in the static/js folder and in the view I used
> <script src="{{=URL('static','js','jquery.js')}}"></script>
> <script src="{{=URL('static','js','jquery.flot.js')}}"></script>
> <script src="{{=URL('static','js','jquery.flot.navigate.js')}}"></script>
> I also uploaded some images and included them in the view as follows:
> ...........
> function addArrow(dir, right, top, offset) {
> var filename='arrow-'+dir+'gif';
> $("<img class='button'
> src="{{=URL('static','images')}}"+"/"+filename style='right:' + right +
> "px;top:" + top + 'px'>")........
> ............................................}
> But the graph is not getting displayed.Could anyone please point out what
> I am doing wrong and why it is wrong.Thanks in advance.
> Regards
>
>
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.