I have some XML
<carouselitem name='carouselitem'><flick><pic>/images/test1.jpg</pic><headertext>sdfsdfsdf csfdfsdf</headertext><dek>sdfsfsd sdfsf dsfsfdsfds sdf sdfsfds</dek></flick></carouselitem>
Wrapped in DIV with an id of carousel. The below works fine for FF
var carouselarray = $('#carousel carouselitem');
jQuery.each(carous...
The :not always gives me such headache. I am trying to not repeat an addition of plus sign. This is the selector that gives me the element I want:
#submenu li.current_page_ancestor.current_page_parent a:first
Basically I want to say that if that selector does NOT already have a plus in front of it, add it. But where do i put the :not...
Hello all,
I'm trying to group some exisiting top-level functions inside a
closure (to avoid polluting the global namespace) but I'm not quite
getting it to work.
First, all the JS works outside my anonymous function, but once I put
it in the anonymous function I get an error of "crossfade is not
defined". Does anyone see anything comp...
Hi All,
I am trying to call a File ActionResult via jQuery
$.get("/Home/DownloadAction")
and I can see that the method is being called but no prompt to download the file (no errors either)? Can someone please explain? Because if I make it
Html.ActionLink("Download", "DownloadAction")
it works as expected.
Thanks,
rodchar
...
I have a few users who complain that the font size on my web application is too small to read. They aren't happy with trying to resize the font setting on the browser because when they make the font larger the dimensions and layout of the application change. Are there any existing tools that give me a good way to let the end user pick ...
We have an asp.NET page which is programmaticaly adding data as new list items in an unordered list..
I want to use some jquery to show a sliding panel of extra detail for each list item but the code I'm using only shows the first in the series (as I'm guessing because they are called the same thing) .. How do I add some conditions to c...
Hi,
I'm creating a small page where users can modify the name of categories and items with the help of jeditable/jquery.
The script works but acts a little strangely in Firefox. If I double click on my editable span it will be replaced with the input field. It will then disappear if I focus on some other element EXCEPT another editable...
Hello Gurus,
Im looking for function that will allow me to remove (replace) all symbols in my body tag apart from a-z letter.
Is there a simple way of doing this?
Many thanks in advance.
...
Using $('#form').serialize(), I was able to send this over to a PHP page. Now how do I unserialize it in PHP? It was serialized in jQuery.
Thank you !!
...
Hello-
Im creating a nav that uses jquery to replace the image on rollover. Here is the code I am using:
http://peps.ca/blog/easy-image-rollover-script-with-jquery/
basically, you add a suffix (_o) to the filename and when you rollover the src, jquery replaces it with the (_o).png. I want to add fade so when there is a rollover, the ...
I'm using ajax to do some validation on some dates passed (basically making sure that the first date/time occurs before the 2nd date/time, and neither are blank).
If I have async set to true, it works, but I get a false positive because it's working at the same time as the rest of my form validation. If I set it to false, then I get an...
Hello,
My question is the following:
What is the best way for looping some json array too show some data with
like a one second delay.
The one below does not work, because it only shows one message once instead of 4
jQuery.each(data.user, function(index, itemData) {
timerid = setTimeout(function(){showMessage(itemData);}, 100...
I recently read a jQuery tutorial about best practices. I usually run all my functions from one js file called global, but the article advised not to do this. Below is the code that should be used with inline javascript, called on the page that needs the function:
<script type="text/javascript>
mylib.article.init();
</script>
What I...
I am doing a complex language translation in jQuery. I am copying some of the methods used in the jQuery/Google translate, but using our own XML files for getting original English and translated languages.
I am able to easily read English and other language into an array.
But my problem is that some of these text phrases, that we are p...
I'm trying to load random items into a div every few seconds, with a nice fadeOut/fadeIn transition between each load. Here's the code:
<html>
<body>
<div id="item"></div>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript">
...
I have a page with two combos: depending on the option chosen in the first combo the second combo is displayed / hidden. This works fine on FF3.5, but not under IE8. In IE8 the second combo box briefly displays and then disappears. It's running under windows XP SP3.
<table width="100%">
<tr>
<td>
<table>
<tr>
...
Hello,
Does somebody know, how to call a lightbox from an custom link?
Example:
$('#price1 a').lightBox(); //in the header
Now I want to click a custom link somewhere on the page.
<a href="#" class="price1">Link to lightBox</a>
And images in a div (until link clicked they are not visible)
<div id="price1" style="display: none;"...
So I'm using the awesome jquery plugin -- jQuery Ajax Upload
and after a file is uploaded, this code is run:
// Called when upload completed successfully (puts success details into hidden fields)
upload_success_handler: function(file, response) {
$("input[name$=_filename]", container).val(file.name);
$("input[name$=_guid]", con...
I want to create a jquery script that works like the iphones "slide to unlock" bar. i want to have 2 divs, the container, and the slider. i want to be able to drag the slider to the right, and when the slider reaches the very right of the container, have it do something.
i don't want to use jqueryUI in doing this, that library is too bl...
can you load swfobject.js or jquery.swfobject in the footer, below the div being replaced?
I'd love to keep all of my javascript loading at the bottom of the page but swfobject seems to fail if it isn't loaded before any divs to be replaced.
bare bones example:
<div id="flash"></div>
<div id="footer">
<script src="/static/default...