jquery

Resize a set of HTML element.

Hi, I have HTML code similar to <div id="resizeThis"> <div style="background: url(...)">...text...images...</div> ... </div> I want to resize the div with all its contents to arbitrary size. For example, I could use JavaScript to get the div width and then resize all elements accordingly, but what's the simplest way to do this? I ca...

jQuery lazyload plugin

Hi there, I've got a page that contains a list with about 100 images, and i dont want that the browser has to load all of it if the users only views approx. 10 of it. So i've tried the jQuery.lazyload plugin on my page. If i write: $( function() { $('.list li img').lazyload( { placeholder: 'n.gif' } ); }); for the code: <ul cl...

Jquery validation plugin - required field errors

Hi guys, I have it's a trivial problem but I can't figure it out. I'm using jquery validation plugin http://docs.jquery.com/Plugins/Validation. I have a simple form with some required field. When I submit it, it display all the possible errors beside the input field, and when I type something in the that input, the validator let disappea...

my javascript in external html is not loading.

ok so in order here is my code /* index.html */ <!-- jQuery Scripts --> <script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.2.6.min.js"&gt;&lt;/script&gt; <script type="text/javascript" src="http://tdr.host22.com/scripts/li.js"&gt;&lt;/script&gt; <link href="http://tdr.host22.com/scripts/tdr.css...

assign value to global variable in javascript

Hello, I want to assign value to global variable in javascript from jquery ajax function. var trueFalse; $.ajax({ type: "GEt", url: "url", data: "text=" + $("#text").val(), success: function(msg) { if(msg.match(/OK/) != null) { trueFalse = "true"; } else { trueFalse = "false"; } ...

Measure highest UL Tag with jQuery

Hello, Im trying to measure and grab the highest of ul tags. Markup is very simple. <ul class="ul_class"> <li>One</li> <li>Two</li> <li>Three</li> </ul> <ul class="ul_class"> <li>a</li> <li>b</li> <li>c</li> <li>d</li> <li>e</li> </ul> <ul class="ul_class"> <li>a1</li> <li>b1</li> <li>c1</li> <...

Jquery accordion does not work when I put the script in script file on a master page, but it does when I put it directly on the page.

I have a page called Default.aspx which inherits from a master page called Main.master. In Main.master, I have a asp:ScriptManager and within the script manager, I put the jQuery 1.4 library, jquery 1.7.2 ui library, I also put a custom js file I created which for now just has the code: $("#accordion").accordion({ collapsible: tru...

Will Jquery ui css styles overwrite my css styles?

I downloaded the Jquery ui along with one of there pre-made css styles. I put all of this in a master page where I have some of my styles. Will the jquery styles, for example, the ones for anchor tags overwrite the styles I have for my anchor tags. I basically just want the jquery styles to be just for the jquery ui components. Is th...

jquery solutions to post to another site from static html page

Need to post data from a static html page to another page which is hosted on another domain. Normally I'd create and iframe with a form inside of it with a post method, and whose actions is directed to that web page, and finally submit that form. The complexity is I'd collect data from my static html page and create a similar (replica) f...

JQuery selection problem

With this html: <label for="DateOfBirth"> <span>* </span> Date Of Birth: </label> How do I select and remove the span element using JQuery? ...

jquery highlight row based on specific column's value

i know there are many tangential posts on this topic (I've read them all) but i can't seem to put it all together. I would like to highlight all rows whose 2nd column contains the '-' character. in case its relevant: 1) the second column's header (th) is "Due In" 2) the values in the second column are strings 3) there isn't a specific...

Jquery Dialog Scrollbar solution

I have a result-set in my dialog box that I would like to scroll (if the results span larger than the actual dialog height. I am doing this via the following method: $("#'||the_result_set_id||'").css({overflow:"scroll"}); This doesn't seem to be consistent with IE versus Mozilla. Is there a better solution for this, where I can get scr...

jQuery Time ago from a timestamp?

Below is a really nice time ago plugin for jQuery, very similar to what they use here on SO. The problem for me is that it uses this to convert time. <time class="timeago" datetime="2008-07-17T09:24:17Z">July 17, 2008</time> That would be great except that I store time on my site in UTC timestamp and not as a formatted time, is the...

ASP.NET MVC Ajax form and jQuery validation

I have the same scenario as this question, but with a different problem: http://stackoverflow.com/questions/298691/asp-net-mvc-ajax-form-with-jquery-validation I've set the AjaxOptions.OnBegin property to call return $('form').validate().form(); which works fine for when validation fails; the validation messages are displayed and the f...

jquery datepicker, dates range count

Hello, i am trying to sum up or deduct dates in selected range using jquery datepicker, here is how i am doing it right now but without any luck. function test(){ var sundayCheck = 0; var saturdayCheck = 0; var totalDays = 0; sundayCheck = new Date($("#onlySunday").datepicker("getDate")); saturdayCheck = new Date(...

How to track changes on jqGrid columns/layout/order?

Hello, I have a jqGrid that can be sorted by different columns both in ascending and descending order. Columns may be added or removed, and the order of the columns may be changed too. I need to detect when any of these properties have changed, in order to save the users preference. Is there a way to catch these events? I've been loo...

problem (IE8) inserting 'alternate rss link ' in "head" section fails. (Succeeds in Firefox 3.5)

We wish to use jquery/javascript to add 'alternate link rss' elements in the section of a resulting html document, i.e. so the orange 'rss' icon shows up on the right side of the browser's url-bar (aka "awesome bar" in FF) Such an approach simplifies adding the 'subscribe' links in the section. Each chunk of the page could add rss lin...

jQuery manipulating forms

For some reason it's not changing the action of the forum. I have some code to change the action of a form when a button is clicked: function changeForm(event){ alert("Before: "+jQuery("#franchiseform").attr("action")); jQuery("#franchiseform").attr("action", "franchisepreview.php"); alert("After: "+jQuery("#franchiseform...

Drop-down menu not displaying properly when using jquery form validation

I use this script to validate html form's <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"&gt;&lt;/script&gt; <script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery.validate/1.5.5/jquery.validate.min.js"&gt;&lt;/script&gt; <script type="text/javascript"> $(function...

If statement for Jquery / Javascript

Here's what I'm trying to achieve: I have a div that switches between fixed and absolute positioning depending on the scroll position. I have an example that works but I noticed that it's a little slow because it constantly changes the position on each and every pixel of scroll. So I thought that adding an additional if statement (as ki...