jquery

Jquery $.post question.

I have a form with a text field, that I want to submit using post (Jquery). I am using Java/Spring and Tomcat6 on the server side. Here comes the problem: The text is submitted correctly, unless there is a '.' in it. In that case the text is being truncated (everything after the '.' is ignored. Example: "Hello, this is a test." -> ...

How to display time countdown using PHP and MySQL

How do I get a time countdown using PHP? I want to display something like 3Days 4Hours. I have a date field coming from MySQL table and want to calculate it with today's date. As of now I have only date and not the time stored in the database, but eventually I will. So at that time, I might show as 3Days 4Hours 10Minutes 43seconds. Th...

When will a browser throw $.ajaxSetup is not a function error

I am trying to insert following snippet in my JSP file { $.ajaxSetup({ cache: false, async: false }); var ajax_load = "loading data please wait..."; var loadUrl = "abc.jsp"; $("#seoarea").html(ajax_load).load(loadUrl, { param1: holdvalue1, param2: holdvalue2 }); } While running...

What is the $ symbol used for in JavaScript.

      I am a JavaScript learner and have been researching this matter, but with no success. What is the $ symbol used for in JavaScript besides regular expressions? Any resources or readings regarding this would be appreciated. Thanks. ...

displaying ajax response in textarea as soon as page is loaded

hi, I have a continous ajax request asking for some data that is to be displayed in textarea. Now my problem, how do I display the data as soon as page is loaded. My template code is as follows: <html> <head> <script type="text/javascript" src="/jquerycall/"></script> <script type="text/javascript"> $(document).ready(fun...

favce box not working on ajax pages

fanceybox not working on ajax page here is my code $(document).ready(function(){ $("a.link8").livequery(function(){ $(this).fancybox({ 'width' : '75%', 'height' : '75%', 'type' : 'iframe' }); }); plz some body help me Thanks ...

dataTable head not show inside tabs

i want to show my input data from DB...i'm interest for using jquery dataTable... i have been type some code but it seems not like what i want..i put inside tabs. and table head not show..it's so ugly.. <table cellpadding="0" cellspacing="0" border="0" class="display" id="datalist"> <thead> ...

Set document.title to default

Just a quickie.. If I set on an alert document.title to "ALERT" per say. Then want to set it back afterwards is there an ezmode way to do this or will it be setting an ID on the link tags to set the title back to the ID. Note its an external script that is used on 20+ pages. ...

How to use the jquery address plug-in with jquery ui tabs

I'd like to have my last selected jquery ui (non-AJAX) tab stay open when I refresh the page with the browser, and the back button should go back to the last opened tab. As this is currently not supported (yet) in the jquery ui tabs, I installed the address plug-in as mentioned in this stackoverflow question. Now when I apply the .addre...

XHTML+XML plus XSL plus jQuery don't work in safari

This is my XHTML/PHP file: <? header('Content-type: application/xhtml+xml')?> <?="<?xml version=\"1.0\" encoding=\"utf-8\"?>"?> <?="<?xml-stylesheet type=\"text/xsl\" href=\"ie-fix.php\"?>"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <html xmlns="http://www.w3.o...

adding,saving data without refresh using jquery

hi can anybody give me a link or a sample of application of adding,saving data without refresh using jquery and .net technology ...

How to do this with jQuery?

<strong>title</strong> <cite>...</cite> <cite>...</cite> ... <a>ank</a> I want to append a new element $el right behind the last <cite> behind <strong>,if there is no <cite>,then append $el right after <strong> ...

jquery fadeout issue on blur

hi StackOverflow! I have a problem with JQuery and the following markup. <div id="ParentContainer"> <div class="main"> <div class="sub1"></div> <div class="sub2"> text </div> </div>...

Is eq the correct selector to get the first element of a jquery list? It gives me an error

Hi everybody, I try to get the first .myClass element of my page. To do that, I use $(".myClass:eq(0)"); This is working perfectly but gives me the following console error: "Warning: Pseudo-class or pseudo-element "eq" unknown." (Traduced from french) Is that error normal? Is there a way to avoid it? Which syntax do you use to sel...

Multi user - Drag&Drop

Hi! I have a tree ful with data that are draggable (& droppable). It all works fine, but there's one problem. When more users're working on this module (with tree) and they're dragging objects around, all get mixed up. So I'm working on a solution, but I got as far as table lock in mysql. But if I do that, just one user can work on thi...

how to achieve .eq(-1) in jQuery older than 1.4?

$(selector).eq(-1) I spent some time to find why the above script doesn't work for me, it's because I'm not using jQuery 1.4 How to achieve the same in older jQuery? ...

Jquery Super box automatically loads

The superbox is a jquery plugin that has lightbox effect. My problem is how can I change this thing instead of click, it will automatically loads when the page is executed. The code rel in <a> is required. How can I set that to onload or automatically popup when I visit the page. My Code: <link rel="stylesheet" href="css/jquery.superb...

jquery autocomplete dropdown doesn't disappear in IE

Hi all, I have strange problem with jquery autocomplete plugin. Everything works fine, ajax fetching, showing of data, selecting value... But in IE(in firefox everything is fine), when dropdown is opened, if I don't scroll with mouse scroller, but instead if I click on scrollbar and drag it up and down after that dropdown stays hanging ...

Drupal / Jquery horizontal scrolling div

I'm trying to create something similar to this (http://flowplayer.org/tools/demos/scrollable/index.html) in Drupal but I'm finding it difficult. An example of where I am wanting to use it is http://hotness.bangtest.co.uk/work the part beheath the slider. Any help would be massively appreciated! ...

How to remove an element from jQuery object?

Code: <div id="d1">d1</div> <div id="d2">d2</div> <script> $(function(){ var j=$(); j=j.add("#d1"); j=j.add("#d2"); j.remove("#d1");//not this... //alert(j.length); j.css("border","1px solid red"); }); </script> I've used j.add() to add elements to j, but how do I remove #d1 from j? j.remove() is not working,...