jquery

Javascript / jQuery - Parse returned 'data' as HTML for further selecting?

Hi, a webservice returns some data to me. The data is actually just raw HTML (so no XML header, or tags around it, but just a piece of html). <div class="Workorders"> <div id="woo_9142" class="Workorder"> <span class="Workorder">S1005</span> <span class="Pn">30-2</span> <span class="Description">Cooling Fa...

How to animate a Raphael object along a path?

The object could be simple, a rect or circle. But the path should be a bezier curve. Please provide javascript/Raphael code if not too much trouble. It will be nice if there is trailing effect of the moving object during annimation. Thanks, ...

jQuery Cycle in an horizontal scrollable div: IE problem

Hi, I've a problem in IE 6 and 7 with a Cycle slideshow embed in a horizontal scrollable div. I've used this technique ( http://www.switchonthecode.com/tutorials/using-jquery-slider-to-scroll-a-div ) to create the horizontal scrollable div. I would embed the Cycle slideshow in the scrollable div. All work normally in FF3, Opera, Chrome. ...

How can I show and hide a table row using jQuery?

I have a regular HTML table, how can I show and hide a table row using jQuery? ...

Overlay login/register on action in jQuery

How do I bring up an absolute div on an "action" in jQuery? What I want is similar to reddit or digg, when you try to vote without logging in, it will prompt you to log in or register. Thanks. ...

jquery form plugin and cakephp submit problem.

I have the following form in cakephp: <div class="quickcontactDisplay"> <?php echo $form->create('Enquiry',array('action'=>'add','class'=>'quickcontact')); echo $form->hidden('visitor_id', array('value' => $visitor)); echo $form->input('name'); echo $form->input('emailAddress',array('size' => 30)); echo $form-...

How do I bind actions to links in jQuery?

Hi there, I'm working on a website which has a thumbnail navigation on it's about us page, and for each person you click their profile is displayed inside the same box. Then by clicking "close" at the bottom of the profile it takes you back to the thumbnails. So far I have the following divs... <div class="container"> <div class=...

Animate message using jquery form plugin

I am having a problem using the jquery Form Plugin. I have a form that is setup that I would like to animate the errors/success when a user submits incorrect information or gives the user a succes message when then enter correct information. However my problem is twofold. The message that displays on the same page only works in firefox w...

Can't return Dictionary(Of String, String) via GET ajax web request, works with POST

I have the following web method: <WebMethod()> _ <ScriptMethod(ResponseFormat:=ResponseFormat.Json, UseHttpGet:=True, XmlSerializeString:=True)> _ Public Function GetDictionary() As Dictionary(Of String, String) Dim d As New Dictionary(Of String, String) d.Add("key1", "value1") d.Add("key2", "value2"...

javascript/jquery extract Html-text from HTML table contains input tags

Hello, I have big problem i want to extract text from html table that contains inputs, raw text, href, and display in new window clean html table with only text SAMPLE INPUT <TABLE id="test"> <TBODY> <TR> <TD>TEXT 1</TD> <TD><a href="/questions">TEXT 2</a></TD> <TD><input type="text" value="TEXT 3" ></TD> </TR> </TBODY> </TABLE> ma...

Simple jQuery ajax example not finding elements in returned HTML

I'm trying to learn jQurey's ajax functions. I've got it working, but jQuery doesn't find elements in the returned HTML DOM. In the same folder as jquery, run this page: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xm...

jQuery alphabetic index

I'm pretty new to jQuery, so please forgive... I have a page with a long list of hyperlinks in an unordered list: <div class="longlist"> <ul> <li><a href="/firstitem.aspx" title="First Item">First Item</a></li> <li><a href="/seconditem.aspx" title="Second Item">Second Item</a></li> ... <li><a href="/lastitem.aspx" title="Last Item">Last...

How to delay a function from returning until after clicks have occurred

The following confirmDialog function is called midway through another jquery function. When this confirmDialog returns true the other function is supposed to continue... but it doesn't. The reason for this seems to be that the entire confirmDialog function has already executed (returning false) by the time the continue button gets clicke...

Disable update webcam image onerror

I use the function below to update a webcam image. Now I would like to change the function so that it is not fired when the webcam image is not available (error function). Someone plz help me? $("img#activecam").error(function () { // }) setInterval("updatecam()", 16000); function updatecam() { $('#activecam').attr('src...

How do I implement a databound custom control with JQuery

I need to implement a custom control with checkboxlist and each item on clicked will open a div next to the item . my output would be checkboxmy items The td is a reaped items and is bound to a datasource. and onclick of the checkbox show the div1 . How do i Start? Do i implement a template control or a databound control ? in AS...

Set default value for Search field - Please Help!

Hi, I'm trying to set a default value for a search field. The idea is that the Search-Field has the value "Search" until the user clicks into it, then it should be empty. Also as long as it is "blank" (with "Search" as the value) it should have the class ".blank". I tried this <input autocomplete="off" class="" id="searchq" name="sea...

<%# server tags in jquery

Hello all, I am very new to jQuery and have got a quick question. I wish to use my server side classes in my jQuery code, something similar to this: $(document).ready(function() { var temp = <%# myClass.Id %>; }) Is this possible? if so, how? Thank you very much This is the later question I refined my former question to: I'm sorr...

Public functions from within a jQuery plugin

I love the jQuery plugin architecture, however, I find it frustrating (probably due to a lack of understanding on my part) when I want to retain a reference to the plugin instance to access properties or methods later on in my code. Edit: I want to clarify that what I am really trying to do is retain a reference to the methods and prope...

How to save portlet positions

Hello, I will be using jQuery's functionality to create portlet widgets for my web application suit. I haven't started as of yet, but will do soon, so this is the planning Now, currently, the page loads, and the widgets load into their default positions. A user can move them around, change their settings, whatever. Now, my problem is t...

Extend JQuery Validator Plugin with custom method

I added a custom validation method to validate a password. However, it does not matter if the JSON I get is: {"success":true} or: {"success":false} The field password never validates. $(document).ready(function() { // Ad custom validation $.validator.addMethod('authenticate', function (value) { $.getJSON("./json/au...