Ok so this is weird. I implimented jquery to try and get some ajax funtionality working and it not olnly doesn't work, it stops the rest of my normal js from running at all.
[Code]...
EVERYTHING stops working. All my DOM events don't fire and none of my regular JS works. Anyone know how to get jquery code to work with or without normal JS code?
<script language="javascript"> // Upload progress bar jQuery(function () { jQuery('#upload_form').uploadProgress({
[code]....
^ This code I got online and it is very peculiar to me. It isn't tied to a function that can be called the documentation has the code just free floating. My problem is that I want to have this code be able to have access to native javascript variables. It seems the second I go into the .getJSON function I no longer have access to any other variables. How do I go into a JQuery function while still having access to native js variables with this code specifically?
I am using a jquery plugin and the code that I am using has fadein() and fadeout() functions but I dont want any fade, could anyone please enlighten me on what the normal one is without the fade,
I'm a bit of a newb and could really use some clarification here. I was doing some stuff today and realized that find() actually returns a set of HTML elements which IMO is great but the developer that brought it to my attention is using it regularly for UI display with JQuery UI. And since these UI methods require a JQuery object instead of an HTML element, I imagine they must be converting the elements back to a JQuery object. Am I right in this assumption? If so, then does something like $().find('.aclass').first() have the first() method reconvert the first html element back to a JQuery object?
I use jQuery in a sharepoint environment and I have a form with a lookup value(dropdown), I set the selected value of the dropdown from code based on a query string parameter.
When I disable the dropdown the value will be ignored when posting the form, currently I hide the dropdown which will save the value on post but will ot show on page.
The question is,
Can I use jQuery to get the selected value and display this a normal text?
I don't understand how $(this) differs from doing a normal element select ('a'). Dont they both loop and apply the attached function to each element affected?
The anchor click loads a new page, however, the unblocking of UI doesn't completely work. The overlay is removed, however, the cursor is not changing back to "normal". This is happening in Firefox 3.6.16. So, the end-user perceives the page as still processing because the cursor is "spinning". Moving the mouse will change the "wait" cursor back to the "normal" cursor.
I have a table with a SAVE button on each row (id=SaveBD)...but I also have aSAVE ALL button at the top. It works pretty good except the .each function seems torandomly stop near the end ofthe row countand not save all the rows.that would cause the rows to stop saving?
I have some links on my page with ajax calls, and the callback animates the links. My problem is, if I quickly click on two of them, the first one will begin to animate (ajax will complete successfully), and then when I click on the second one, the first one will stop animating, and only the second one will finish.
// document.ready /* behavior for add to cart button */ $('a.item-addCart').live('click', function() { addToCart($(this)); } ); function addToCart(button){ /* parse data from button clicked, corresponding quantity box, and hidden price field */ $item_id = button.attr('id').split('-')[2]; $item_qty = $('input#item-addCartQuantity-'+$item_id).val(); $item_price = $('input#item-addCartPrice-'+$item_id).val(); /* set loading notification */ $('div#item-addCartActions-'+$item_id).html('<img src="/images/ajax-loader.gif" />'); /* AJAX */ $('div#item-addCartActions-'+$item_id).load( 'shopping_cart/add', {item_id: $item_id, item_qty: $item_qty, item_price: $item_price}, function(responseText){ /* show response text */ $('div#item-addCartActions-'+$item_id).html(responseText); /* pause on response text for 2 seconds */ $('div#item-addCartActions-'+$item_id).animate({opacity: 1.0}, 2000, function(){ /* fade out response text */ $('div#item-addCartActions-'+$item_id).animate({opacity: 0}, 'slow', function(){ /* show link to shopping cart */ $('div#item-addCartActions-'+$item_id).html('<a href="shopping_cart">Item in cart</a>').css('opacity', 1); })});});}
WhenIrun the below code above the init code for jQuery plugins it stops them working. Im just trying to run the code after the DOM has loaded, is there a better way? <script type="text/javascript">$(document).ready(function() {
// The gallery is hidden so need to unhide it. document.getElementById('verticalCarousel').style.visibility='visible' }) </script>
I'm starting with jQuery and all I want is like jCarousel, but I want that when mouse is over image, the entire carousel freezes (until mouse over). So, my first idea is to create something like this: <div class="photo" style="width: 256px; background-color: #8d99a2;" align="center"> <img class="photo_img" id="photo1" src="fotos/lookbook1.jpg"></div> <div class="photo" style="width: 256px; background-color: #8d99a2;" align="center"> <img class="photo_img" id="photo2" src="fotos/lookbook/2.jpg"></div> <div class="photo" style="width: 256px; background-color: #8d99a2;" align="center"> <img class="photo_img" id="photo3" src="fotos/lookbook/3.jpg"></div>
And Then, jQuery like this: $(".photo").animate({ "right": "+=9999999999" },{ duration: 200000000000, easing: 'linear' }); $(document).ready(function (){ $('.photo_img').mouseover(function(){ $('.photo').stop(); });});
The logic is that: -> a list of images that go to right eternally, (like jCarousel in infinite mode), but when mouse is over, everything stops. (JCarousel waits until the "next()" function is complete), and when mouse is out, everything moves starting from the point that paused.
We have a page that allows a user to load a form over ajax using jQuery 1.3.2. The form contains a simple table layout, some input boxes, tinymce and the initialize for a jQueryUI dialog. On first load everything works fine. If the user loads the same form again, without refreshing the browser window, TinyMCE no longer shows content, can’t be clicked inside of and the dialog no longer updates it’s content and a few other bits of js stop firing.
Now I thought this was an issue with the page and ajax, but we have another page that uses draggable elements and has a very simple form of 1 input and a submit. If you submit the form and get returned the same page by our validation the same thing happens as with tinymce, you can no longer click inside it.
In ie7 things dont stop responding so much but the browser slows down and almost stops responding.
I've implemented the jqueryPreloader I found here. It work fine except for two pages in wich the script stops without end and so the page is not visible...the web site where I added the scriptinfo and contact page where the script doesn't workI looked to the firebug console but there isn't any apparent error... but the script loads the screen-wide div (.QOverlay) with #fff background and ends without load the loading bar and without fading out the .QOverlay div
I'm trying to use the cascade function from the below link. If I try it as it is there, it works, but if I change the jquery reference to the one I'm using (1.7.1) it stops working... is there a diferent way to use that ajax call or am I missing anything?
I am using the jquery sliding panel, and have embeded a music player. Everytime I minimize the sliding panel, the music player stops. Here is a link to my example, if you click on radio on the left: Vertical Sliding Info Panel With jQuery
... like if you input text, you can't select it by sweeping it with the mouse, or shift-left arrow. Which I thought were out of the box features.You can see it in the bottom right corner of the map here I don't think the autocomplete has anything to do with it (I disconnected that and nothing changed) but maybe because it gets made by innerhtml?
Is there a way to find out the normal value of line-height for an element ?I set the line-height of an element to 20px and I want to set it to normal via JavaScript only if the the normal value is > 20px.
I have a webpage where i load eachdifferentcontent through a function load and after i load that content a problem with jQueryoccurs...if i go directly to the page where i have the "datepick" without load the content it works, but if i load some content stops working...
$(document).ready(function(){
If you want to try it live to understand what is happening here is the url: [url]
When you open the webpage if you click on the textbox it will show the calendar, but if you navigate on the right menu and then press the text box won't work...
I have this tweet ticker code that scrolls a live feed at the very top of the header. It runs on jQuery 1.5.0. The site I have has a vertically scrollTo div for each button pressed on the navigation. The problem I'm having is that as soon as I plug in the jQuery 1.5.0 which turns on the tweet ticker, it stops the overflow and the scrollTo. So when I click on any of the navigation buttons it jumps to the next page rather than scrolling smoothly.
We are using FlowPlayer to display a video on our website page here. However the video appears very small in IE8 (like a thumbnail) and I cannot seem to work it out!
... but that doesn't work. It seems as though if the first selector returns no elements that the 2nd line is not executed. I might be wrong about the diagnosis, but the symptom is that I can show the log, but can't then hide it, whereas if I start with all the panels visible and remove the first selector, the hideLog event is triggered as expected.What does work is this: