August 18th, 2010, 10:19 AM
#1
i changed the code that i gave, that's why it seemed a little wrong.
i gave you the original unchanged new code.
i moved the code as you said, but this still don't work for me ( but again, work in firefox and ie)
and where should i put this code ?
alert(document.getElementsByTagName("BODY")[0]);
Attached Files
August 18th, 2010, 10:38 AM
#2
you can bind that to something clickable and click it after the first alert, or you may add javascript : in front of it and use it as a bookmarklet.
also check out if there are any errors in the javascript console
also check out the list of downloaded files, is the lsengine.html file downloaded?
August 18th, 2010, 10:51 AM
#3
there's no javascript error in both ie, firefox and chrome.
for the downloaded files, i don't find lsengine in chrome, but i find it in firefox.
i did put that code in the end of the page, in firefox it says
but in chrome it's :
Attached Files
August 18th, 2010, 12:18 PM
#4
i found the solution. it's a facelet's problem (i think) with chrome as said here .
i must include this:
<f:view contentType="text/html">
...
</f:view.
in my <body>...</body> section.
now,
alert(document.getElementsByTagName("BODY")[0]);
return to me [object HTMLBodyElement] like firefox, and things work fine.
thank you for your help (well, that line of code helped me find the problem) and sorry for the annoyance.
August 18th, 2010, 12:50 PM
#5
thanks to you for sharing the solution
cheers
Similar Threads
By mohamida in forum Client SDKs
Replies: 10
Last Post: August 18th, 2010, 12:50 PM
By vaduganathan in forum Client SDKs
Replies: 3
Last Post: April 9th, 2010, 08:58 AM
By gmotodd in forum Client SDKs
Replies: 8
Last Post: May 4th, 2009, 12:51 PM
By webfg in forum Client SDKs
Replies: 2
Last Post: April 13th, 2009, 11:07 AM
By rd2008 in forum Client SDKs
Replies: 6
Last Post: October 10th, 2008, 11:09 AM
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
All times are GMT +1. The time now is 09:45 AM .
Bookmarks