jquery

jQuery Ajax - Alternate XML sources for each request

I have two XML sources to retrieve data from. I want to use them alternately per page load. So when someone visits the page the first source will be used, next time the visit the page the other source will be used. Here is the ajax request I am using to get one data source: $(document).ready(function() { $.ajax({ ...

event.srcElement is not working when the class sector is using

Hii, I have an issue of using event.srcElement that i have write an event handler for a class selector but when i am taking the source element the exact element which i have clicked is not getting.Is there any alternative there ...

Resize jQuery colorbox for iframe content?

Using resize() function, we can resize ajax content of colorbox. But how to resize width and height of colorbox having iframe content? can it be possible to set new height and width of colobox? I found solution from this url - http://groups.google.com/group/colorbox/browse_thread/thread/fadc3d68ca764de3/c38fa24136a6abd7?pli=1 but stop ...

Can I change the border color / style of a SELECT element using CSS in IE 8?

I have seen that the situation is very problematic after reading these: http://stackoverflow.com/questions/380037/ie6-ie7-css-border-on-select-element http://api.jquery.com/css/ However maybe the situation has changed with Internet Explorer 8. If that is so, I'd expect this piece of code to work in IE8: $(selectObject).css("border", ...

I cant get slide title, ccle jQuery

hello! having real problems getting the alt attr from the active cycle slide? Should i be using 'opts' at all to get this? an pointers welcome! $("div.backgroundImages").fadeIn(200).cycle({ fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc... timeout: 0, containerR...

Change the scroll of an hidden div

Hi, I have an hidden div with a fixed height and a scrollbar. I would like to change the scroll position, but the browser won't le me do it, as the div is hidden. The scrollTop property will stick to 0. Also, I don't want to show and hide the div back, which causes flickering. If anyone knows how to do it, it'll be really helpful. Th...

jQuery: Get attributes from "live" element

Hey, I create a new window when i press a button. This window contains html input elements that i want to manipulate with jquery, but i can't catch the elements. Normally i would use the live function because the html is first added to the dom when the button is pressed, but its not working. jQuery(document).ready(function () { va...

jquery uploadify work in ajax call

Hi there. I have a file with the uploadify button that works fine but itself. However, i have a parent file that calls the file with uploadify and displays it in a div. This doesnt work. Is there a way to initialise the uploadifier when the ajax call is made thanks edit Sorry guys OK Sorry.. I have a link called Browse Files.. ...

Jquery Sortable Update Event can called only one time?

Hello. I'm trying to make category changes with Jquery & Php. I have no problem with it. My problem is, when the update event is called, it returning 2 results. 1 result for Dragged Parent, One result for Dropped Parent. I wanna call only dropped parent's id. Here is my script: $("#gallery ul").sortable({ connectWith: '.dropBox', ...

jquery $(this) instead of $('#id form)

I'm doing this: $("#bcdialog").dialog({ resizable: true, height: 400, width: 600, modal: true, autoOpen: false, buttons: { 'cancel': function() { $(this).dialog('close'); } 'save': function() { $("#bcdialog form").submit(); } } }); I would like to know if it ...

Get div height in pixels although its height set to 100%.

I wonder if there is any way to get div height in pixels, although its height set earlier to 100% height. This is required as div content is dynamic so div height has different values based on content itself. [Edit] Div by default is hidden. I need to get div height in pixels for later manipulation (smooth scrolling will be done for ...

Browser-friendly popup windows that don't get blocked (for a help window) - jquery plugin?

Hi there. I've been tasked with making our help section open in a new window which isn't blocked by any of the major browsers' anti popup behaviour. My spec is 'to make it like the one on the salesforce website'. haha. (The salesforce site is login only i'm afraid so i can't even show you it.) Anyway, before i tried to reverse eng...

jQuery URI encode (char &) .html() attribute value

I've read a lot of the HTML encoding post for the last day to solve this. I just managed to locate it. Basicly I have set an attribute on an embed tag with jQuery. It all works fine in the browser. No I want to read the HTML itself to add the result as a value for an input field to let the user copy & past it. The PROBLEM is that the .h...

jQuery Clone element and get inherited CSS

I am trying to clone an element and get its CSS proprieties plus inherited padding and margin. I can get the respective element position, width, padding and margin but I can not get the inherited padding and margin. Is there a way to get the actual rendered CSS and apply it to my clone? Thanx ...

Popup CSS menu with jQuery in IE6

Hi Gurus, I have this very simple jQuery function that allows ul.lev2 to show on hover. $('#tab_menu li.li_level1').hover( function() { $('#tab_menu ul.li_level2', this).css('display', 'block'); }, function() { $('#tab_menu ul.li_level2', this).css('display', 'none'); }); Unfortunatelly it dosent work with my html markup. I reall...

How to call Jqgrid On Submit in MVC

I have to search an Image in the database and show it in a Jqgrid using MVC. Onclick with textbox value I am able to get it in Jqgrid but after loading the page it is getting refreshed and my grid dissappears. What to do to stay the grid in the same page when the page get refreshed. <%Html.BeginForm("Index", "UpdateBatchStatus", FormMet...

What are options for jQuery Grid with Panel and Menu bar

First some context - I have already tried different jQuery related plugins like jQuery Sheet, jqgrid etc.But what I really need is a consolidate sheet/grid like windows excel that also has Menus, and Panels. Or I would have to glue different jQuery plugins to get this effect. Thank you, in advance. ...

assign matched values from jquery regex match to string variable

I am doing it wrong. I know. I want to assign the matched text that is the result of a regex to a string var. basically the regex is supposed to pull out anything in between two colons so blah:xx:blahdeeblah would result in xx var matchedString= $(current).match('[^.:]+):(.*?):([^.:]+'); alert(matchedString); I am looking to get ...

Dynamically added AJAX content with wrong markup

i am using jQuery to dynamically add content $("#articles").prepend('<article><header><p>info</p><h2>You are using Internet Explorer</h2></header><p>It is recommended that you use a modern browser like Firefox, Chrome or install Google Chrome Frame to experience better performance and advanced HTML5 and CSS3 features.</p></article>'); ...

Un-obtrusive modal window in external site

Sorry for the title.....bit difficult to word what I really want to ask. Some websites allow a user to copy and paste some widget for use with their own site. For example, getsatisfaction. Yes, those feedback icons that I hope most of you see in various places. If you have a look at twitterfeed, on the left there will be a feedback ico...