This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes issue with javascript and tiles. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "issue with javascript and tiles." Watch "issue with javascript and tiles." New topic
Author

issue with javascript and tiles.

Vinny Menon
Ranch Hand

Joined: Jan 10, 2006
Posts: 62

fellow ranchers
When i access my app url through localhost IP, http://127.0.0.1:8080/myapp/index.jsp ,the javascript elements are correctly shown as object HTMLTableRowElement and the javascript code of hiding/showing menu works fine.
when i access the same url through my machine IP address, http://ipaddress:8080/myapp/index.jsp ,the javascript elements shown as [object] and the javascript code of of hiding/showing menu stops working fine.
i am using struts tiles in the application and deployed it on tomcat 6.0.browser is IE 8.0

can some one please advise why this is happening?
cheers
vinny m

Regards,Vinny M.
proud Fan of European Champion CHELSEA FC
"If you don't see the bug where you're looking, perhaps you're looking in the wrong place" -James Gosling
Vinny Menon
Ranch Hand

Joined: Jan 10, 2006
Posts: 62

i changed the browser mode to IE8 and document mode to IE8 standards,and the code is working fine now.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: issue with javascript and tiles.
 
Similar Threads
how to remove the port number in URL
My struts app went crazy on Internet Explorer
hiding status bar
Javascript not working in Netscape 7.01
Help needed on SSL configuration for Apache HTTP server 2.2.10 and Tomcat 5.5.9