jquery

JQUERY, Anchor, ScrollTo, highlight

I have a large threaded comment list. When a person replies the author gets an email notification. I'd like the email to have a link to the reply something like: http://site.com/feedback/#reply-22 the page would have something like wow nice comment With JQUERY how can I detec the anchor, slowly scroll to the location on page load, and...

jquery Inserted a new row

When the user presses the text "Add", then I'd like to create a new row with an input tag. I think I've got most of it working. <!DOCTYPE HTML> <html> <head> <script src="http://www.google.com/jsapi"&gt;&lt;/script&gt; <script type="text/javascript"> function OnLoad() { $('.insert').live('click', function() { var currentRow...

How do I stop Javascript inside a Jquery Sortable area from executing?

the closest way that I have this happening is by doing a: start: function(event, ui) { $(this).find('script').remove();}, as an event listener to the sortable, but I have a feeling that this is a bad idea. If anyone has a better way of doing I would love to hear them. ...

Error is not caught by jquery start() function

[Update. I need to be more precise, I see...] See the following example in javascript: <html> <head> <script> window.onerror = function() { alert('error'); // this one works try {i.dont.exist += 0;} catch(e) { // do some stacktrace stuff, this does not trigger alert(e.stack); ...

how i can make jquery top box like stackoverflow.com

Possible Duplicates: How would I implement stackoverflows hovering dialogs? i want a small box like stackoverflow did you see the box in the top is each page i want do one how ...

i want jquery or php code tell the visitor if the java script is disabiles

i want jquery or php code tell the visitor if the java script is disabiles ...

jquery Insert/Delete a grid

If the user clicks on "Add", I need to temporarily disable all the add/delete listeners until myid loses the focus. <!DOCTYPE HTML> <html> <head> <script src="http://www.google.com/jsapi"&gt;&lt;/script&gt; <script type="text/javascript"> function OnLoad() { var myCounter = 0; $('.insert').live('click', function() { var ...

How to display error message on jQuery modal in MVC

Hello, I am trying to lookup an employee by their ID using a jQuery modal. My Modal has an input text box for the employee ID and a Search button. Once the search button is clicked I have the value looked up in a db and if no result exists I am looking for an error message to display on that same modal. My controller looks like this...

How can you implement jQuery code in Drupal pages (for non-coders)

I notice that jQuery 1.2.6 is installed with the latest version of Drupal 6. But it's not called by content pages by default. Assuming I wanted to include a very simple jQuery code snippet (not a plugin, etc.) in a page: I'm looking for a solution for non-coders. And while modifying php files is an option, it's my least desirable soluti...

AnyThing Slider JQuery plugin working in Chrome, not in Firefox, can't find error

The JQuery AnythingSlider doesn't splay images in a RTL (right to left) (Hebrew) website. It works in Chrome, but not in Firefox and Safari. What am I missing? Thanks! ...

jQuery: move window viewport to show freshly toggled element

I have a simple bit of jQuery in doc ready which toggles a div containing a textarea: $('div#addnote-area').hide(); // hide the div $('a#addnote-link').click(function() { // click event listener on link $('div#addnote-area').toggle(); // toggle the hidden div }); The toggle works fine when clicking the link. The problem I'm havi...

Jquery: How to Remove Spaces from GET URL, Search

Hello, i replace the submit url from the search form with this jquery snippet: <script type="text/javascript"> $(document).ready(function() { $('.search-form').submit(function() { window.location.href = "/search-" + $('.search-form input:text').val() + "-" + "keyword"+ "-"+ "keyword2/" + $('.search-form input:text').val() +...

Javascript: issue when dynamically adding a row from its HTML to a table in IE

I looked at some other questions like this one but they don't address this particular issue: When I run this code in IE (8): $("<tr><td>1</td><td>A</td></tr>").appendTo("#myTable tbody"); I end up with this HTML being added to the table's body: <TR> 1</TD><//TD> <TD> </TD> A</TD><//TD></TR><//TR> </TR> Any idea? Thanks in advance...

Jquery problem with plugin

Hello, I have PHP page where users can upload photos (using Ajax & PHP script). Those uploaded photos (thumbs) are shown after upload in DIV below upload field and fancybox plugin (I'm using it for popup window for photos) is working ok then. Then, after hitting send button I want to clone that DIV at that same page at message board, b...

JQuery Slideshow not working in IE8, works fine in Safari/Firefox

The website (www.hilaryandmatthew.com) for my upcoming wedding has a really nifty JQuery slideshow (courtesy of www.dynamicdrive.com) I hope I can get some help ASAP, I really want my site looking sharp before I send out the Invitations. I don't know anything about JQuery... hence I experience the pitfall of copy&pasting open-source ...

jQuery. Using json data on remote server fails.

Hello, I am working with json data together with jQuery. It works perfectly fine when using a local json file, but shows just a blank page when using a remote json file from another server (even when using a complete URL from my own server). This works: $.getJSON('9.json', function(data) { Does does not work: $.getJSON('http://beta...

jQuery colorbox only binds to 1 element in IE 7 and FF 3.0

I'm just about finished writing a backend for a website in PHP/MySQL/jQuery, but my jQuery colorboxes aren't working in older versions of IE and Firefox. Steps to reproduce problem: 1. Navigate to http://swstrailers.com/ 2. Scroll to the very bottom and click the Login link in the right corner 3. Leave the fields blank and click the Log...

Enabling live event after it has died

This is a continuation from the previous stackoverflow jQuery question I asked, but I don't think the line that says: $(".insert").live("click", insertHandler); is working. <!DOCTYPE HTML> <html> <head> <script src="http://www.google.com/jsapi"&gt;&lt;/script&gt; <script type="text/javascript"> function insertHandler(currentRow) { ...

jquery checkbox enable/disable radiobuttonlist

I have a Checkbox and disabled Radiobuttonlist in same table row and different td and just trying to enable/disable it when I check/uncheck a checkbox. <tr class = "main"> <td colspan="2"> <input id="CheckOne" type="checkOne" name="checkOne" /> <label for="CheckOne">Some Text</label> </td> <td align="center"> ...

Form refuses to submit via jQuery

I have the following form <form name="myForm" id="myForm" method="post" enctype="multipart/form-data" action="script.php"> and this jQuery $(document).ready(function() { $('#previewButton').click(function() { // Change form's target to be in a new window. $('#myForm').attr('target', '_blank'); /* * Create a hidde...