JQuery losses functionality when deployed.

29 views
Skip to first unread message

IlyaE

unread,
Sep 1, 2011, 12:18:09 PM9/1/11
to google-a...@googlegroups.com
I have the following code..
 
$.ajax({url:"AddItem",type:"post",timeout:3500,data:{"id":<%=regId%>,"title":t},
 
success:function(r){
       if ($("#n").length) {
           console.log('n exists');
           $("#n").empty();
           console.log('n emptied');
           $("#n").html("test");
       }
}});

 

for some odd reason, this works like a charm in local development mode, but doesn't apply JQuery methods when deployed. There are no errors on the console.
What i see when run live, is that N exists, and then the console print out. I do not see any change to the html when emptied or when test text is added. I'm baffled by this since my tests are ran on the same browser and the identical code.
 
Anyone have any ideas?

David Donohue

unread,
Sep 6, 2011, 7:00:34 AM9/6/11
to Google App Engine
We are having similar problem. No ideas though.

Robert Kluin

unread,
Sep 7, 2011, 1:54:25 AM9/7/11
to google-a...@googlegroups.com
This may have an issue to do with the loading order. The dev server
is single threaded, so everything is loaded sequentially. Production
is not. Does your code wait for everything to be loaded?

Also, this probably isn't really an App Engine specific question.


Robert

> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-appengine/-/Oxfxu8gH208J.
> To post to this group, send email to google-a...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengi...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>

Reply all
Reply to author
Forward
0 new messages