jquery

jquery plugin to notify users of a promotion

I am looking for a good popup, or slide down, or whatever to notify users of a promotion (think store). I saw something like that once, but i cant find the link any more. I am looking for something "sexy", so it will attract the user's attention, but not get in the way of things ...

IE8 Jquery Javascript "Error: Object required" Bug

IE8 throws an "Error: Object required" message (error in the actual jquery library script, not my javascript file) when the switch statement in this function runs. This code works in IE6, IE7, FF3, and Safari... Any ideas? Does it have something to do with the '$(this)' selector in the switch? Thanks! function totshirts(){ $('.shir...

Learning jQuery and Getting Better at Javascript

over the last couple of years I've seen jquery grow leaps and bounds. And every time I look at some jquery code I feel there is something I am missing which I need to learn. I've given their documentation a try, and it seems to be ok for basic stuff. Can you guys suggest a good jquery book that might help? I'm looking for something ...

Why is jQuery Ajax so slow on IE7?

I am having a problem with jQuery AJAX calls on IE7. This simple code works fine on FF and Opera. But on IE7 it takes 3-5sec. - that's 20 times slower than FF! Loading content is pure HTML and inline JavaScript code. No JS rendering. I even turned of the inline JavaScript code. Bu still slow. $('#block').load('some url'); How to ov...

passing js function a value when using Rails button_to_function

I've got a table of what I call resources, want to show in a jquery dialog a particular record when user clicks button in a row. in the table I'm doing: <td><%=button_to_function 'Show','showresource1()',:class =>"ui-button ui-state-default ui-corner-all", :id => resource.id %></td> then in javascript I want to pass jQuery dialog the...

How to disable asp.net radiobuttonlist via jQuery

I have a checkbox and radiobuttonlist defined as follows: <asp:CheckBox id="chkChange" runat="server" text="Enable" /> <br /> <asp:RadioButtonList id="rblConsole" runat="server" cssclass="console"> <asp:ListItem text="XBox 360" value="xbox" /> <asp:ListItem text="Playstation 3" value="playstation" /> </asp:RadioButtonList> The...

Calling jQuery effects too fast breaks my plugin

I'm wring a custom jQuery plugin based on the awesome jGrowl plugin. I just need it to do a few more things than it already does. Basically everything is working as I need it to (only tested in Firefox so far) except that if you call the plugin too many times too fast it stops and breaks everything http://jsbin.com/ofejo/edit Any idea...

JQuery if then else using URL parser plugin, there must be a more elegant solution!

Hello everyone. This is my first post on this rather spiffing website so go easy on me if this has been discussed elsewhere (I can't find it if it has). I'm using the JQuery URL parser plugin found here: http://projects.allmarkedup.com/jquery_url_parser/ I can get it to do what I want but the code is rather inefficient. I have a coll...

jQuery and Wordpress

Would anyone know how to get the jQuery api going with Wordpress? I know that you can add an action in the functions template but this particular theme template isn't letting me add it. ...

jquery delete array from the textarea

How can I use jQuery to delete the text in the textarea that gets from the input_one when it not checked (one_1 one_3 one_4) ,and when it checked add it into textarea again? The code is below: <div id="input_one"> <input type="checkbox" checked value="one"> <input type="checkbox" checked value="one_1"> <input type="checkbox" valu...

Show table cell on table row mouseover

I have a table that looks something like this. <table> <thead> <tr> <th>Foo</th> <th>Bar</th> </tr> </thead> <tbody> <tr class="data"> <td>Info here</th> <td><a href"/url_here" class="edit">Edit</a></td> </tr> <tr class="data"> <td>More here</th> <td><a href"/url_here" class=...

Table row and column number in jQuery

How do I get the row and column number of the clicked table cell using jQuery, i.e., $("td").onClick(function(event){ var row = ... var col = ... }); ...

Referencing Jquery statements and debugging

Hi, VS2008. I have an MVC app and I dynamically rendering html for a control I am building. I have written some javascript and put in a .js file. My master page has a refernce to my jquery js file. A user control then calls my code to render html. My js file uses JQuery. When i debug i am getting an "undefined" error when printing...

How can I intercept a link with jQuery when using a ajax call?

I might be doing something stupid. But if I have a normal link like: <div id="changeMe"></div> <a href="/Not/Intercepted" id="interceptMe">A link</a> and I attach a jQuery click event to the link like so: $('#interceptMe').click(function() { $('#changeMe').text('Changed'); return false; }); Everything works peachy. The page d...

How to switch between 2 CSS colors with jQuery?

I want a string of text to change color from default to #c30 when I click a button somewhere on the page, and it changes back to default when I click the button again. My code looks like this: $("#button").click(function() { var anno = $(#text); if (anno.css('color') == '#c30') { anno.css('color', ''); } else { anno.css('color',...

What advantages can ScriptSharp bring to my tool kit?

Currently we use jQuery to add RIA goodness to our apps, but recently we have been implementing the Coveo Search engine into our Sharepoint portal and found that ScriptSharp was used in their product. What can ScriptSharp bring to the table? ...

How to get an img url using jQuery?

Is it possible to get the actual URL (as opposed to the src attribute value) of an image within the current DOM using jQuery or JavaScript? i.e. retrieve "example.com/foo.jpg" as opposed to "foo.jpg" (taking <base> elements into account) What about any other interesting properties such as the mime type, file size or, best of all, the ...

How to ensure AJAX encoding will work

I'm using Jquery to submit the value of a <textarea> through AJAX to a PHP script. This value may contain punctuation characters (!,?,#,@) as well as single and double quotes, and other non-alphanumeric characters. Does Jquery take care of encoding all this stuff or do I need to do it myself? How can I be certain that whatever the user t...

how to only select links that have text and no picture links

I'm new to jQuery. This would be no problem for me using xpath expressions, but how can i do this the 'jQuery' way? Given following example: <stuff> <a href="target.html">ASDF</a> <a href="target.html"><img src="asdf.png"/></a> </stuff> How can i select with jQuery only the text links and leave the links with the img tags untouched? ...

Is it possible to embed javascript into an SSRS Report?

SQL Server reports can embed vbscript and execute client side, but can the same be done with javascript? I think there would be great utility to be able to execute jQuery and CSS manipulation client side to create a more interactive drill down experience. ...