[jQuery] f has no properties
Try removing references to other javascript code and start from there. It's
likely that something else is overwriting jQuery code.
Are you using Prototype?
<!----------------//------
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
andy@icglink.com
615.370.1530 x737
--------------//--------->
-----Original Message-----
From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com]On
Behalf Of Jason Huck
Sent: Thursday, August 24, 2006 9:30 AM
To: discuss@jquery.com
Subject: [jQuery] f has no properties
I have some simple jquery code that works fine in standalone tests, but
errors when integrated into a larger project. I have noticed in the larger
project, FireBug reports "f has no properties" on line 14 of the main jquery
lib. Even though my standalone test calls the exact same copy (and it
doesn't matter whether it's a local copy or the one from
http://jquery.com/src/latest.js), FireBug doesn't report that error.
Can someone shed some light on this for me? This is all I'm doing:
<script type="text/javascript">
$(document).ready(function(){
$("#topicswitch").bind("change",function(){
alert(this.value);
});
});
</script>
<form>
<select id="topicswitch" name="select">
<option value="topstories" selected>Top Stories</option>
<option value="us">U.S. National</option>
<option value="world">World</option>
<option value="tech">Technology</option>
<option value="sports">Sports</option>
<option value="entertainment">Entertainment</option>
<option value="health">Health</option>
<option value="oddlyenough">Odd News</option>
<option value="science">Science</option>
</select>
</form>
I guess something else in the larger page is interfering and causing the
error, but I don't know enough about jquery to understand why, and why the
error appears to be within the main lib and not my code...
Thanks,
Jason
--
View this message in context:
http://www.nabble.com/f-has-no-properties-tf2158966.html#a5965057
Sent from the JQuery forum at Nabble.com.
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/