jquery

How To Make Jquery ListBox Drag and Drop Asp.Net

Hi All; How to make Asp.Net listbox item drag and drop ? ...

How can I emulate the ASP.NET Ajax UpdatePanel when using ASP.NET MVC?

In "traditional" ASP.NET (Web Forms), the UpdatePanel control lets you do a partial refresh of a part of a page. You don't need to write much code to hook this up. What's the equivalent in ASP.NET MVC? I'm guessing I'd need to use a partial view for the bit that I want to update, then on the client side retrieve that HTML and pump it in...

Adding an additional click event to every element (JavaScript / jQuery)

I'm developing a touchscreen application that, aside from everything else, records the amount of times the screen is used so that the user can be reminded to clean the screen after a predefined number of clicks. I've got the click functions written nicely, all I need now is make sure the function is called on a click. I imagine $('*')....

Dom Nodes manipulations, how remove tags which wrap my selection?

Hi, I try to explain you my "problem". I would like to know when I select a part of text, if this text is “wrapped” by html tags, and in function delete them. For example with this sentence : The car is <strong>green</strong>, and the boat is black If I select “green” and click on a button, I would like verify if green is wrapped by ...

jQuery-driven app. won't work without alert()

I have seen a lot of articles on this, but none dealing with jQuery, so here I go... I am implementing a version of a script from http://javascript-array.com/scripts/jquery_simple_drop_down_menu/ into an existing application; however, I cannot get it to work without adding alert('msg...') as the first method within the $(document).ready(...

How to show modalInput div using js code?

I have HTML like this: <a href="#" class="modalInput glow" rel="#newsletter" >Newsletter!</a> This opens a modal window, contents held in the #newsletter div. Since I have not located code for this inside the source of the page, I assume this is an inbuilt functionality of jQuery, and I am not familiar with it. I want to open the sam...

How to use jQuery scripts with MasterPage/Content page scenario?

I have created a great stand-alone web form in asp.net utilizing many jQuery features and CSS. It works fine. When I re-create it as a web content form as part of a MasterPage, my jQuery and javascript is completely ignored. I am referencing the pertinent jQuery and CSS in my of the MasterPage. I have a content placeholder at the bott...

Vertically floating social icon buttons with jQuery

Is there a way to create sticky (floating), vertical icon buttons for a page using jQuery or other library? The buttons are centered vertically on the left or the right of the screen as a bar, and remain in the same location when the user scrolls. Here's an example of a library that generates the buttons for Wordpress: http://www.clickon...

Replacing div html() by echoing PHP - how to?

Hello, I have a multiple product elements that get their class and ID from PHP: $product1["codename"] = "product-1"; $product1["short"] = "Great Product 1"; $product2["codename"] = "product-2"; $product2["short"] = "Great Product 2"; <div class="leftMenuProductButton" id="'. $product1["codename"].'" >'. $product1["short"].'</div> ...

cakephp javascript form

i want to submit a form via ajax javascript to cakephp function. cakephp function accepts $this->data, so i want to convert html form datas to cakephp function acceptable format i.e $this->data(array)... how to do this in javascript(jquery) ...

how to filter selected objects then hide objects not selected.

following up from yesterday... This portion of the code does work. $(document).ready(function(){ $('#listMenu a').click(function (selected) { var getPage = $(this).attr('id'); var getName = $(this).attr('name'); //console.log(getPage); //console.log(getName); $(function() { $("#...

can google o3d and jQuery be used in the same page?

I would like to use both of these library on the same page but they seem to conflict when they are loaded at the same time. Does anyone know of any examples where they are both used or what might help prevent conflicts? ...

Problem with dropdown and codeigniter

Hi, i'm using 2 dropdowns where the second gets populated from the first choice. My problem is that i'm not getting the value from the first dropdown. What i get is [object Object]. Here's the javascript and php code: Thanks. Javascript: function getState(){ $("#selectestate").bind("change",function(){ $("#selectcity").load("resul...

Is it better to have client (Javascript) processing HTML rather than C# processing HTML?

We are in the process of building a huge site. We are contemplating on whether to do the processing of HTML at server side (ASP .Net) or at the client side. For example we have HTML files which acts like templates for the generation of tabs. Is it better for the server side to get hold of content section (div) of HTML load the appropri...

How to use JQuery to set the value of 2 html form select elements depending on the value of another

My Javascript and JQuery skills are poor at best and this is ** I have the following three elements in a form : <select name="event_time_start_hours"> <option value="blank" disabled="disabled">Hours</option> <option value="blank" disabled="disabled">&nbsp;</option> <option value="01">1</option> <option value="02">2</o...

jQuery - drag-and-drop visual feedback on draggable clone

Using droppable to provide feedback is not a good option due to their deeply nested structure (using greedy), so I would like to give visual feedback by changing the draggable (i.e., the clone). Is this possible? Has anyone done this in jQuery? I've not seen any examples and I'm unclear on how to achieve it. I've tried the over/out e...

Jquery cycle plugin image resizing issue opera

I am using the cycle plugin within Joomla and it works fine on IE6,FF,SAFARI,CHROME however when you view it in OPERA breaking happens. It loads fine but when it brings in the next slide and every consequent slide after that it re-sizes them to what i can only assume to be the browswe window's width and height. here's my javascript <s...

javascript changing location hash of a window, also adds the fragments to the document title.

Hi, I'm using jQuery BBQ: Back Button & Query Library, which is a great jquery plugin by Ben Alman, and as the name implies provides browser history behavior for a javascript dynamic pages. My problem is that the fragments are getting stacked in the browser's title, when in debug I can see it in the document object (document.nameProp, d...

jQuery errorContainer practice

I'm trying to be able to place the error message when using jQuery validation to a asp.net label if the textbox is empty. please advice how to modify my code to get that!! here is my code: <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server"> <script src="js/jquery-1.4.1.js" type="text/javascript"></script> ...

jQuery Cycle plugin pagerAnchorBuilder images becoming undefined

I have a slideshow built in flash that I want to mimic in jQuery. The slide show uses the images from the slideshow as the pager numbers. The problem im having is once i apply links to the slideshow images the pagerAnchorBuilder image returns an undefined for the src of the image. Javascript - $(function() { $('#slideshow').before('<u...