Page 1 of 3

Invoking Rest service causing page content to disappear

Posted: Mon Jul 16, 2012 6:59 am
by Zak Crawford

Created a page to load some JSON data into, was working great (and every other screen in the app works fine) until just now, no change to it at all, just came back to test it and when i click the button to invoke the service it makes the request to the server, and gets valid json back, but empties the screen of all contents except sometimes I get a random piece of data returned from the service as plain text.

I've removed all response mapping and the results are the same. I have no custom objects or scripts running on the page. Did some poking with firebug and have come to the conclusion that tiggzi is causing the problem. Maybe the ajax overlay is clearing everything out and not putting it back?

Can provide link to application via email/pm if needed, hopefully this is a known issue and I'm just not seeing the obvious source of the problem.


Invoking Rest service causing page content to disappear

Posted: Mon Jul 16, 2012 4:43 pm
by maxkatz

Does the service work when you do Test?

Please share your app for collaboration with a href="mailto:support@tiggzi.com" rel="nofollow"support@tiggzi.com/a


Invoking Rest service causing page content to disappear

Posted: Mon Jul 16, 2012 5:57 pm
by Zak Crawford

Shared the project with you.

The service is fine, the JSON is valid, and even when the page is told to do nothing with the data it has the same reaction.


Invoking Rest service causing page content to disappear

Posted: Mon Jul 16, 2012 5:59 pm
by maxkatz

How do I reproduce the problem?


Invoking Rest service causing page content to disappear

Posted: Mon Jul 16, 2012 6:04 pm
by Zak Crawford

test the page and click device profile


Invoking Rest service causing page content to disappear

Posted: Mon Jul 16, 2012 6:06 pm
by Zak Crawford

edit: oops, link was wrong, just fixed


Invoking Rest service causing page content to disappear

Posted: Mon Jul 16, 2012 6:10 pm
by maxkatz

You fixed the problem?

When I tried it, I got this JS error:
Image


Invoking Rest service causing page content to disappear

Posted: Mon Jul 16, 2012 6:15 pm
by Zak Crawford

didn't fix the problem, fixed the link to the page that causes the problem

Not sure how that would be related to the issue, and firebug isn't picking it up (though I am getting the same message as you in chrome).
Have you seen that error before?


Invoking Rest service causing page content to disappear

Posted: Mon Jul 16, 2012 6:17 pm
by maxkatz

I didn't see any service being invoked on button click or on page load (on the next page). Where is the service invoked?


Invoking Rest service causing page content to disappear

Posted: Mon Jul 16, 2012 6:18 pm
by Zak Crawford

didn't fix the problem, fixed the link to the problem, this error is caused by some unfinished code on a testing page.
Try clicking test - device profile now and see if you get the same error