jquery

changing image width with jquery hover toggle

i want to change my image width on mouse over with jquery toggle or let me know if i can switch between two image i.e small_image and large_image with jquery toggle ...

jqgrid 2 grid on same row, 1x left, 1x right

Hello! How can I make on a html page, 2 jqgrids, on same row, 1x left and 1x right ? on default came one on top, one bottom. Thanks ...

Is there no scope for a Windows application now?

My boss has asked me to write a CMS for a web-application. A place from where the user can customize all the necessary details, upload images etc. I know PHP but not JQuery. So things became difficult for me. I am proficient in .NET Windows applications, but my boss says it;s an end to Windows-based apps. He is right I know, but I want...

CodeIgniter with Jqgrid

Hi, I've been working on jqGrid for the last 3 days. I've been able to populate the grid, but now I can't get to work the buttons/features of the jqGrid like add, edit, save or even delete a row. Any suggestion/opinions on how to do this will be really helpful. btw- I'm using codeigniter with jqGrid this is my js file $("#listFlex"...

How to make silde like homepage of adidas.com with jquery

adidas.com so cool !!!!!!!!!! why not with jQuery, CSS & HTML? How div with different height & width together fill up div container when height & width are get random from database? Someones help me? ...

jQuery not working, need some serious help!

i was working on a facebook like website and i had a modal window,curvy corners,auto grow-text area and a facebook like footer admin panel.but the modal window and auto grow-text area is not working since i added facebook like footer admin panel.im only using jQuery,no anyother famework and i dont know jQuery,i implement them to my site ...

Uncaught ReferenceError: Invalid left-hand side in assignment

<script> function urlencode(str) { return escape(str).replace('+', '%2B').replace('%20', '+').replace('*', '%2A').replace('/', '%2F').replace('@', '%40'); } $('input#q').keyup(function(e) { if(e.keyCode == 13) { if($('input#q').val().length > 2) { $('input#q').val() = urlencode($('input#q').val()); document.search_form.su...

$.document is null

When I open my page, I get error: $.document is null. Why? Secondly, is there any way to determine from which path the below given code is loading the file "filevalues.php"? <script type="text/javascript"> try { $(document).ready(function(){ $("#Edit").click(function(){ $.get('fetchvalues.php', null, function(){ alert('r...

Refer to an object inside an $.getJSON() with append

Hi, i try to get a json list and append it $.getJSON("url", function(data){ $('#tbl').append("<li id="listitem">asd</li>); }); It works but i cant access the li object with $("#listitem").hover( alert("Hover"); ); ` ...

jQuery anythingSlider - make the first slide last twice as long.

I'm using the anythingSlider by Chris Coyier. Basically it makes list-items slide in from the left after a specified time. I'd like to tweak the code, so that the first <li> is visible for twice as long as the others. E.g. If the slides are visible for 7 seconds, the first slide needs to be visible for 14 seconds. Any ideas? ...

Get values of called file

I am calling a .php file in this code. In the file "fetchvalues.php", I am fetching results from the database and want to return the column values back to the calling JQuery function and display them on HTML controls of my page. How to do so? $(document).ready(function() { $("#Edit").click(function() { $.get('fetchvalues.ph...

How do I bind an event to any clickwith jQuery

When the user clicks on a .popup_link, a little popup window is displayed and any other popup windows are removed: $("a.popup_link").click(function(){ hide_all_popups() make_popup($(this).id) }); But I want it to also hide_all_popups() when the user clicks anywhere else on the page thats not the popup. I need something like ...

Jquery validation don't hide the error message when value is valid

I wrote a decimal validation method to validate the text in a texbox: $.validator.addMethod("decimalCheck", function(value) { var v = new RegExp("^\d*[0-9](\.\d*[0-9])?$", "g"); return v.test(value); }, "Error here"); The first time, I inputed "12,34" string to textbox and error message display. The sec...

jquery ajax get a pair of identical select menus to update each other - half working!

I'm improving a checkout page and have 2 identical 'country select' menus. One at the top of the page to calculate postage, and one at the bottom for entering delivery address. Our customers seem to have a lot of difficulty grasping that they need to pick the same country in both menus, or the price calculation will be incorrect. So wha...

Using jquery , how to check whether a table cell is empty or not?

Using jquery , how to check whether a table cell is empty or not? Please help me. ...

Jquery Photo Cycle - Ensure Remote Image URLs Center Correctly

I'm using the jquery photo cycle tool to display a list of company logo's on my website. I randomly select 5 remote image urls from the DB to be displayed on each page, and center the element on the page. <div align="center"> Featured Companies <div class="logos" align="center"> <?php foreach($this->logos as $logo) : echo "<a title=\"...

jQuery counter question

Hi, I have a table and i want to count how many tr i hide. The code: <rich:jQuery query="ready(function() { var i = 0; jQuery('#inbox:_inboxTable_').find('span[title=isArchivedStatusPlusIncludeArchive]').each(function(i, o){ if (jQuery(this).text() == 'true+false' ){ i++; alert(i); jQuery(this)....

How to add an element befroe the first element?

Hello. I am working on a comments system. I am using PHP + jQuery, I need to add the last comment to the top, i mean before all the DIV elements. E.G. <div id="comment"> <div class="comment-3"></div> <div class="comment-2"></div> <div class="comment-1"></div> </div> So now I want to add the new <div class="comment-4"></div> with jQue...

I don't want url #hash to be in the url after submitting the form

update: In this case action="url.php" works as I desired When I submit a form (I use get method), the url #hash part also got appended to the end of url after submit of the form. I tried to change the action of the page to get rid of this url #hash from the string. I removed the action part from the form, provided action as action="url....

InvalidAuthenticityToken for JQuery despite setting authenticity token

I'm getting an InvalidAuthenticityToken despite adding in corresponding authenticity tokens in the jquery response. Is there an error in the code, or is there another, root problem? I appreciate any comments. Thanks! Using: Rails 2.3.3, Ruby 1.8.6, Webrick, JQuery 1.3.2 layout/networks.html.haml = token_tag = javascript_tag "window.AU...