I'm writing a Firefox Addon and I was wondering if I could take advantage of frameworks such as jQuery within my Firefox addon source code? Would it be as simple as including the jquery JS file within my addon's package folder and linking to it in my XUL file?
...
Is there really a difference in these two calls? If you use getJSON, you still have to declare format=json in the url...
And you can do the same in $.get(), and iterate through the JSON-object.
Or am I way off here?
...
Does jQuery - or one of it's plugins - have equivalent functionality to the YUI StyleSheet Utility?
"The StyleSheet Utility is capable of creating new stylesheets from scratch as well as modifying the existing stylesheets held as properties of elements sourced from the same domain or any inline elements."
This (I'm fairly sure) is cr...
Hi,
how do I prevent the user to change the value in an input field (which contains a certain value to be copied into the clipboard) without using disabled="true"? The text should be selected once the user clicks in the field (that's working already) but entering anything should have no effect.
Thanks
jQuery('input.autoselect[value]')...
I am looking for the best performing script for providing a hover state to rows within a grid.
90% of users have ie6 clients therefore I cant rely on css :hover
The grid is a standard table, some cells have inner tables.
I originally started using the .live method with mouseover and mouseout, however this has massive cpu implicatio...
Hey guys, this is more something like "what to do?" than a question in fact... here it is:
I have a page in which users can execute selected services.. each of these services are different full .aspx pages (there's a lot of them).
the page is divided in 3 sections, as you can see in the picture:
Panel A: lists the selected services...
I'm trying to add a extra descriptive div to my links. The div should get it's information from the li a title attribute.
I'm able to get the title attribute but how do I pass it on to the div .omschrijving?
$("#sidebar li ").append("<div class='omschrijving'></div>");
$("#sidebar li a").each(function(){
var hoverText = $(this).at...
Hi
I have a HTML form containing checkboxes in the form of ..
<input type="checkbox" name="range[]" class="range_opts" id="range-1" value="1" /> 1 <br />
<input type="checkbox" name="range[]" class="range_opts" id="range-2" value="2" /> 2 <br />
<input type="checkbox" name="range[]" class="range_opts" id="range-3" value="3" /> 3 <br /...
I'm banging my head against the wall with an issue I'm having in IE8. I am using the fadeIn function on jQuery to make the site content fade in. This works perfectly fine in all of the other browsers, but when the fadeIn finishes in IE8 the font anti-aliasing seems to change, causing the text to shift slightly.
You can see the site at h...
if i do this...
$('.class1, .class2').hide();
Then all items with class1 or with class2 will be hidden.
<pre class='class1'>hello1</pre>
<pre class='class2'>hello2</pre>
<pre class='class1 class2'>hello3</pre>
What is the syntax so only the 3rd <pre> will be hidden, I want to hide things based if they have both class1 and class2.
...
I'm writing a script to highlight table cells across multiple tables, in a calendar.
The days to be highlighted have the class "available".
This is the jQuery code currently:
$(document).ready(function(){
$("td.available").mouseenter(function() {
$(this).addClass("highlight");
$(this).next().addClass("highlight");
});
$("td.available"...
Well, how to create picture link like this up or down votes (on the left) from link below? (ajax enabled link)
<%= Ajax.ActionLink("Vote!",
"AddPictureVote",
"Vote",
new {id = Model.PictureId},
new AjaxOptions{UpdateTargetId = "addvote"})%>
...
Hi, i'm creating an FAQ page where the answer is toggled by clicking on the question. The question is h3 and the answer is several "p" elements. Like this:
<h3>The First Question</h3>
<p>Answer Paragraph</p>
<p>Answer Paragraph</p>
<p>Answer Paragraph</p>
<h3>The Second Question</h3>
<p>Answer Paragraph</p>
<p>Answer Paragraph</p>
Ho...
Is there any reason why the click doesn't work in IE6 on the following JQuery code? See ...$('#toggleVAT').click(function... It works in IE7 and FF?
function switchButton(to){
if(to === 'INC'){
$('#toggleVAT').removeClass("exc");
$('#toggleVAT').addClass("inc");
$('#toggleVAT em').text("inc.");
} else {
$('#toggleVAT').addCl...
How would I go about setting a link to perform certain functions like hide div then go to destined url
something like this
$(document).ready(function(){
$("a").click(function(){
$("#div1").slideUp("slow");
$("#div2").slideUp("slow");
// then go to index.html
});
});
This is my setup.
<script type="text/javasc...
Hi everyone,
I'm trying to implement a simple function using jqGrid, but it doesn't seem to work and I was wondering if anyone has an explanation.
Basically one column of jqGrid returns (through JSON)
<a href="#" id="special">Click</a>
Outside the column, I have a jQuery listener that is of the form
$("#special").click(function () {...
I am using jquery UI tabs
I have three ajax tabs like so:
<div id="tabs">
<ul>
<li><a href="linktopage1.jsp">Failed EIV Pre-Screening</a></li>
<li><a href="linktopage2.jsp">Failed SSA Screening</a></li>
<li><a href="linktopage3.jsp">Pending Verification</a></li>
</ul>
</div>
I would like to make second tab show up by default when ...
I'm using sIFR to replace my navigation text with a new font:
<ul>
<li><a href="#">about</a></li>
<li><a href="#">reel</a></li>
<li><a href="#">contact</a></li>
<li><a href="#">archive</a></li>
<li><a href="#">login</a></li>
</ul>
sIFR.replace(futura, {
css: [
'.sIFR-root { background-color:transparen...
I am using DebugBar in IE to view the DOM. But after I modify the DOM with jQuery I can not see the new or modified DOM with DebugBar. How Do I view the modified DOM?
...
Hello all,
I know you can not do an AJAX File Upload but this just a name I have chosen to use. :)
I am making use of this JQuery plugin. I think the main problem is I am using it in a slightly different context. Here is how I use it and I think this is the problem.
I first make a form:
$("#flash").html("<input id='vidup' type='file'...