jquery

Accessing relative URL's via "ajax" from "file://" content

I'm putting together some demo pages, and one of the things I want to demonstrate involves fetching HTML fragments dynamically with subsequent processing. Thus I've got simple jQuery code like this: $('#target').load('./content_fragment.html', function() { $(this).doSomething(); }); I'm doing all this from file:// URLs because the w...

jquery tabs ajax problem

Hello, This my javascript :- <script type ="text/javascript"> $(function() { $("#tabs").tabs({ cache: true ,fx: { opacity: 'toggle' }}); }); </script> And this is my html which loads php file using ajax :- <ul> <li><a href="#tab1">General</a></li> <li><a href="<?php echo base_url() . 'Admin/M...

Problem working with jQuery

jQuery for some reason isn't working.I'd like to know what the problem is.Here is my code : <script language="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"&gt;&lt;/script&gt; <script language="text/javascript"> function hide() { $("#Layer1").hide("fast"); } </script> <style type="text/css...

How do I redirect a page? jQuery

Hello, How what data should i echo from the server to ajaxically redirect my page? Say, suppose this my jquery :- $.ajax({ type: "POST", url : '<?php echo base_url() ?>Admin/AddNotice', data: {noticeTitle: $('#title').val(),noticeDesc : $('#desc').val() }, success: function(msg){ ...

Animate div when is clicked but not animate when elements inside that div are clicked

Hi, I've problem with animation, I want to animate div when I click on him, but don't want to animate when I click on the other stuff inside that div. Here is me test site: http://kni.prz.rzeszow.pl/~plum/portfolio/index.html Kontakt div is that what i'm looking for but when I click on textareas div is animated. So that is the problem....

jquery select links in a class contain text

Hi, I have the html below: <span class="srch-URL"> <a id="CSR_U_2" href="http://www.test.com/TestForm.aspx"&gt;http://www.test.com/TestForm.aspx&lt;/a&gt; </span> I am trying to use JQuery to find all elements matching the class 'srch-URL' then change the link contained with them if they end in TestForm.aspx by appending &Source=/de...

jQUery problem reoccuring!

Possible Duplicate: Problem working with jQuery Hello! The follow is the code i've been using and i dont understand why its not working at all! : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt; <h...

jQuery HTML Page Designer

Does jQuery have any HTML page designer plugins. An ideal one would let draw/create page with HTML tags. Maybe close to HTML editor programs like Dreamweaver. ...

jQuery Ajax tooltip

I try to do Ajax tooltip via this jQuery plugin: http://jquery.bassistance.de/tooltip/demo/ I have some thing like this: <p id="foottip"> <span href="/last_votes/6">footnote</span>. </p> <script type="text/javascript"> $(function() { $("#foottip span").tooltip({ bodyHandler: function() { //dj ajax here and cache ...

Jquery! Error with variables ?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Shout!</title> <script type="text/javascript" src="http://ajax.googleapis.co...

ASP.NET MVC forces an AJAX request be redirected to the login page when the FormsLogin session is no longer active

I have some AJAX calls that render PartialViewResults via the jQuery.AJAX method. This works great, I get my views rendered exactly the way I want. The problem arises when I leave the page up for a while and the Forms auth session expires. When I click an action that performs an AJAX request, it shows the login page in my div. I want ...

jQuery live() and Internet Explorer

I have select inputs dynamically added to form by $(selector).append(html) I'm using live('change',handler) to bind change event for all selects. The problem is that code is fine in all browser, except Internet Explorer (all versions). I've replaced live() with the plugin livequery() still working in all browser and i have strange b...

Javascript show server load and update every few seconds

Hello, I am trying to show server load on a web page. The server load is fetched in PHP by executing the shell command "/proc/loadavg" and displaying the output as it is. However, I want to display the same output using Javascript (jQuery is fine) and have it updated every 10 seconds. How do I do so? I was thinking of using Ajax quer...

Ordered numbers bold without adding more tags

How do I get the ordered numbers bold without adding more tags? Possible in jQuery? first element secondelement thirdelement 1. first element 2. secondelement 3. thirdelement Best regards hakan ...

jQuery function error

Here is my piece of code : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Shout!</title> <script type="text/javascript" sr...

Why is this jquery script only targeting 1 element?

Take a look at this link http://dncminneapolis2012.com/new2 If you click on "two", it slides to the second page, and you see 4 boxes on the left. If you hover over the first one, it fades nicely to another image. My question is why isn't it doing that for all of the boxes? My html looks like this <div class="facts" style="width: 4...

JQuery Draggable and an <object> with an SVG?

I have an SVG file within an object tag displaying in a table cell,and I want to make the SVG draggable within the table cell using JQuery's Draggable. The code--minus the confusing bits in the tag, looks like this: <div id="container"> <div id="box"> <table align="center" border="1"> <tr> <td valign="middle">button</...

preload swf with jquery / JS

I would like to preload the SWF before showing them to the user. SWF are dynamic and I dont have the FLA files. I would love to do it using Javascript or jquery if possible. Thanks. ...

jQuery plugin to populate form controls from a JSON response?

Is there any plugin to populate any form control from JSON data with one command? I have a form with many selects, checkboxes and radiobuttons in it. Almost all controls depend on each other (many dependencies). Which way will be the shortest to describe all relations with controls? Example: Form to choose travel package contains contr...

Attach a close event to a div that already has fadeOut attached to it

Hi, I implemented the "growl" popup example from the book "jquery: novice to ninja", basically it shows a growl style popup in your browser which can be closed by clicking on a "close" link in it. The code works great but I want to improve it by having the popup fadeOut after some time IF the user never clicked on it to close it (it ca...