jquery

How to clear the contents of the openwysiwyg editor?

I am using the openwysiwyg editor in my webpage. I want to clear the contents of it. I have used $('#report').val(''); but that doesn't clear it. The editor creates an iframe and updates the contents there, syncing as it goes. How would I go about clearing it? ...

Can i use a function name in my jquery plugin parameters?

I am creating a form validation plugin for jQuery and would like it to call a function once the form has been successfully validated. The plugin will have a default callback function, but I would like to modify this through the options parameter. Unfortunately what i have (below) does not work. Any ideas? (function($){ $.fn.extend(...

JQuery: Selecting Text in an Element (akin to highlighting with your mouse)

I would like to have users click a link that then selects the html text in another element (NOT an input). By "select" I mean the same way you would select text by dragging your mouse over it. This has been a bear to research because everyone talks about "select" or "highlight" in other terms. Is this possible? My code so far is thus: ...

ASP MVC Select list with JSON

I've got a project were there are a number of select boxes that are loaded with reference data, ie customer types. To do this, I've create a seperate Controller that returns the data as a JSON result. This is called on page load via a jQuery function to load select list. On submit to the customer controller, if an option has been select...

XML parsing Jquery

I have an XML file which has four <resultGroups> tag: <resultGroups> <subGroups> <results> </results> <results> </results> </subGroups> <name> </name> </resultGroups> each <resultGroup> has several <subGroups> and each <subGroups> has several <result> tag. I want to get the no of "results" tag in each sub...

Jquery XML parsing

I have an xml like this <resultGroups> <subGroups> <results> </results> <results> </results> </subGroups> <subGroups> <results> </results> <results> </results> </subGroups> <name> </name> </resultGroups> <resultGroups> <subGroups> <results> </results> <results...

Showing/hiding image upon mouse over of table row via jquery traversal?

I have some rows of a table (ick!) such as: <tr id="similar_story"> <td class="title"><a href="/">Title</a> <a href="../"><img id="srcimg" src="source.png" style="display:none"></a></td> </tr> this is repeated x times [for each similar story], and when a user hovers over the .class row I want #srcimg (for that row) to appear. When t...

Feeding .NET MVC Views the jQuery UI way

I've seen a few blog posts and tutorials overviewing mixing in jQuery and the UI elements for Views in a .NET MVC web app. But usually targeted at developers with a comprehensive grasp of the full dev cycle and variations of back/middle tier technologies. As the front end developer I'm pitching a jQuery-only UI to the back-end dev - he ...

Checkin Related Checkbox In The Nested Datagrid

I have a nested datagrid seen below. When I click lnkSec, I want checkboxes of dgrIslem datagrid to be checked. How can I do it with javascript or Jquery? <asp:datagrid id="dgrMenu" runat="server" Width="100%" GridLines="Horizontal" ShowHeader="False" Height="8px" BorderWidth="1px" BorderColor="Gainsboro" CellPadding="0" AutoGenerateC...

XML parsing with Jquery

<resultGroups> <subGroups> <results> </results> <name></name> </subGroups> <subGroups> <results> </results> <name></name> </subGroups> <name>myname</name> </resultGroups> <resultGroups> <subGroups> <results> </results> <results> </results> <name></name>...

How to get select radiobutton value using its name in jQuery?

I am having 4 radiobuttons in my web page like below: <label for="theme-grey"><input type="radio" id="theme-grey" name="theme" value="grey" />Grey</label> <label for="theme-grey"><input type="radio" id="theme-grey" name="theme" value="pink" />Pink</label> <label for="theme-grey"><input type="radio" id="theme-grey" name="theme" value="gr...

calling jquery from ajax page

I'm having trouble using jQuery with child page parent.html loads child.html like so: ie user clicks <a href="#" id="n-email"> JQuery $('a#n-email').click(function() { $.ajax({ type: "GET", url: "/scripts/contact.js", dataType: "script" }); $('#content').load("child.htm"); }); contact.js $(function...

jquery remote tab and asp.net forms authentication

Hi, I am using jquery remote tab in my asp.net application.So each tab will load an aspx page on click.I have implemented forms authentication in my application, so after authentication time out, if i click on a tab, the login page gets loaded in that tab instead of the actual page(which is the correct behavior).But i want to prevent thi...

jQuery : how to determine that a div is scrolled down

I have a div with defined height, and overflow:scroll;. Its content is too long so scrollbars appear. Now for the ichy part. Some of its inner HTML strangely appears all the time (to be precise, the footer of a table generated by the tableFilter plugin). I'd like to make this footer disappear when it is not needed (it actually appears o...

jQuery unable to remove list elements

I have a tree with ul and has the following structure: <div id="Tree"> <ul> <li> <a class="collapseLink" href="#"> <span class="hide">Expand Root Node</span> </a> <a class="selectLink" href="#"> Root Node </a> <ul> <li id="item_1">Sub Node 1</li> <li id="item_2">Sub Nod...

swfupload not working with Flash 10

I'm using jquery and swfupload in order to upload files and photos. Worked fine till now, but it seems it doesn't like Flash 10. It stopped working the moment I upgraded Flash. Anybody had this problem? How did you solve it? Thank you very much! ...

jquery tabs are disturbed

Whenevr i uncomment the second line then the tabs are not shown. inform is a simple div placeholder in body $("#tabs").tabs(); //$(#inform).hide();//initialize itto hide-interferes with tab ...

Using search from other site on yours

I want to put a search form on my site, but when you hit search, it will search another site. For example, I have a form on mydomain.com/search that will search domain.com/search?term="keyword" Once I hit the search button, I want it to open a new window appending the keyword to the URL. Can this done via jQuery/PHP? ...

jQuery round corner code for IE8 in standards mode?

I need a solution for round corners using javascript with or without jQuery in IE8 standards mode. ...

Javascript extracting number from string

Hi, I have a bunch of strings extracted from html using jQuery. They look like this: var productBeforePrice = "DKK 399,95"; var productCurrentPrice = "DKK 299,95"; I need to extract the number values in order to calculate the price difference. (So I wend up with ≈ var productPriceDiff = DKK 100"; or just: var productPriceDiff ...