• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

JavaScript resources seems to be loading from wrong location when <script is on nested page...

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I created a SmartGWT button and invoked it from /index.html, everything looks fine. Then I invoked it from /nested/index.html, the code loads, however, I see the browser is trying to load resources from .../nested/... and getting a 404 as my script and all resources are deployed at /. How do I work around this?

In other words, if I execute:



I always want to read everything from /printer-admin/BrandEditor/*. As it happens now, the code is loaded from this directory, however, resource requests are going to /printer-admin/nested/BrandEditor.

Alternatively, I could compile the module and place is relative to the page that's its going to be displayed from, however, I am not quite sure how to do that with Maven and the gwt-maven-plugin tool.

Thanks for any help.

-AP_
 
Do not meddle in the affairs of dragons - for you are crunchy and good with ketchup. Crunchy tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic