jquery

jQuery Attribute Usage for Target

Hi, Can anyone see why the following code is not causing my url top open up in a new window, i.e: $(location).attr({ href: toLoad, target: "_blank" }); where toLoad is my url. Looking at the view source, all seems fine and basically looks like: <a target="_blank" title="" href="http://......e...

(Jquery) Find the contents of a td from a selected tr

I am very new to JQuery, so appologies for what may be a very simple question. I have a table, and when i click on a row, i want the cells details to be filled into a form: so simple example <table id="table"> <tr><td class="field1">1 </td><td class="field2">2 </td></tr> </table> <input id="input" type="text" /> So the JQuery: $(d...

firefox and javascript redirection

Hello there, I currently have a issue with firefox, where all other browser behave in the right way - even IE6! What I want to do is redirection to a subpage but leaving a history entry. There are 2 methods of rewriting the url as far as I know: window.location = "some.url"; - redirect to some.url with history entry window.location.r...

jQuery - hide if previous element has a particular class

Hi I would like to hide all class="csc-content" where previous sibling is a h4 class="faq". UPDATE Error: I think this is wrong... the previous sibling is not h4. But I hope you get the point that all "answer" shall be hidden if the "question" has the class "faq" /UPDATE This is the html: <div id="centerCol-1"> <div id="c65" class=...

jquery datatables using classic .asp

Hi there, I am trying to get the jquery datatables plugin pulling data using VBScript instead of PHP as shown on their website. Has anybody any advice on where to start or maybe seen this already implemented somewhere else? Any assistance would be great! Cheers! Decbrad ...

html refresh properties

Is it possible that the html page loaded, cannot be refreshed or reloaded by the user Thanks.. ...

Multiple dependent select boxes, the Rails way?

Hey Guys I am trying to create a car application, each car belongs to a make and model, but only certain makes have certain models. So I would like a series of select boxes that are populated dynamically based on the previous, however I also would like to add another record to that select box if you cant find the one you want. I would...

How to pass variable values from one page to another page using AJAX and jQuery?

How to pass variable values from one page to another page using AJAX and jQuery. I have categories like this main category users,names.first names ...etc and sub menu A|B|C|D|E|F||G|H|I|J|K|L|M|N|O|P|Q|R|S|T|U|V|W|X|Y|Z . ...

Free country/city suggestion list/database

I'm looking for something similar to facebook suggestion list with cities and countries. You can see what I'm exactly talking about when you try to create new event in facebook, click to add address, and then start typing in the City field. I prefer finding working suggestion tool in jQuery(with the date), but database with city/country...

jquery dropdownbox auto populated with mysql data

I've got 2 dropdownboxes. Dropdownbox 1 shows all the tables from a database. When dropdownbox 1 is selected; dropdownbox 2 will be populated with tablefields from the selected table. dropdownbox 1: This dropdown is populated with the following mysql query: "show tables from testdb" dropdownbox 2: This dropdown will auto populate when ...

Make value of input sum of other inputs automatically?

I'm just wondering if this is possible, and if not, the best way to set up event handlers to make this happen... If I have a spreadsheet-like HTML table like so: <table> <tr id="row1"> <td><input type="text" class="number" value="1"/></td> <td><input type="text" class="number" value="2"/></td> <td><input type="text...

I would like to filter XSL output based on a Radio button selection

Here is my example I am trying to filter by year based on user selection: I assume some js or jQuery code would be needed: XML file: <?xml version="1.0" encoding="ISO-8859-1"?> <catalog> <cd> <title>Empire Burlesque3</title> <artist>Bob Dylan</artist> <country>USA</country> <company>Columbia</company> <price>10.90</price> ...

Overlay just a part of an external page with jquery

Hi, How can i load a part of an external page with jquery overlay? I have an aspx call TipoFactor.aspx wich has a div inside a contentplaceholder like this: <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server"> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <br /> ...

jquery jeditable without OK and Cancel Buttons

I have a textarea that I'm able to edit with the jeditable plugin but I do not want the OK and Cancel buttons. I am, instead, going to save the text by clicking away from the textarea (blur). I have that code ready to go but I do not know how to make it work. ...

showing whole div in IE (jQuery slider)

Hi, IE somehow shows the whole div when the page loads befor it resizes to the right size. Is it possible to avoid this since it is really ugly: http://stackoverflow.com/users/216925/luuk In FF it works perfectly fine (not the layout fully, but the slider) plz help. ...

jquery function to convert datetime, split date time "2010-10-18 10:06" to return "18/10/2010" and "10:06"

Hi I was wondering if there is any jquery function around which can take this dateTime "2010-10-18 10:06" and convert and split it returning "2010/10/18" and "10:06". It would be also nice if the same function could either receive "2010-10-18 10:06" or "2010-10-18" only and return as mentioned above, or different formats besides "2010/1...

Model Bind to a List<> when Posting JavaScript Data Object

Hi Guys I'm trying to post a JavaScript data object with the following: $.post(frm.attr("action"), data, function(res) { // do some stuff }, "json"); where 'data' takes the structure of data - panelId - siteId - ConfiguredFactsheetId // this is an array of CheckBox ids that correspond to ConfiguredFactsheets - 123 - 234...

Toggle element based on viewport & scrolling

I'm trying to toggle an element based on the viewport and scrolling. By using $(window).scroll(function().. I can fire an event when the user scrolls but how do I check whether you're scrolled to the top in order to hide the element? ...

jquery slider shows all content on load

Hi, IE somehow shows the whole div when the page loads (just click a button to see it) befor it resizes to the right size. Is it possible to avoid this since it is really ugly: http://www.bbp.nl/luuk-test/wac/partners/ In FF it works perfectly fine (not the layout fully, but the slider) plz help. ...

jQuery optimization - anything wrong with storing a jquery object reference?

I have a web-based application which is very highly reliant on jquery / javascript, and its sometimes a bit slow. One of the things that gets done frequently is changes to the grid (jqGrid) which means each time I'm using jQuery to select that object, ie: function load_editor() { $('#listview').jqGrid(do_stuff); } I believe simply sto...