jquery

How to keep same stylesheets and scripts url for seo friendly and non friendly url's using php

Hello, I am using php to develop an application, i have different set of url's if seo is enabled and different set if seo is disabled. ex: SEO Enabled = hxxp://www.website.com/page/about_us SEO Disabled = hxxp://www.website.com/page.php?about_us Stylesheet url = hxxp://www.website.com/style.css The problem is If seo is disabled i h...

jQuery val() opens keyboard

Hello, I am using jqTouch for my web app which is running on different phones including the iPhone. The issue I have is with the iPhone. When I set a value on the form using the jQuery function val(), the keyboard opens up automatically. I don't want that to happen when I am changing the value or just adding a default value to a pre-ex...

DevExpress ASPxComboBox, ASPxTextBox and JQueryUI Tabs

Hi, If I place a DevExpress ASPxComboBox or ASPxTextBox within a JQueryUI tabs widget, any data that is within a DevExpress control that is not on the initally active tab does not get displayed, although the DevExpress controls themselves are (they are just blank). Removing the tabs functionality for testing (by not calling the JQuery,...

Javascript: Preserving event hooks and state by updating DOM with only changed nodes or minimum number of potentially changed nodes?

So for example if we have a flash video already buffered and playing, or an autocomplete active with input, focus, and a dropdown visible (and maybe even loading something) but only have HTML of the full document and a copy of the HTML earlier, how can we merge them into the live DOM without the user's state being interrupted? Ordinaril...

jQuery DatePicker - Does not disappear in IE7 after selection

Hi all, I am using the standard jQuery datepicker which works fine for me in all browsers except Internet Explorer 7 - the date can be selected, and the text field does populate, but the datepicker itself doesn't disappear. I didn't modify the script at all so I don't really have any unique code to post - I was really just wondering if ...

How can I refresh a page for all logged in users (collaborative editing) using JavaScript, jQuery and HTML?

I want the action to be automatically reflected for all the logged in users. ...

jQuery selector : selecting ancestor whose descendent has attribute set to value

Struggling with CSS selector. Want to select all FORM elements that are ancestors of {elements having class='required'}. Any ideas? ...

Dynamic button names on jQuery dialogs

I have a webpage that uses different languages stored in localStorage, and on the jQuery dialog I want the names of the buttons to be dynamically changed according to the language, for example : var btn_hello_text = getLanguageBtnHelloText(); $('#dialog').dialog({ autoOpen: false, buttons: { btn_hello_text: function() {...

Google Maps API v3: Close infowindow when DOM element is clicked

Hi, I'm playing around with Google maps for the first time, so I looked at a nice tutorial over at CSS Tricks: http://css-tricks.com/google-maps-slider/ I like working with jQuery better than pure JS, and this tutorial makes a nice way to click on a place in a list to display the marker in the map. I liked it that way, but I need to ad...

How to Load/Replace an Entire DIV from an External HTML File

Hi, I have the following index.html page set-up: <html> <head> </head> <body> <div id="container"> <div id="header"> </div> <div id="sidebar_menu"> </div> <div id="thecontent"> <div id="page_banner"> </div> <div id="page_content"> </div> <div id="page_foote...

Repeat function for every div on page

How would i repeat a function for every div that has an id of lets say of 1. This is what my html would look like. <div class="main" id="1"> <div class="select" id="1">value</div> <div class="select" id="2">value</div> <div class="select" id="3">value</div> <div class="select" id="4">value</div> <div class="select" id="5">value</div> <...

Making sortable table after first loading data into table using ajax

I'm creating a table without page refresh using: <script> function example_ajax_request() { $('#example-placeholder').html('<p><img src="/images/ajax-loader.gif" border="0" /></p>'); $('#example-placeholder').load("get_data.php"); } </script> <input type="button" onclick="example_ajax_request()" value="Click Me!" /> <div id="exampl...

Using jQuery to store the state of a complicated form

I have a rather complicated form with many "steps" in it that are filled in by the user. Some steps (think of them as form segments) have default options, but on clicking a "enter custom values," they display a hereto hidden set of fields that the user can enter info in. Here is an example <div id="#s1_normal"> <input type="radio" name=...

jQuery JSON returning [Object object]

Hi, I am COMPLETELY not getting this so I'm going to ask. This is for an exercise that I'm using to try and learn JSON and jQuery together. I'm pretty sure that my code is doing everything it's supposed to, but I can't seem to figure out how to a)read the JSON that's being returned and b)be able to use the result afterwards (which I'm gu...

Scroll to a div using jquery

Hi, so I have a page that has a fixed link bar on the side. I'd like to scroll to the different divs. Basically the page is just one long website, where I'd like to scroll to different divs using the menu box to the side. Here is the jquery I have so far $(document).ready(function() { $('#contactlink').click = function (){ $(doc...

Alternate row colors when you have rowspan

I have this HTML: <table class="altRowTable"> <script type="text/javascript"> $(document).ready(function() { $("table.altRow tr:odd").css("background-color", "#DEDFDE"); }); </script> This works fine until I have some rows that contains a rowspan (it's not consistent across the rows). So I have something like this (below "-"...

error when using jquery dialog?

Dear all every time i try using jquery dialog i get error null when debugging using firebug, here is the code <script type="text/javascript" src="js/jquery-1.4.2.js"></script> <link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.1/themes/base/jquery-ui.css"&gt; <script type="text/java...

How do I have jQuery to select custom HTML tags

I have this html: Coral8 <del class="diffmod">SQL, to</del><ins class="diffmod">SQL,to</ins> improve I want to grab the <ins> tags. Those seem to be custom HTML tags, so I don't have an ID or classname. Any thoughts on which jQuery selector can be used to grab them? ...

How to parse HTML from a JSON array.

I'm using the jHTMLArea editor, and I'm having a problem with populating my textarea controls with html coming from a json array object. All html elements contains both the forward and backward slashes in them, <tr \/>. For example, txtOrganization is a textarea control that accepts html, but when I run the code below, the control is bla...

lightweight jQuery countdown

I've seen some really nice looking jQuery plugins to count down the number of day, hours, minutes and seconds. They use images and look great. But I'm looking for a simple little countdown that populates a div with the number of seconds remaining. I'm going to use it in conjunction with: function submitform() { document.forms[0].su...