jquery

jQuery append doesn't work fully with <script> tag.

Appending a script element using jquery rather than putting it in the html by hand seems to lead to very different results. For instance snaphtml = '<script src="http:\/\/seadragon.com\/embed\/lxe.js?width=auto&height=400px"><\/script>'; $('#content').append(snaphtml); destroys the layout of my page, but putting the script element in...

"text-decoration: blink" & IE

Why text-decoration: blink wont work in IE ? What is the work around ? Is there a non JS work around? Do Microsoft have a plan to support this style? ...

jQuery ajax call issue with GET

I have the following code that works: <script type="text/javascript"> $(document).ready(function() { // Initialise the table $('#table_1').tableDnD({ onDrop: function(table, row) { $.tableDnD.serialize(); location.href="test.php?" + $.tableDnD.serialize(); } }); }); </script> And it sends through a re...

jQuery to toggle content, having problems changing image on toggle

Im trying to implement a jQuery toogle div. When you click the image (image of a down arrow) the content will slide down. Now when this happens the image is SUPPOSED to now show an arrow pointing up (but it just goes blank), clicking the up image should slide the content back up and out of view. $("img.toggle1").toggle(function(e){ ...

How do I change the speed of a jQuery show/hide over time?

I want to take a regular jQuery show/hide, like the slideDown method: $('p').slideDown('fast'); and make it so that it slows down as it gets closer to the end, providing a somewhat animated effect as opposed to the default linear rate. I forget how this is done. Via the callback function somehow? ...

jQuery related problems. Default action going through, Javascript warnings and slideDown() being weird.

1 - I used to prevent the default action of an anchor tag upon click by doing the following... $('a').click(function() { /*stuff*/ return false; }); But then I decided to condense code by declaring a function that I could call within the click method since I use the same block of code elsewhere. So now it looks like... $('a').clic...

jQuery closest() not working for me (or i'm not working for it)

Given this jQuery: $('div.MvcFieldWrapper :input').focus(function() { $(this).closest('label.MvcDynamicFieldError').fadeOut(); }); And given this HTML: <div class="MvcFieldWrapper"> <label class="MvcDynamicFieldPrompt">Enter your email address:</label> <label class="MvcDynamicFieldError">Required</label> <input type...

Writing extension for dreamweaver CS4

I want to write an extension for DW , first of all I couldn't find any documentation on it, does anyone know any resource that can help me ? and also I want to know how much power the extensions give to the developer? what I'm trying to do is for example when the user selects an element, give them extra options, and at the end send the u...

how to add and remove css class

how to remove CSS default class This is my div <div id="messageContainer"> This is my css class #messageContainer{ height:26px; color:#FFFFFF; BACKGROUND-COLOR: #6af; VERTICAL-ALIGN: middle; TEXT-ALIGN: center; PADDING-TOP:6px; } I want to remove default class and new css class Please help; ...

jquery datagrid plugin and jquery inlineEdit plugin

Hello, I am using jquery datagrid plugin to display my results in table. I have also used a jquery inlineEdit plugin. Both work finely. Until after pagination(say page 2) the inline plugin doesn't work. what would be the problem? thanks v.srinath ...

sense what screen size and adjust the column widths with javascript/jquery?

im using 960 and i want to adjust the nr of columns depending on the user's screen size. how do javascript/jquery get the resolution of the screen? ...

What's the easiest way to call a function every 5 seconds in jQuery?

I'm looking to automate the changing of images in a slideshow. I'd rather not install any 3rd party plugins if possible. Thanks. ...

jquery ui transfer help

i wanna use jquery ui transfer to hide an element. i got an div.click and a span.target. i want the div to be moved to the span when clicked. i tried this code: $("div.click").live('click', function () { var i = 1 - $("div.click").index(this); $(this).effect("transfer", { to: $("span.target").eq(i) }, 1000); }); but noth...

Open source alternative to MagicZoom or Magneto ProZoom?

I'm trying to build a very simple site with that has a products section. I'd like to display a few views for each product, and the tools I've found so far are http://www.magictoolbox.com/ and Magneto, but both cost a bit. I'm not opposed to paying, if these are the best, but given how many lightbox clones there are, I can't believe there...

How can I stop a javascript from being interpreted after a certain point?

The first few lines of my script look like: if (window.location.hash) { window.location = window.location.hash.substring(1); } I'd like to have the entire script "skipped" if this statement returns true. Is there any way to do this other than putting my entire script in a giant if statement? Thanks. ...

how should i refer to the calling object within a handled keyboard event in javascript

hi I am writing a javascript widget which handles keyboard events. The issue in question arises when i show a div and want to hide it when someone presses esc. what's the best way to achieve the following (i am using jquery in this project ) var escToExit = function(e){ // code to check for esc // i then want to call the instance ...

Retrieve external page data with jquery

hello. i need to retrieve information regarding a ventrilo server's status. ventrilo's website offers a service to retrieve information about a server. for example, this is the game arena ventrilo server: http://www.ventrilo.com/status.php?hostname=144.140.154.11&amp;port=25000 i am trying to grab the part under "Channel and User info."...

Time comparevalidator

Hi, I want to validate Time-Start and Time-End. The time format is like this 2:15:00 AM I want to make sure that the Time-End must be greater or equal to the Time-Start. The Time-Start gets the time from DropDownListHourStart(1-12) and DropDownListMinuteStart(1-59) and DropDownListSecondStart(00) and DropDownListAMPMStart(AM-PM) The T...

Javascript Rounded Corners for Images

Hi, I need to display images with rounded corner. Long time back I saw a website doing this using a javascript library that overlayed the rounded corner image over the normal image. Do we have any javascript library (preferably jQuery plugin) to do this directly to img tags rather than usijg image as background for a div? ...

Toggle Visibility in JQuery

I can do this in JS, but I'm beginning to use JQuery and would prefer to develop skills for that. I have a reminder message [#CheckboxReminder] "Tick this checkbox to indicate you have checked your data". I then want to hide the reminder message when the checkbox [#IsConfirmed] is ticked, and restore it to original state if it is then ...