jquery

Need a POPUP thickbox for fileupload in jquery

strong text Hi pals, I need a Thickbox or any other category of POPUP structure to Upload files to server using same and close successfully after work. If any body have good code give me ... regards Anes ...

Get ID from current draggable <li>

Hi all, how can i get the ID from the current Draggabe Item? <style type="text/css"> .red{ color: #ff0000; } </style> <script type="text/javascript"> $(function() { $(".dragg li").draggable(); $("#droppable").droppable({ hoverClass: 'red', over: function(event, ui) { // $( --- ID FROM THE C...

jQuery how to specify an existing selector

How do I do a selection on a existing selection in jQuery? This is the given HTML <div id='search'> <form action='' method='GET'> <input id="searchbutton" type='submit' name='qs' value='search'> <div id="searchoptions"> <input type="checkbox" checked="checked" id="search_books book" name="search_b...

jQuery undefined

Getting a weird error on a site I am developing. Even looked back at last couple of sites to make sure there was no differences... and nope, can not see any. Getting an jQuery undefined error only in IE on the following page http://weesleekit.info/lotus/beta/ it's with regard to the easy slider part on the site, but have used easy slide...

PerformancePoint, SharePoint 2010 and JQuery

Are there any events that PerformancePoint Dashboards emit after loading data that can be leveraged by JQuery. The document.ready fires before the performancepoint dashboard has rendered so that doesn't help. I need for the performancepoint dashboard to render so I can then use JQuery to manipulate the dashboard. Your help is apprecia...

Enable YouTube API on existing player

I have an embeded youtube video which I want the YouTube API applied. I add the url parameter using jQuery as follows (demo): $(document).ready(function(){ var obj = $('object'); obj.find('embed').attr('src', function(i,s){return s+'&enablejsapi=1&version=3'}) obj.find('param[name=movie]').attr('value', function(i,v){return v+'&enabl...

Updating ASP.NET dropdown datasource from jQuery

Hi, I want to update my dropdown list datasource (get the values from the database again) but i want to do that from jQuery, there i insert/update/delete records from that same database table. This is my dropdown list <asp:DropDownList ID="ddl" runat="server" AppendDataBoundItems="True" DataSourceID="ShortCodeDataSource" ...

Trouble find elements with fireWatir on a JQuery created page

I am having a problem identifying a label on a jQuery generated page. This is the code of the page (as seen in firebug). I am trying to find it using this statement, assert(browser.label(:id, "acms-ws-select-label").exists?) Put it fails to find the label. Any ideas on what I am doing wrong? Update: running the same script in IE wi...

Using jQuery's getJSON() method

So I was reading through the code on Malsup's twitter plugin and I noticed he'd written his own method to handle jsonp but with timeouts and errors. I can only assume the built in jQuery method 'getJSON' doesn't have this functionality even though it clearly works fine. So, should I continue to use Malsups version in my projects where ...

can i remove the X-Requested-With header from ajax requests?

I wanted to know if anyone has had experience with trying to remove the 'X-Requested-With' header from the ajax request made by jquery (or plain JS). is it possible? 2nd part: do you know if Grease Monkey's ajax requests set this header? Thanks header looks like this: X-Requested-With XMLHttpRequest ...

jQuery Interrupt ASP.net server placed <submit />

Hey all, I've got some really odd behavior i basically want a pretty styling to my buttons and i want a modal confirmation form on saving and discarding changes to a web form. the events that do the saving and desicarding are asp.net events tied to server controls, by decorating the buttons with a class i can get jQuery to make them loo...

jquery javascript find how far left an element is with position:relative

in jquery/javascript I'm trying to find how far left an element is with position:relative. There are several elements between this one and the left of the screen. since it is positioned:relative and float:left using: $(this).css('left'); gives me '0px' every time. So how do I found how far the element is from the left of the scre...

jQuery strategy question

I have migrated frameworks from prototype to jQuery in my Rails apps, and I'm running into a consistent problem which I need some advice on. Often times I'll use an AJAX function that updates a portion of the page. When this happens, any other Javascript I use that relates to the section of the page that was updated no longer works. ...

Change mousedown focus to a new div

So here's my code: function drawGridSquare(tableText) { gridSquare = document.getElementById('square'); gridSquare.innerHTML = tableText; document.body.appendChild(gridSquare); gridSquare.style.display = 'block'; gridSquare.style.top = e.pageY - gridSquare.offsetHeight ...

JavaScript regex to replace a character ignoring HTML tags

Hello everybody, Once again, I need some help and I appreciate you all for being here willing to help. I'm trying to implement a regex for a JavaScript function that will replace a string of text contained in an HTML tag, but ignoring the tag altogether. For example: The string I need to find and replace is the dollar sign ($), and the H...

jquery: select all elements after nth

Hi, I have x number of <div> and I need to select all after n. <div class=foo>4:00</div> <div class=foo>5:00</div> <div class=foo>6:00</div> <div class=foo>7:00</div> <div class=foo>8:00</div> For example, given n=3 and div.foo, remove all div.foo after the 3rd div.foo would yield: <div class=foo>4:00</div> <div class=foo>5:00</div...

Preserve reference to element after deletion and subsequent re-insertion

Within document.ready, I store a selector in a variable (which I assume once evaluated, stores the element object in said variable), as I need to manipulate it many times. ie. myVar = $('#mySpan'); What I'm storing is a span element within a div. One of the manipulations requires me to overwrite the contents of the div using the .html...

Dynamically adding a table row with jquery, then add auto populate select box in each new row

Hey, guys, I tried to ask this yesterday but I didn't explain myself clearly or simply enough. I have a form that is setup in a table. User can add new rows (and more form elements) as they please. Each row of this form needs to have its own separate select box and corresponding subcategory select box. So basically... Name | Select...

jQuery Cycle: Links within cycled div overlapping each other?

Edit: I figured this out. jQuery Cycle plugin adds a z-index to every item it works through, thus the first item always had the highest z-index, messing up all the links. Removing the z-index functionality from the plugin has fixed it. Hi there, I'm currently building a cycling div using jQuery cycle that has a few inside links. Basica...

Adding rows dynamically jQuery -(copying existing HTML)

Hello all, I was looking at adding rows dynamically to my HTML table using jQuery with the following requirement. The table has 9 columns, of which 1 columns has a button for adding a new row. The new row added should be added after the current row and have the first 7 columns blank, 8th column should be a exact replica of the previou...