jquery - colorbox question
I'm using the manual colorbox call like so: $('a[rel="example1"]').click(function(event){ event.preventDefault(); $.colorbox({ href: $(this).attr('href'), maxWidth: '90%', initialWidth: '200px', initi...
I'm using the manual colorbox call like so: $('a[rel="example1"]').click(function(event){ event.preventDefault(); $.colorbox({ href: $(this).attr('href'), maxWidth: '90%', initialWidth: '200px', initi...
I'm changing the image src of an image node. I want to be able to make sure that it's changed before executing somecode. How would i do that? right now i have function changePic(imgNode, newPic, desc){ var descNode = $("#description"); $(imgnode).fadeTo(500, 0, function(){ $(imgnode).attr("src", newPic); $(imgn...
I'm using jQuery and the Datatables plugin. When a row is clicked, a hidden row appears with details about that record that can be edited. After those details are edited and the hidden row is closed, the cells of the main table that have changed are updated. Here's my old code: function teacherTableUpdate(nTr) { oTable.fnClose(nTr)...
i have a page with a jqgrid on it with filter row at the top. I want to have a link on another page that loads this grid page but with a filter set on one of the columns. is that possible to do from a link or any other workaround people can suggest? ...
I've implemented JQuery sortable, and it works fine. The problem is I can't pass the list in its new order to a controller so i can save it. <script type="text/javascript"> $(document).ready(function() { $("#sortable").sortable({ axis: "y" }); }); $(function() { $("#submit-list").button(); ...
Hi, Im seeking help to do a "text roll/replace" and even better if animated. To the point i have a vote with 5 stars, once people have clicked on the rating, star 1, 2, 3.. etc At first i want to show msg: "Like it or not?" once voted text change to, "thumbs up pal!" and seconds after changing to "2 rating from 1 vote" Hope it makes...
I have two elements on a page. <div id="a">content</div> <div id="b" style="display:none">different content</div> When I click the currently displayed div, I want to hide it and show the other one. This is easy to do: $('#a').hide(); $('#b').show(); But now I want to take it a step further and highlight the element as it is being d...
Simple example: $(document).ready(function(){ $('body').css({'background-color': '#dddddd', 'font-size': '12pt'}); $('table tr:odd').addClass('rowShaded'); $('<p> Oh my learning jQuery is so fun </p>').addClass('myP'); $('#myButton').click(function() { alert($(this).attr("value")); //should display the name of the button $('#...
so I got this code working for Firefox and Chrome...what it does is it allows you to reorder the options within an HTML select form...but then when I tested the code via IE8, it's kind of patchy...it only works for the first few clicks and after that you have to click many times on the button for it to work.. Does anybody know any other...
Right now I have a jQuery UI dialog with an <iframe> inside of the dialog. When the user pushes a button, the dialog pops up with a form-editing screen in the iframe. Well, I want to have two buttons in the inner form-editing screen, "cancel" and "ok". Cancel doesn't save changes and closes the dialog, ok saves changes and closes the d...
I have a url that looks like: http://www.my-site.com/#key=kj123asj. I would like to retrieve key using javascript. Any help is appreciated. ...
I have a table of input fields where I want to 1)change the first column from an input field to a normal td field (which works) and 2) change the name attribute of the other td fields within the row. (this is related to a previous posting Retrieve an Input fields' name, and then change it but is a different problem). I want this: <tr ...
Hey there, working on the code and kind of got it working. Now pleeaseee tell me what's wrong. On hover .photo i make a variable performer with the rel value of a link inside .photo And i want to use this variable when the mouse leaves. It does now work, any ideas? $(".photo").hoverIntent(function() { var performer = $(".photo")...
I'm a newbie in jQuery... I've used one jQuery plugin (Actually SimpleModal Plugin) in my page. It didn't work until I replace $ with jQuery! $(document).ready(function() { --> jQuery(document).ready(function() { It is working now, but I still have a problem! I want to close this modal window by click on my cancel button on th...
Hello! I'm running some beta tests in this URL: http://acquasports.esp.br/site/ Whenever I load the main page and the jquery is already loaded (when I click the company logo, per example), the browser Mozilla renders the menu area as a large white square. What could be causing this? There are different scripts running in the main page...
the checkboxes are checked by default. if unchecked they should hide the text. how do i hide or show the text in jquery? html: <div class="check"> <p><input type="checkbox" value="Name" id="name" checked /> <label for="name">Name</label></p> <p><input type="checkbox" value="Reference " id="reference" checked /> <label for="refere...
Sorry if this has been asked already, I've did a google search and couldn't find the answer. I am new to jquery and I am wondering how to protect my backend pages from being loaded by external users? For example, if my jquery .post or .get calls "delete-post.php" I only want the jquery to be able to load that page. I don't want some J...
Twitter's Streaming API seems to provide a way to receive realtime tweets without constantly polling for new data. Would it be possible to make use of this API using jQuery (or maybe falling back to pure JS)? As far as I can tell, there's no built-in way for jQuery to stream an HTTP request with JSON. Is that correct, or did I miss some...
I have a jQuery draggable container div with a side scroll bar that should not be draggable when I am scrolling up and down. .infotext is the inner div that has the text, contained within #infobody which is set to overflow:auto. I need a way to negate the draggable function on the parent div when the child scrollbar is selected. Here ...
I'm trying to iterate through some JSON results from the YQL geo.places table using the YQL jQuery plugin (http://plugins.jquery.com/project/jquery-yql) troubleshooting with the following code; $.yql("select * from geo.places where text=#{placename}", { placename: '90210' }, function(data) { var Results = data...