| From | Sent On | Attachments |
|---|---|---|
| Steve Lowery | Sep 22, 2011 12:28 pm | |
| Igor Vaynberg | Sep 22, 2011 12:42 pm | |
| Steve Lowery | Sep 22, 2011 1:11 pm | |
| Igor Vaynberg | Sep 22, 2011 1:13 pm | |
| Steve Lowery | Sep 22, 2011 1:18 pm | |
| Igor Vaynberg | Sep 22, 2011 1:20 pm | |
| Steve Lowery | Sep 22, 2011 1:38 pm | |
| Igor Vaynberg | Sep 22, 2011 1:42 pm | |
| Pointbreak | Sep 22, 2011 2:22 pm | |
| Martin Grigorov | Sep 28, 2011 2:21 am | |
| Igor Vaynberg | Sep 28, 2011 8:30 am |
| Subject: | Re: adding resources after ajax swap | |
|---|---|---|
| From: | Igor Vaynberg (igor...@gmail.com) | |
| Date: | Sep 22, 2011 1:13:36 pm | |
| List: | org.apache.wicket.users | |
yep, its because you are loading a script file from a different domain. if you want to do that you have to configure a servlet filter that will respond to OPTIONS requests...
-igor
On Thu, Sep 22, 2011 at 1:12 PM, Steve Lowery <slow...@gatessolutions.com> wrote:
Igor,
Here are the request headers (response returns a 405 - Method not allowed):
OPTIONS http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.jsHTTP/1.1 Access-Control-Request-Method: GET Origin: http://localhost:8080 Access-Control-Request-Headers: Origin, Wicket-Ajax, Accept
Note: If I download the js file and do a response.renderJavascriptResource(new ResourceReference(MyClass.class, "jquery.js")) as opposed to response.renderJavascriptReference(" http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"); it works.
On Thu, Sep 22, 2011 at 2:28 PM, Steve Lowery <slow...@gatessolutions.com>wrote:
I'm having an issue using resources after an ajax swap, in this case jquery. My home page does not have anything jquery related on it. There is an AjaxFallbackLink which swaps out the main content. The new content Panel has a jquery header contributor. I see this is being returned in the response to the AjaxFallbackLink click:
<ajax-response><header-contribution encoding="wicket1" ><




