jquery

Modal box + checkbox + cookie

I would like to achieve the following: On homepage load, display modal box Within modal box, display a form with a single mandatory checkbox On checking the checkbox, hit submit and close the modal box, proceed to homepage Remember this checkbox tick preference using a cookie On a users return to the homepage, if they have checked the ...

Get Private RSS feeds from twitter

Hi all, I am trying to display the latest 3 tweets from twitter on my clients website.The tweets are set as private.How do i pass the username/password to get the data for the latest tweets.Can i do it with Jquery.If yes, please let me know how i can do it. thks, anu ...

Running javascript code with html form submit

Hey, I'm using a html form that is used to log people into my website, I am building it so it uses AJAX (jQuery) but I'm having some problems. Here is the JavaScript: function validateLoginDetails() { $('[name=loginUser]').click(function() { $("#mainWrap").css({ width:"600px", height:"200px" }); $("#interfaceScreen"...

How can I tell what events are bound to an object?

I am using jqGrid (http://www.trirand.com/blog/) to display some read-only data. The resizeable columns are interfering with other draggable elements on the page (they get stuck when dragged over the region where the columns can be resized). I want to unbind() whatever is allowing the columns to be resized, presumably on mouseover, but...

document.body not working in IE on a page that has been redirected to?

Hello all, hoping you can help with this. I have a link that redirects to a page on another one of our sites However, when this redirect happens, I get a "document.body is null" error from JQuery, and a similar error from SWFAddress (_d.body is null); but only in IE. However, when I enter the redirected to URL directly in IE (aka sans...

zeroClipboard complex css problem

i have list of images and on mouse over there is option box shows under it, which has embeded code input box to copy from. now i implemented zeroclipboard on it, for making copy function work on click, so when i do mouse over on image, it shows the option box properly, but when i take mouse to click on the input box to copy the code, the...

How can I get jQuery code completion in NetBeans?

I'm using NetBeans for PHP. When I edit a .js file, it gives me javascript code completion. How can I get it to also give me jQuery code completion? ...

jquery contenteditable enter "How do I trigger shift-enter when someone presses enter?"

When pressing enter in contenteditable in chrome, a div is inserted. This interferes with my markup, I need it to be a br. I know that shift-enter is a br. What is the best way to solve the problem? Thanks. Reformulating the question: How do I trigger shift-enter when someone presses enter? I've tried writing something like this: $(...

Jquery site questions

im developing a site heavily based on jquery and involving wordpress. is there any way to navigate between pages without reloading the whole thing, other than simple hide/show functions or with hide/show how can i link to a certain part of the site? for example if the home page is a heap of divs <div id="1"> <p>content here</p> </div> ...

jQuery - Trying to filter divs on keyup

Revised Code jQuery(function($) { $("#filter").keyup(function () { var filter = $(this).val(), count = 0; $(".filtered h2").each(function () { if ($(this).text().search(new RegExp(filter, "i")) != -1) { $(this).parent().addClass("hidden"); } else { $(this).parent().removeClass("hidden"); ...

jquery ajax not setting variable to POST

I'm stumped. I'm using jquery and ajax to POST some fields from a form to the database. This is for a "edit form" - so all the fields are pre-filled with data existing in the mysql database. I'm passing input from 4 fields, and it only works for 2 of them. Here's the HTML <form id="editSubmit" method="post" name="editSubmit" action=""...

json request gets cancelled when skipping to next page

I am using json to get the list of user information to show on the top of the page using jquery in asp.net (C#) application. i am using jquery timer plugin for the json call to check for the user information frequently(for every 15 minute when the user is in online). When the json request is in progress, and when i navigate to the nex...

Why isn't shadowbox working in IE?

The shadowbox I am trying to fix in IE is located here: http://www.carolinedawes.com.au/abc-gardening-australia.html The HTML is <div class="hero-image"> <a href="m/abc-gardening-australia-caroline-dawes.mov" rel="shadowbox;height=272;width=480"> <img src="i/abc-gardening-australia-caroline-dawes-gardening-adelaide.jpg" alt="caroline ...

How to make contents of <pre><code></code></pre> render correctly in IE7?

I make the following AJAX pull with JQuery using JSON to an ASP.net Web Service: $.ajax({ type: "POST", contentType: "application/json; charset=utf-8", url: "TestWebService.asmx/Foo", data: "{}", dataType: "json", success: function(msg) { $("#justpre").html(msg.d); $("#precode").html(msg.d); } } ); The TestWebService implement...

jQuery traversing form elements

I'm trying to hide a form label and textbox, by default, and make them appear when an option is selected. I can't see why my code keeps failing. <tr> <td><label>My Label</label></td> <td> <select name="1" id="1"> <option value="2" selected="selected">2</option> <option value="3">3</option> <option ...

Finding an element added by clone

Hi, The following is my HTML <div id="ingredientrow1"> <div id="add"><a href="#" id="addIngredient1">Add</a></div> <div id="remove"><a href="#" id="removeIngredient1">Remove</a></div> <div id="si"> <input type="text" id="singleIngredient1" name="single_ingredient" /> <input type="hidden" id="recipe_ingredient_id...

How to find a value in web page between square brackets using JQuery?

hey, I have the following scenario: I have 5 possible values on a page: [value 1] ... [value 5] What I want to do is grab each value and brackets... Example Content: <p>velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitatio...

Refresh only the content panel in master page on page navigation in asp.net mvc

I have a master page with Header, Menu, Content and Footer panes in my asp.net mvc (C#) application. I don't want the Header and Footer panes to refresh on each page navigation, only the Menu and Content panes should get refreshed. How can i achieve it in the asp.net mvc application? any suggestions ...

how to convert the datetime specific to browser's settings in Javascript?

Hi, I am using jquerry to display the calender to pick the date in my mvc application. i need to display the date in the converted format depending upon the browsers settings. if its newzeland, then i need to show the dateformat based on their language. how to do this? below is my javascript $(function() { $('#StartDate').datepicke...

jquery ajax history and bookmarking plugin

There are plugins for handling history and bookmarking like: http://plugins.jquery.com/project/history. Somehow it doesn't look as a complete solution. For example, on one page you might have a filter that consists of several checkboxes, text boxes etc. You would like your page history functionality to update all those controls and to up...