Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

LL & Jquery problems

Status
Not open for further replies.

CMTT

Programmer
Apr 26, 2011
6
US
i am trying to add some custom stuff using jquery into LL.
I created a file called 'customview.html' and uploaded it to LL into a temp folder for testing.

this file contains some jquery code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></META>
<script src=" type="text/javascript"></script>
<script type="text/javascript">
function showPanel() {
$("#donkey").fadeOut(500);
}
</script>
</HEAD>
<body>
<div id="donkey" >
<input type="button" class="navPanel" style="width:117px; height:110px;" id="donkey2" onclick='showPanel();'></input>
</div>
</body>
</html>


the problem is it doesn't work in ie (i'm running ie v7). Works fine in FF though. i tried a lot of things but no cookies...
ie will show the button but the jquery method doesn't work, ff is good though ...

any ideas ? My setup is LL9.7, jquery 1.5, ie7, ff3.6
also the error message in ie basically says that the '$' is not recognized. (Object doesn't support this property or method)
 
i copied your code into my personal workspace as customview.html.First things firts you are creating a customview object as against putting this as a document object.The code put a button in my IE9 like a blue hue ,I have a good feeling it worked for me.

However this line
<script src=" type="text/javascript"></script>

tells me my browser is able to load it from that website.Different companies have diff policies so why don't you hold the js in a local server or even in the page itself and see if works,but again since you say FF works that may not be the reason

Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
Certified OT Developer,Livelink ECM Champion 2008,Livelink ECM Champion 2010
 


thanks appnair,

i tried that, a local copy instead of a url:

<script type="text/javascript" src="./js/jtree/_lib/jquery.js"></script>

still didn't work...

what should happen when you run the file, you see the blue button. if you click that button it should disappear. That is the JQuery code: $("#donkey").fadeOut(500);

the button shows up in IE but executing the code ($("#donkey").fadeOut(500);) produces an error. it works with ff but ...

It would be too much to embed the JQuery javascript into the page directly, besides its not the right way really to do it...

thanks
 
it got this error in IE8
Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; .NET CLR

Message: Object doesn't support this property or method
Line: 16
Char: 39757
Code: 0
URI:
seems IE9 is more capable of understanding the jquery thingy


Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
Certified OT Developer,Livelink ECM Champion 2008,Livelink ECM Champion 2010
 
ya its the same error i got...
basically i interpreted this as the jquery is not being loaded,
so ie doesn't know what '$' is ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top