jquery

Sifr does not display custom/dynamic text

I am using the sifr plugin from here:http://jquery.thewikies.com/sifr/ and I have generated a swf using http://www.sifrgenerator.com/ I have build set to 436 and version set to 3. My page only shows the default text that was set inside the swf by the generator. When I try to set the content property to let's say 'hello', it still disp...

ASP.NET MVC + jqGrid Embedded Links Best Practices

I have a Mvc app that I am replacing some hard rendered tables with jqGrid [XML]. Problem is I have action links in one of my columns to perform certain actions on the rows. I have these duplicated using CDATA tags in my XML; however the problem is that now this tag is generated in an action method so all the HTML is in my controller (...

Load list of image from folder

I have a folder of images, from 10 to 200, a webpage, a jquery fade and a php script that read folder full of images Is there any way to make the php script scan a folder, get a list of image (in an array ?) and pass it to jquery script ? (first question) Now, i can make a xml file from the result php list of files found or make a html...

jQuery modal window example?

I need a modal popup window. I'm thinking of using jQuery. Can anyone give me couple of good examples that implement modal windows. Something solid, well documented? ...

How would I implement stackoverflow's hovering dialogs?

I am in love with stackoverflow's single-color "click-to-close' hovering dialog boxes that greet a user when they try to vote and aren't logged in or use the site incorrectly. Any idea how and/or what technology Jeff used to implement these neat little devices? EDIT: I'm specifically talking about the SQUARE dialog boxes that say "Cli...

Can you get a subset of elements in jQuery as per a grouping amount?

Say I have 5 strong elements, and I want to wrap them in div elements, in groups of 2 using jQuery. Example: <!--original markup--> <strong>I AM STRONG</strong> <strong>I AM STRONG</strong> <strong>I AM STRONG</strong> <strong>I AM STRONG</strong> <strong>I AM STRONG</strong> Becomes <!-- new markup --> <div> <strong>I AM STRON...

ASP.NET+jQuery, how to deSerialize JSON?

I want to deserialize the JSON string below, using jQuery each function, but the item is undefined. there is the code below, but, in case i am using asp.net 2.0 + web service and fill the DataTable and pass to System.Web.Script.Serialization.JavaScriptSerializer class and return these JSON string. <html> <head> <script type="te...

jQuery highlight table row

Hi guys. I need to highlight a table row on mouse over. Seems like an easy enough thing to do, right? Especially using jQuery. But alas, I'm not so lucky. I've tested different solutions for highlighting a table row, but nothing seem to work :-( I have tested the following scripts: // TEST one jQuery(document).ready(function() {...

Possible to use Jquery in a Js widget to be inserted on other sites

If I want to provide a widget on my website that other people can insert on their webpages, via : Can I import and use Jquery in that file so that the user doesn't need to add it manually to his page. How would I do this? (I'm new to Javascript too) Thanks ...

Jquery: How to check if the element has certain css style

Hi! I have a div: <div style="test" id="someElement"></div> Is there any way to check if the certain element: $("#someElement") has a particular css style (in my case, "test"). Thank you very much! ...

jQuery Autocomplete IE bug (list.scrollTop)

I'm using the jQuery Autocomplete plugin. The strange problem I'm getting is with the lines that use in the plugin: list.scrollTop(...) Internet Explorer 8 (in all modes) claims it doesn't know this method. I've done a fix but I'm curious how this could slip past the developer. Is this new to IE8/IE7? ...

second $(document).ready event jQuery

I'm using some external jQuery with $(document).ready() to insert adverts after the document ready event has fired, something like: $(document).ready($('#leaderboard').html("<strong>ad code</strong>"); This is to prevent the UI being blocked by the slow loading of the adverts. So far it's been working well. Now I need to insert some ...

jQuery, creating DOM node

I would like to create a DOM node, set the 'id' attribute and then append it to 'body'. The following seems not to work because jQuery doesn't see my template as an object. How can I tell jQuery to treat it as an object so find() works on it? var template = "<li><div class='bar'>bla</div></li>"; template.find('li').attr('id','1234'); ...

How Do I encrypt post data while using ajax and JQuery?

Server side we can authenticate the user but I want security of data when ajax or JQuery sends the data. Like on client side someone can only see the parameters of any call in encrypted format. So how do I do this. I have seen this scenario on this site. EDIT we can ignore to encrypt data when it comes form server. But atleast at send...

jQuery fading/dimming other list elements when one is hovered over, I'm 90% there..??

I have an unordered list, which has maybe 30 items. When one of these items are hovered over, the rest of the list items fade to 30% and the hovered item stays at 100%; when you move away from the list, they all fade back up to 100% and I have managed this. My problems arises when you move from item to item, the other list items fade ba...

Use jQuery to set background color with value from database

I'm looking for an example of how I would read a value from a database and use it in a jQuery script to set the background color of a control. I'm still learning jQuery, and it's not clear to me how to get a value from the database. I'm using ASP.NET MVC, and my form is already pulling the value - do I need to put it in a hidden field an...

IE6 zindex bug workaround, screws up after a ajax postback.

I have a page that has 3 buttons on it, when a user clicks on a button it displays a model popup where the user inputs data etc. On the main page there is a dropdownlist which breaks through the model when it popups up, this is a known IE6 z-index bug. My workaround (after trying bgiframe) was to simply hide the dropdown whenever a pop...

Problem using jQuery > selector

I have something like the following jQuery code buttons = document.createElement('div'); $(buttons).addClass("overlay_buttons").css({ styles }); save = document.createElement('input'); $(save).attr({ type: "button", value: "Save" }).css({width:'45%'}); undo = document.createElement('input'); $(undo).attr({ type...

jquery supports function pageload() and $().ready() ?

Hi, Does jquery support both function pageload() and $().ready() ? Or is pageload() for ajax.net ? ...

How would I use jQuery to grab the contents of a page and render it within a div?

This is a question in response to thise: http://stackoverflow.com/questions/760628/javascript-function-not-working-in-ie I need jQuery to do something like this: function render_message(id) { var xmlHttp; xmlHttp=new XMLHttpRequest(); xmlHttp.onreadystatechange=function() { if(xmlHttp.readyState==4) { docume...