I'm facing a problem while working with iFrames. What I need to do is, get the contents of a division 'contents' , display it in an iframe, and then remove all forms/form elements ONLY in that iframe. When i use $("#form").remove(), it removes the form both in iframe and in the window. Can someone help?
Thank You.
...
HTML:
<div id="lowerLayer">
<div id="positionLayer">
<div id="imageLayer">
<div id="imageHolder" style="background-image: url('/Images/Loading/ajax-loader.gif');">
</div>
</div>
</div>
</div>
CSS:
#lowerLayer
{
position: fixed;
top: 0px;
left: 0px;
right: 0px;
botto...
I have a date/time field that I need to have a date/time picker but it's near impossible finding one, a decent one (I have googled like wild). I tried this picker http://electronicholas.com/calendar but it's in Ruby on Rails and I do not know how to convert it. Any ideas? I run mainly jquery but I would use another lib if needed.
...
I have this right now:
$(document).click(function(e) { alert('clicked'); });
In Firefox, this event is firing when I left-click OR right-click. I only want it to fire when I left-click.
Does attaching a click handler to the document work differently than attaching it to other elements? For other elements, it only seems to fire on lef...
Hi there,
I created a sort of modal overlay and then a content with the overlay.. the modal overlay has opacity set and it works but the content of the overlay also has opacity.. i think its inheriting it... I don't really want to apply a new class to the content, is there a way to say only apply to
here is my css
.modal-overlay {
...
The following code displays a sub-menu when you hover over a menu item. Since its using a timer, if you don't select the sub-menu item fast enough, the sub-menu items disappear. I would rather have it highlite the menu option it is on and keep the sub-menu items until you hover over or click another main menu item:
$(document).ready(fu...
Hi there,
Anyone have any experience with jquery vAligh plugins or similar?
I tried to align for the following but it fails.. I was using a simple valign plugin (I will put the plugin at the end, its a jquery extension), if anyone can help it would be really helpful...
var overlayLayer = $("<div id='office-location'></div>").addClass...
Hi,
Tracing this jquery autocomplete function, can someone explain in detail what is going on here?
function showResults() {
// get the position of the input field right now (in case the DOM is shifted)
var pos = findPos(input);
// either use the specified width, or autocalculate based on form element
var iWidth = (options.width > ...
I have
var $set = $('.foo,.bar').filter(
function() {return $(this).parents('.baz').length < 1;});
as a way to select all the elements whose classes are either foo or bar and who do not descend from an element whose class is baz. Is there a selector that will accomplish the same thing without the need for a filtering lambda?
<di...
Using jQuery, I'd like to be able to get the index of the li where the contained anchor tag's HREF equals "#All". (In this case the correct result would be 3)
<div id="tabs">
<ul>
<li><a href="#CPU"><span>CPU</span></a></li>
<li><a href="#Pickup"><span>Pickup</span></a></li>
<li><a href="#Breakfix"><span>Brea...
Hi to everyone, well my problem is that, i have a form, which i want to validate the fields using jquery, if the data is correct i let the submit continue, if no i disable the default behavior by returning false(saw that in a tutorial, here).
so i used as i said the jquery syntax, when the document is ready, i registered for the click ev...
This is my website: http://keironlowe.x10hosting.com/
I need to know how to make the red line slowly get longer when hovering over, and slowly shrink back to normal size afterwards using javascript or jQuery.
Could someone show me something to get started in the right direction?
...
I have a lot of Ajax indicators in a Page. Now I use
$(document).ajaxStart(function() {
$('#ajaxBusyIndicator_<%=partido.PartidoId.ToString()%>').css({ display: "inline" });
}).ajaxStop(function() {
$('#ajaxBusyIndicator_<%=partido.PartidoId.ToString()%>').hide();
});
The problem with this is that I ge...
Hello all,
I make an AJAX request to a PHP script which returns a number from a text file that changes. This AJAX request should happen every 3 seconds. However, an AJAX request is made once and it doesn't return anything and firebug shows the AJAX GET request is still being made. After a few minutes it returns and produces a number. It...
From an ASP.NET MVC perspective, what do you use jQuery for?
Apart from UI "flair" - things like fading colours and pretty animations.
Things I can immediately think of include pop-up calendars and modal popup dialogs, but there must be more...
Edit
I am interested in jQuery uses for things that ASP.NET MVC does not do out of the box...
When using the 'this' keyword in jQuery, what is the syntax for adding basic filters.
For example:
$(this):contains('foo')
$(this):visible OR $(this:visible)
...
What is the best way to implement server push for more than one thing.
Lets say I want to just update user status, so I can periodicaly poll the server for status in like 1000ms and update the page.
The other way I can found is that server waits for like 30 sec, while it checks if there was any change and if one is found, server push...
Hello,
I am currently trying to find the parent of a parent of an element. I have a link being clicked that is in a <td>, and I'd like to get the <tr> object.
Why wont "$(this).parent().parent()" work? What will?
Thanks,
Brendan
Edit: It appears an error in my syntax was throwing the whole thing off. "$(this).parent().parent()" does ...
I am not very good at jQuery but decided to use jEditable plugin for my site because I thought it looked good and solved the purpose. However, I am in a bit of a tangle now.
I used this plugin to edit data and the edited data is sent to the DB and some fields are updated by it. the Stored procedure that updates these fields is return...
Is there any way to show a loading image while loading a image?
...