jquery

How to call jquery function after calling wicket ajax submit button

I have a form with subtmit button but this is implemented by Wicket's AjaxButton class. When HTML page rendered Wicket keeps a javascrpt onClick method dynamically for that submit button. I want to do some operations using JQuery after Wicket's onClick method completed. How do I do this? ...

how to simulate $ function when can't use jquery .

my iphone can't use jquery , so i have to simulate $ function by myself: this is my code : function $(str){ var div=document.createElement('div') div.innerHTML=str; return div } and you can see , the result has a Redundant parent div, so how to clear the raw div , thanks ...

Disabling Checkboxes after specified amount are selected

Hi, I have been working on a page that will allow entry into a certain part of my website if the user selects 8 out of 25 checkboxes in the right sequence. Here is what I have working so far CLICK HERE TO SEE A LIVE VERSION My question is, how can I completely disable the rest of the checkboxes after 8 have been chosen, so far I am usi...

hover in jQuery increment fontSize error

ok, I'm fooling around with jQuery and for the life of me can't find an elegant way to fix this error. jQuery('a').hover(function() { jQuery(this).animate({fontSize : '+=5'}); }, function() { jQuery(this).animate({fontSize : '-=5'}); }); The problem with that is that I build up an animation que. I thought i could solve it with...

Help with float and jQuery UI button

I used jQuery UI buttons in a project, and they have been working fine. But, in IE7, the icon doesn't float as it should. I realise IE doesn't have rounded corners support yet, but that is OK. Good browsers render it fine IE sucks I start with a button in the HTML <button type="submit"><span class="ui-icon ui-icon-mail-closed"><...

how to get the originalEvent without jquery on iphone .

for some reason, i can't use jquey , this is my code : document.addEventListener("touchstart", function(e) { e.preventDefault(); var orig = e.originalEvent; var x = orig.changedTouches[0].pageX; var y = orig.changedTouches[0].pageY; //id("#draggable").css({top: y, l...

problem with same search tab in multiple html pages

I have some ten html pages each page has same search tab, when i click search button from any of the page it navigates to index page with search text passed through query string and displays output on the index page . How can i write click on the index page with search parameters entered from index page search tab and display the results...

Single pager for multiple jQuery cycles

I have the following two cycles: jQuery(document).ready(function(){ jQuery('.spinner').cycle({ fx: 'scrollLeft', speed: 750, timeout: 6000, pause: 1, next: "#recentWork .controls .next", pager: '#recentWork .controls div' /* before: ajaxNewDetails */ }); jQuery('.inner')...

How to get Ajax Request Progress ?

  I am developing a project which is built in CakePHP and using jQuery in it. I have a script which need to be called by an ajax request. This request do many manipulation in database and takes too much time. Between the execution it is writing its status in a seperate file so i can see the status of script execution. Every time it open ...

jquery button doesn't work with the click, but it works when adding an alert box

Hi, Just as the title, I add a button on the html page to do some plotting, but the doesn't plot the figure right, but when I put a alert box inside the code when clicking the button, it just work well. What is the problem? I don't want to have the alert box all the time, how can I do? Here is part of the code: // append to p conta...

hotkey plugin usage

Accodring to documentation of the the hotkeys plugin .This is how I use it $(document).bind('keydown', 'Ctrl+h', function(e){ alert("stage closed"); e.preventDefault(); }); $(document).bind('keydown', 'Ctrl+e', function(e){ e.preventDefault(); $(element).click(); }); Problem: When I press Ctrl+e, the click event on the element...

[jquery] how to make two plugin to work together

Hi all, I have a trouble but don't how to resolve it. Ok, I used jqTransform.js and jScrollPane.js plugin. And in jqTransform can make my Selectbox transform and this use Scrollbar by default of window. My client need a style scrollbar. and I don't know how to combine 2 plugin to resolve it. Anyone can help me? ...

JQuery UI Accordion - Sortable Problems

Hello, I'm using this code to make the accordion sortable, and to make the active accordion panel move to the top of the stack: $(function() { var stop = false; $("#ccaccordion h3").click(function( event ) { if ( stop ) { event.stopImmediatePropagation(); event.preventDefault(); s...

Jquery selector for .each function

Hello I have table which has a class "data" and it has table rows inside it's tablebody as it should be. By jquery, I want to apply a masking plugin function to the each input text of its row. I have tried this but it doesn't seem to work for me. $('.data tbody tr').each(function() { $(this, "input:checkbox").setMask(); }); ...

how to get the 'droppable' s offset().left and offset().top without using jquery, use raw javascript .

for some reason , i can't use jquery . this is my code: <!DOCTYPE html> <html> <head> </head> <body > <style type="text/css"> #draggable { position: absolute; width: 100px; height: 100px; padding: 0.5em; float: left; margin: 10px; border: 1px so...

jQuery contents() find the page height of anchor link in iFrame

I have an iFrame that when loaded stretches his whole length without scrollbars. After 1 second I want to scroll to an anchor in the iFrame. I think I need to get it's height? How can I do this? HTML: <iframe id="help-frame" src="help.php" scrolling="no"><\/iframe> JS: $("#help-frame").load(function() { document.getElementById...

Partial page refresh for evary X seconds with Jquery and Ajax?

1) I have to change images dynamically according to values for every x seconds. I'm using the following function: setInterval(function() { $("#content").load(location.href+" #content>*",""); }, 5000); It works fine for updating the value, but the images not getting updated into its position. 2) From the 1st question i want to k...

Integrating reCAPTCHA with existing PHP script

Hi, I have a php script which uses the following line to submit a form : <form action = "javascript:void(null);" onsubmit = "load_ajax();" name = "myform"> Now, to protect bots from misusing the form I want to implement reCAPTCHA as described here : http://www.darksideofthecarton.com/2008/12/15/validating-recaptcha-with-jquery-and-a...

Launch a fancybox pop up from another

Is this possible? With default options it looks like it isnt. Update I actually want one fancybox on top of the other. If I use the fancybox() method in another fancybox, it closes the earlier fancybox. Is there a way to launch one fb on top of another? ...

Top left align block UI message ?

I am trying to align block ui message on top left of blocked element but not succeeding ? Does the centerX,centerY options only work for page blocking ? $('#Block').block({message:'<h2> <IMG SRC="images/ajax-loader.gif" /> Please wait...</h2>',centerY:0,css: { border: '3px solid #a00' }}); ...