do not use relative paths. use
{{=URL(r=request,c='static',f='filename.gif')}}On Oct 17, 4:59 pm, billf <[EMAIL PROTECTED]> wrote: > When I code the following action: > > def update_lookup(): > lookup=t2.update(db.lookup) > search=t2.search(db.lookup) > return dict(lookup=lookup,search=search) > > ...it appears to create a url in the > formhttp://server:port/application/controller/action/id > > This has the effect that any relative paths in my view (html file) are > at a different depth than if the action did not have an id. For > example, normally I can reference an image via src="../static/ > my_image.gif". When the url has the id appended that path becomes > src="../../static/my_image.gif". > > At the moment, I am not sure whether this is a problem or not. Should > I be referencing my images differently? Should a view never be used > where there might be an id or there might not? Could the id just be > passed as an argument (?id=x) rather than part of the path? > > Any thoughts/advice gratefully received. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

