jquery

Thoughts on creating a poll that updates and sorts at regular intervals

Hi, I've been thinking about how I can create a poll that allows users to submit new entries and vote up existing entries. The poll would then update periodically, adding any new entries (that other users may be adding), updating votes for each entry and then resorting all entries by decreasing votes - all through ajax. Some areas I'm ...

How to set the dropdownlist value?

I am using this technique: http://stackoverflow.com/questions/2670327/is-there-a-way-to-hold-the-values-lost-in-postback After it does the postback, how do I set which item is selected? $(document).ready(function() { if (document.getElementById("txtHidData").value != "")<br> $("#country").val(document.getElementById("tx...

Highlighting text beween custom tags

In a xhtml, i want to highlight the text between two self closing tags s1 and s2 whose attribute "ind" has the same value. Eg. <s1 ind="1"/> and <s2 ind="1" /> Eg. <html> <body> <a> <b>Some <s1 ind="1"/> text></b> <c>data <s2 ind="1"/>here</c> </a> </body> </html> I want "text data" to get highlighted. Is is possible to achi...

JavaScript - Storing data during user interaction

I'm working on a web based form builder that uses a mix of Jquery and PHP server side interaction. While the user is building the form I'm trying to determine the best method to store each of one of the form items before all the data is sent to the server. I've looked at the following methods Javascript arrays XML document Send each fo...

Change inline onclick to unobtrusive jquery

Hi, I need to target all links with a class of hslide and attach this to them. Any jquery guru's out there know how to do this? onclick="return hs.expand(this, { slideshowGroup: 'groupC0', wrapperClassName: 'rounded-white', outlineType : 'rounded-white', dimmingOpacity: 0.8, align : 'center', transitions : ['expand', 'crossfade'], f...

Jquery mulsup form question?

Hello,I have several forms,one for adding news,one for deleting news,one for something else,...,when add or update news,options that i use in ajaxForm stay in my memory,and when I first add news,than later update,when click update button,news are update and add,can someone help me a little. Maybe problem is that I have 2 different submit...

Unable to output formatted HTML from Jquery with html DataType

I am calling some data which has pre-formatted HTML code in it, but when it renders from the jquery it appears to ignore my markup. This is my jQuery: function GetFeed(){ document.getElementById("marq").innerHTML = ''; $.ajax({ type: "POST", url: "xmlproxy.ashx", dataType: "html", success: function(obj) { ...

ASP MVC add textboxes with jquery

I am new to jQuery, but I would like to have a button that when clicked will add more textboxes to a page. I have three textboxes that contain data of the same type and if the user has more data of the same type to enter, I would like to pop up three more textboxes. What would be the best way to go about that? ...

Remove/add text based on user selection from drop drown w/ Jquery

I just need to add an asterisk to the end of some text based on a user's selection from a dropdown field. If the user select's option one from the drop down then the asterisk is attached and if the user selects the second option than the asterisk is removed. I think I need to do this with jquery but I am having trouble figuring out which...

How to use struts2_jquery plugin

HI Can somebody help me out with how to start using struts2 jquery plugin. Can someone give me a link to a small complete project with source code.. ...

jQuery 1 draggable list & 2 sortable destination lists - bugs...

Hi, I have a list (List1) which I can drag boxes from, and two lists where I can drag List1 boxes to (List2 & List3). I have 'sortable' code for List2 & List3 which reformats what I've dragged from List1 (eg. it changes the colour of the box etc using the 'receive:' function. Say List2 boxes turn blue & List3 boxes turn red). The code ...

How compatible is jQuery 1.4 with IE8?

IE8 and jQuery 1.4 have been on the street for a while now. My project which uses jQuery 1.4.1 and is about to start seeing IE8 users. So how's that been going for folks? (I am interested in answers that identify issues, pitfalls, considerations, etc, as opposed to yep-working-good-for-us.) ...

CSS Hide Youtube Video not working in IE

I have a youtube video like so... <object id="video_1" class="a_video ....... However the css for a_video: display:none; Isn't hiding it in IE. Anyone know how to hide embedded youtube videos in IE? ...

jQuery as a replacement for Django or Web2Py

Hi all, I was planning to write a new webapp, I figured out two options for my backend - web2py or django. I recently came across jQuery and found it to be very cool. Could I just use jQuery as a replacement for django and web2py and finish this webapp. Some features that I'm going to implement - user profiles, users can add content...

form element added uisng jquery not recognised by $_POST

<script type='text/javascript'> $(document).ready(function() { $("#specific_consultant_yes").click(function() { $('.specific').show('slow'); $.post("<?php echo $this->url(array('controller'=>'appointment', 'action' =>'available'),'default',true)?>",{app_date:$("#App_date").val(),consultant:$("#Consultants").val()} ,function(data){ $("...

jQuery: datepicker - Calendar activated by the icon and the date field at the same time

Hello, I've already looked around but couldn't find the exact solution/problem I'm having right now. All I want is to have the calendar appear either by clicking on the calendar icon AND from the text field in which the date appears when selecting a date. Right now, after trying different properties, I can only have the calendar appear ...

drag and drop file attachment to browser, how do they do it?

drag and drop file attachment to browser, how do they do it? It seems gmail just starting this feature, and it doesn't require you to install any plugin etc. it works in both firefox and chrome but not IE. ...

JavaScript/jQuery: Animate li movement within a list?

I've got some code that's basically identical to the jQuery UI Sortable example here: http://jqueryui.com/demos/sortable/#default This allows users to re-order LI elements within a UL. I've now run into a situation, though, where I want to animate the LIs changing position... basically as if the user had dragged them herself. This is p...

jQuery .height() property not working

I'm attempting to get the height of an element using jQuery, but am receiving some unexpected results. Here's the code: $(function() { var contentheight = $('#subpage-content-small').height; alert(contentheight); }); Where #subpage-content-small has these CSS properties: #subpage-content-small { width: 400px; float: left; m...

CSS3 text-shadow effect with jQuery

Hello, I wanted to be able to create a effect identical to CSS3 text-shadow Property, making it available to browsers that doesn’t support this CSS3 Property (like IE 7 and 8). And so I found two plugins: Text Shadow and Drop Shadow Effect. I decided to use Text Shadow, because it was released in the end of 2008, and because it was mo...