jquery

Using "this" inside of jQuery functions

I have created a CalendarViewerPortlet custom object JS object. In this object, I am storing things like the portlet's id and its context path. The object also has many custom methods, some to get/set the member variables and some to do specific things. When I try to reference a function of the object using "this." inside of a jQuery fu...

Really Ropey Text Rendering In Internet Explorer With Layered Text

I am in the process of writing a jQuery plugin for 3D text and for Firefox, Chrome and Safari (and other similar browsers) I am using the CSS3 text-shadow property to render the 3D text. As a fail-over for Internet Explorer I am writing layers of text to get the same effect. The problem I have is that when I put text on top of other te...

JQuery .bind and .Trigger question

Hi – I am using MVC 2 and JQuery with JQModal to create forms dynamically and am having an issue with closing a Modal window that is opened on top of another modal window using Jquery .trigger and .bind to catch the event triggered. The associations for example are: Companies -> address / contacts/ communication ( selectable from...

Google AJAX Feed using wrong link

I am using the Google AJAX Feed to display the RSS feed located here: http://www.tobacco.org/articles.php?mode=rss&is_tfk=1&lang_code=en It is getting everything fine, but the link that it is grabbing is the GUID property, and not the LINK property. I can successfully display other RSS feeds, which leads me to believe that it is...

How to disable submit button once it has been click?

Hello All, I am having a submit button at the end of the form. I have added the condition onClick="this.disabled=true; this.value='Sending…'; this.form.submit();" in the submit button, but when it moves to the next page, the parameters did not pass and null values are passed. Can you please help ...

Trouble Appending <div> to existing

I've got the following and I'm trying to add divs inside the container div: the container div is at the top of the page and is setup like this: <div id="facebookPhotosContainer" /> now here's the code to populate that div with thumbnails: function ShowThumbnails(aThumbs, sPhotoContainerDivID) { alert("sPhotoContainer...

Declaring a variable with html in it, and inserting the variable by using .insertAfter

I was wondering if I could declare html as a variable. In other words, something like this: $(document).ready(function(){ var Bold="Yes! There is bold in the text above!!"; var NoBold="No... There isn't any bolded text in the paragraph above.."; var BoldButton="<input class="BoldButton" type="button" value="bold" id="WelcomeBol...

Drop-down menu disappears and comes back only in IE7 problem

Hi all, I have a problem with one of my drop-down menu. Usually they work fine, but this time what happens is the following (and this is only taking place in IE7...ugh): When I put the mouse over the li with class submenu, the ul with id of #nav2 fadesIn(); However, in between the two li's of the secondary nav (#nav2), I have the foll...

"AJAX" Upload Issues with jQuery

I'm trying to create a simple "AJAX" uploader (as i know you can't actually do an AJAX upload). I'm having issues and i REALLY don't want to use a plugin. I'm writing an app that needs to have PDF attachments as part of a form, and my app's code is already at about 1000 lines of JS + jQuery. I don't want to add on an extra 1000k of SWFOb...

JQuery: div disappears on postback

everything works great except that when event fire (btnSearch_click) the control (txtSubject, or dates or ddlStatus, depends on what i have selected from the dropdonlist) disappears... here is my code...: <script type="text/javascript"> $(document).ready(function() { $('.ddlFilter').change(function() { ...

How can I correctly register event handlers for jQuery UI Autocomplete (Combobox) for Ajax submission?

I am trying to get an autocomplete working and making an Ajax form submission on change, and so far the first is working but not the second. I am using jQuery UI Autocomplete with Combobox, http://jqueryui.com/demos/autocomplete/#combobox. From my Django template, I define a handler, presently beginning with an alert that seems never to ...

No alert popping up, although variable is defined, and syntax LOOKS correct..

Here's my code: $(document).ready(function(){ var Bold="Yes! There is bold in the text above!!"; var NoBold="No... There isn't any bolded text in the paragraph above.."; var BoldButton='<input class="BoldButton" type="button" value="Bold?" id="WelcomeBoldButton">'; $(BoldButton).insertAfter('#intro'); $(BoldButton).insertAf...

jQuery returning different heights for the same objects in WebKit (chrome) and Firefox

Im perplexed by this one. jQuery.height() is coming back with different values in Firefox and Chrome. Measuring the pixels on-screen indicates that of the two, Chrome appears to be reporting the correct value, while firefox is off by 2 or 3 pixels each time. Has anyone else encountered this issue? I've tried grabbing the height using t...

Javascript tickbox validation

Hi guys, I am trying to add javascript validation to a bunch of check boxes, basically what I want is as soon as the user has selected 3 tickboxes, it should disable all of the tickboxes except the three that were ticked. How could I go about doing that? Thanx in advance! ...

jQuery UI Autocomplete - how do I get the user entered value

Disclaimer: I have gone through the related questions, and could not find solutions to this particular issue. Scenario is this: Based on whether the user selected a suggestion from the dropdown or if there are no matches, I want to execute different jQuery ajax actions. How do I do this? The place where I am stuck is how to capture th...

jQuery - Capturing an event: the current element has a specific class, but change every now and then

I have a slider with 4 elements whose any of them has the class 'control_tab'. The active element has the class 'active'. A few seconds later, the slider moves along and the next element becomes the active one. Then it has the class 'active'; the previous element that has been previously active looses the class 'active'. I need to know ...

Using delegate() with hover()?

Hi, I have a ul element with many li items: <ul> <li></li> ... </ul> when the user hovers their mouse over an li element, I'd like show some hidden buttons on the li, when they stop hovering, hide the buttons again. Trying to use delegate: $("#myList").delegate("li", "hover", function () { if (iAmHovered()) { sho...

Server Side Pagination + jQuery Question

I have yet to come across a good tutorial that explains how to load records from a database and spit them out using jQuery Ajax and also display pagination navigation. Example Page Apple Banana Pear Grapes (Pagination Nav) [First Page] [Prev Page] [5] [6] [7] [Next Page] [Last Page] In my head I think it works like this. User loa...

JQuery JEditable - How to Disable on click editing

Hi all, I was wondering if you can stop text being editable on click? I have a separate edit button to make the text editable and that's the only way that I want the user to be able to edit the text, so want to turn off the on click editing? Any ideas? ...

tornado server not returning response with self.write

Hi, I have a simple tornado server running like this: import json import suds from suds.client import Client import tornado.httpserver import tornado.ioloop import tornado.web class MainHandler(tornado.web.RequestHandler): def get(self): url = "http://xx.xxx.xx.xxx/Service.asmx?WSDL" client = Client(url) res...