jquery

How to take out filename from link using jquery

Hi Guys, I am using Jquery. I have got below links in my html <a class="load-fragment" href="/english/india/index.aspx"><span>Overview</span></a> <a class="load-fragment" href="/english/india/guide.aspx"><span>Guide</span></a> I am trying to get out "index" and "guide" from (href="/english/india/index.aspx", href="/english/india/gui...

decoupling jquery, sizzle ?

Does anyone have experience / insight re: decoupling jquery / sizzle? this is for general interest, but here's the scenario that triggered my question: ..i already have jquery in the project. wanted to try out http://ecsstender.org/, which requires the Sizzle selector engine. I dont really want to include a 2nd copy of Sizzle - its ...

drupal expandable hover menu

Anyone know of a decent way of making drupal menus exapandable when the user hovers over the parent menu item. ...

wordpress-menus like multi-level menus

Hello everybody, You must know WP 3's multi-level menu configuration feature on the dashboard. I was wondering how WordPress is doing that. Yes, I know they are using jQuery UI. But still, how? Is there any documentation? Or is there any plugin or anything that shall help me? Thank you all. ...

parsing [Object] return .load jquery from php

I have this : p['record_id'] = 2; $('#trcode').val($(this).load('url_to_PHP_methode',p,function(str){})); The value returned from PHP method is like this -> "Just String" In firebug, there is correct response value, "Just String", but in text input with ID #trcode it shows [object Object]. So, my question is: How to show the corre...

Jquery: run code when text is selected

Hello! I have a HTML document which llokes like this: <div class="this_can_be_selected">Some text here</div> <div>No text in the div above is selected</div> <div class="this_can_be_selected">Some text here</div> <div>No text in the div above is selected</div> <div class="this_can_be_selected">Some text here</div> <div>No text in the ...

Are there any text selector in jquery ?

Are there any text selector in jquery ? My Code <anything>Hello World! Hello World!</anything> Reslut Should be (Using Jquery) <anything>Hello <span>World</span>! Hello <span>World</span>!</anything> ...

jquery,prototype,mootools altogether in magento

Hi, I have got a template which is really nice with great Ui. But they used jquery and mootools without any prob. And now i incorporate that one with magento but i have the prob with prototype. Is it possible to use all these libraries together. Please help me. And one query with stackoverflow : here i had more than 110 reputation but ...

Jquery: how get text width inside textarea

It is possible to get text width inside a textarea element. I don't care of its length$('textarea').val().length This cose doesn't care of font-size. I would prefer the absolute width of the text inside. It is possible? ...

vsdoc support for jQuery 1.4.3: how long?

jQuery was updated over the weekend. How long should I expect to wait before the .-vsdoc version is released? thx ...

Live preview and HTML

Well I have the live preview of text going using jQuery. http://jsbin.com/ezuta4 But is there a way where I can put in HTML tags and the HTML won't show but effects the text? Like typing <h1> and the tags turn into headings? So far: $(document).ready(function(){ $('#text').keypress(function() { $('#live').text($(this).val());...

Am i going crazy? Jquery .click() doesn't seem to work

Below doesn't work on any browser. It supposed to show alert box. What am I doing wrong? <html> <head> <script type="text/javascript" src="http://code.jquery.com/jquery-1.4.3.min.js"&gt;&lt;/script&gt; <script type="text/javascript"> $('#prevlink').click(function () { alert("Test"); }); </script> </head> <body> <a id="pre...

issues with 'this' when using within jquery code block

I want to use values of the calling object within the jquery code block, but 'this' is mapped to the jquery object and not eh caller! How to solve this PLEASE? // class myClass = function (){ // member object this._localVars = { _elementClass:'.elem-class', _dots:null, _dotStatus:null }; // membe...

jQuery dialog throws error

I've created two plugins (A and B), where plugin B is dependent on plugin A. In plugin A I use jQuery UI Dialog for user interaction and this works fine. Dependency: Plugin A is a filebrowser. Clicking a button opens a dialog window where user can select file to relate to wordpress post. Plugin A loads all JS necessary to use...

How do I capture an onkeyevent across multiple frames & subframes

I'm dealing with a ball-of-mudd project that uses frames & iframes to create a "customizable" interface (like people did in 2002). The application runs from within a hta and kind of emulates a real WPF style app. I need to capture keys so I can selectively change/refresh some of the subframes. What I'm trying to do is, if there was a ...

Stop script execution while jquery animation runs

Is there any way to freeze any jquery script functions while animation runs? for example: $('#some_div').append('some stuff'); $('some_another_tag').remove(); $('#modal_window').fadeIn(300); etc etc, is there any way to process all that stuf in threads? Thank you ...

Save the id of autocomplete field instead of the text (Jquery autocomplete) in Rails3

Hello. I have managed to setup autocomplete field for my rails app. What I'm trying to do is to have the contents of a lookup table listed and when I have selected the lookup text for few lines I would like the id of the lookup to be saved instead of the text itself. Here is what I have done: Recipe model: class Recipe < ActiveRecor...

Loading images with jQuery?

Hey guys :) I've a ul li menu such like: <ul> <li><a href="#1">Image #1</a></li> <li><a href="#2">Image #2</a></li> <li><a href="#3">Image #3</a></li> <li><a href="#4">Image #4</a></li> </ul> And I have a container with an image like: <div id="image-container"> <img src="images/1.jpg"> </div> I want to swi...

Submitting a form in Iframe by Jquery and get the returned value.

Im having a webpage with an iframe with form in it. I want to submit the form and get the result. How can i do it with jquery? <iframe src ="html_intro.asp" width="100%" height="300"> <form action="submit.php"> <input type="text" name="name" /> </form> </iframe> ...

Accessible jquery tabs - direct link to tab

I have tabs on my page. The code for them is following: $('ul#tabs li a').click(function(){ var id = $(this).attr('id'); var counter = 1; $("ul#tabs a.current").removeClass('current'); $(this).addClass('current'); $('.contentBox').not('.' + id).hide(); $('.contentBox.' + id).show(); ...