• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Facing problem to pass a quoted String as a parameter in javascript function

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear members,
I am facing a problem passing a parameter under a single quote in javascript function in IE8, Its working fine in firefox.
I am using Tapestry 5. My code is as follows :


I tried the in this format also :


The javascript function never gets called and when I remove the Quote from the String it works.
Plase help me to resolve the issue.

 
Ranch Hand
Posts: 1061
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Maybe it's the leading "javascript:". That doesn't belong to an onclick attribute.
 
Pradeep Chaubey
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Chris ,

I have got my problem resolved. It was not because of leading javascript. Actually the parameters were
dynamically getting populated and the bean which was doing this, was having wrong value for a quoted String.
That's why the javascript function was not called.

Thank you very much, you spent your valuable time in this problem.
 
reply
    Bookmark Topic Watch Topic
  • New Topic