I want to perform asynchronous JavaScript downloads of two files that have dependencies attached to them.
// asynch download of jquery and gmaps
function addScript(url) {
var script = document.createElement('script');
script.src = url;
document.getElementsByTagName('head')[0].appendChild(script);
}
addScript('http://google....
I'm evaluating Watir right now. While Selenium has a dragAndDropToObject command (which seems to be broken) Watir seems not to have such a command. I couldn't find a script/tutorial with an example of how to test DnD with Watir.
Did anybody try/succeed in testing drag-and-drop with Watir?
Btw.: I am using jQuery for the DnD implementat...
Hi!
Im trying to do a simple fadeIn ONCE for the first div , but the problem is that this is a ajax load inside a everyTime(xxx sec), so it does the same thing everytime it loads again.
anyone got any ideas on how i can prevent the first div to fadeIn over and over again, but still do this function on the new div?
Not very familiar wi...
I'm developing an application with javascript. What I need is to have divs with id's (1,2,3...) and be able to insert a div between, for example, 2 and 3, with jquery, and then have that be the new three, and three becomes four, four becomes five, etc. I've got the div insertion working, I just need to know how to reorder the divs. Any i...
Hi all, I'm trying to write a bit of jquery which finds all h2 tags inside a div (.content), then appends each one into another div (.intro).
So far I have this:
var h2 = $(".content").find("h2");
$(h2).each(function() {
$(this).append(".intro");
});
But it's not working.. if someone could help me out, that'd be great :)
...
I'm calling a javascript function in an inline onclick like so:
<a href="#" onclick="removeAttribute('foo', 'bar');">Some Link</a>
When I click on the link, though, nothing happens. I have other links (to other functions) tied to onclicks that work fine elsewhere on the same page. All links to this "removeAttribute" function fail.
Th...
Hi Guys,
Is there a javascript library the can recognize phone numbers in a web page? Just like what skype did on their firefox plugin.
Or do you know a way on how to do it? Websites or any tutorial that do the same would be very helpful.
Your reply is greatly appreciated.
Best,
...
hi, what is wrong in this code? I'm trying to get this effect: fadeOut(500) and attr('class','myClass') delayed by 600 millisecs.. then delay(600) again, and fadeIn(500). The delays happen correctly but the attr() is not being delayed, it fires when #myDiv is still fading! :'(
$('#myDiv').fadeOut(500).delay(600).attr('class','myClass'...
hi there,
i'm using successfully a jquery datepicker with masked input plugin too in a aspx webform.
I've noticed a bug: when i insert a date by choosing it on the calendar and then i try to modify it manually, the date suddenly disappears.
Have u ever seen this behaviour?
...
Hi,
I am using jquery 1.4.2 and trying to achieve the following:
1 - function call that sends a value to a php page to add/remove an item
2 - returns html list of the items
3 - list should still be sortable
4 - save (serialise list) onclick
My full WIP is located here [http://www.chittak.co.uk/test4/index_nw3.php][1]
I tried to d...
Hi
I've got a link on the web page that causes new browser window (tab) to be opened when it's clicked, like this:
<a id="lnkNewWindow" target="_blank" href="http://google.com">Open window</a>
I want to be able to track the window that will be created after this link is clicked. I'd like to perform some actions after the new wind...
Hi,
I have this ASP.NET page with ASP.NET UpdatePanel and jQueryUI droppable and sortable components. The page works fine in all browsers, but doesn't in Internet Explorer (IE8 tested).
After I try to call ASP.NET AJAX event (by pressing my asp.net button inside the UpdatePanel) my sortable list stops working properly inside IE browse...
I have a jQueryUI theme built by Themeroller (1.7.2) that i'd like to tweak via Themeroller. I recall seeing there was a method to use an existing custom theme as a starting point for a new theme - essentially importing the old theme so additional tweaks could be executed.
Can't see instructions on how to do that now.
thx
...
My problem is this: I need to update some text in a div with the value of what the mouse pointer is hovering over in the autocomplete drop down list.
Can it be done easily, or do I have to make fundamental changes to the Autocomplete plugin?
I am using the jQuery Autocomplete plugin version 1.1 by Jörn Zaefferer.
Any and all help will...
I'm currently using jQuery to restrict a text box to number only input as follows:
$('input.numbersOnly').keyup(function () {
this.value = this.value.replace(/[^0-9\.]/g,'');
});
I'd like to let the user know that what they are typing is being rejected by changing the background color of the field. I know that I can c...
I need some scripts inside an existing site's scripts.js.
This site has been online for ages, and I can not touch the scripts file.
I am including it standardly in another page. There are numerous jQuery calls in the scripts file. The place I include it does not have jQuery.
I want to void all $() type things. I tried this...
$ = fun...
Can Internet Explorer bind events to absolute positioned elements ?
I can't bind a "click" to an element that is overlapping another.
Have tried loads of different ways, here a few tests that don't work in IE:
//version 1:
$(".classHolder").click(function(){ alert( $(this).html() ); });
//version 2:
$(".classHolder").each(function()...
I have a chat webpage for Firefox that is structured like this
..... Outer HTML
-----|......Frameset Frame
------------|...... header: contains jQuery post has returned data: rdata = new_iFrame_html_str, the entire html string of the iFrame that should be updated
------------|...... iFrame
--------------------|...... header: contain...
I'm using jquery 1.3 and is trying to duplicate the 1.4 .has functionality.
I need to check if the .page element contains the image, and if it doesn't, append it.
Is it something like:
var imageid = thirdimage;
if ($('#page:has(#'+imageid+')') === undefined) {
$('#page').append($('#'+imageid));
}
Thanks.
...
I am trying to just fade the content of section#secondary out and once the content has been faded out, the parent (section#secondary) should animate 'shut' in a slider animation.
All this is working however the durations are not and I cannot figure out why.
Here is my code:
HTML
<section id="secondary">
<a href="#" class="slide_b...