Win a copy of Head First Android this week in the Android forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

filter fails on Internet Explorer

 
Ranch Hand
Posts: 256
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Guys,

I have written a filter and it just prints the content as it is on the page (Specifically on IE).
like the following gets printed on the page

{{value|nameToDisplayName}}


However it works when
1) Opened in Chrome browser
2) When I run it on IE in debug mode.

I am trying to pin point the issue by thinking like
1) If it is working in debug mode, that means the code written for filter is correct
2) Also if it is working in other browsers, that might mean that the code doesn't specifically works for IE.

Regards
Yogesh
 
Rancher
Posts: 989
9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What type of filter is this and what error do you get in IE? Is it a servlet filter? If so how is it mapped?
 
Yogesh Gandhi
Ranch Hand
Posts: 256
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

E Armitage wrote:What type of filter is this and what error do you get in IE? Is it a servlet filter? If so how is it mapped?



This is a filter of angular JS.

No error in IE. It just prints the code...i.e. {{value|nameToDisplayName}}

It is not a servlet filter.
 
Sheriff
Posts: 67595
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Yogesh Gandhi wrote:This is a filter of angular JS.


Please include this sort off necessary information in your first post.
 
Bear Bibeault
Sheriff
Posts: 67595
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Usually, when something works in debug mode, and does not in non-debug mode, it's a sign that there is a timing issue.
 
Yogesh Gandhi
Ranch Hand
Posts: 256
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bear Bibeault wrote:Usually, when something works in debug mode, and does not in non-debug mode, it's a sign that there is a timing issue.



Yeah, it might be a timing issue, but what I was wondering was, as angular JS is a library of javascript, and it gets executed on server side, so there should not be any delay happening due to the response from the server side.

Well, I was not able to find the root cause of it yet.
 
Yogesh Gandhi
Ranch Hand
Posts: 256
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bear Bibeault wrote:

Yogesh Gandhi wrote:This is a filter of angular JS.


Please include this sort off necessary information in your first post.



Sorry for not including the necessary information.

Here is the filter:

 
Bear Bibeault
Sheriff
Posts: 67595
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Yogesh Gandhi wrote:Yeah, it might be a timing issue, but what I was wondering was, as angular JS is a library of javascript, and it gets executed on server side, so there should not be any delay happening due to the response from the server side


JavaScript code and AngularJS execute on the client side in the bruiser; not on the server.

Timing issues are deucedly hard to debug. I suggest you start using the browser debugger to add logging and set breakpoints to try and find out what's happening out of order. Be sure you are following the AngularJS patterns. AngularJS, in particular, is very picky and opinionated on how you structure the code.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic