Hello everyone.
What would be the best way to send a message to the click event to find out from where it was called?.
$("#mybutton").click(function(ev){
if (called from funcion One or Two){
//my code
}
});
funOne = function(){
$("#mybutton").click();
};
funTwo = function(){
$("#mybutton").click();
};
EDIT:
o...
I have a jquery accordion on an asp.net aspx weppage. Inside the panes, I have asp.net buttons. When I click on the button, the pane I was in, closes and reloads the page, defaulting to the first pane. I don't mind the reload, but is there a way to keep the current pane open after the reload. Right now, I am just calling accordion() ...
Looking for the best way to GET the xpath and css selector of a specific element using jQuery or Extjs. To basically select a random element and traverse up the dom and retreive it's unique css selector or xpath. Is there a function that can do this already or does anyone have a custom function that can do this?
...
The editor I require, needs to be easy to use. Even for people with absolutely no HTML knowledge
The projects I have tried are:
TinyMCE
ckeditor.com
What I'm looking for is:
Editor like TinyMCE editor with a live view
like in stackoverflow site.
A way to insert pictures, and arrange them in the article.
EDIT: THe best solution ...
The jquery accordion throws "Invalid argument." exception in IE(mine is IE8).
It works in Firefox and chrome. What may be the problem of jquery accordion with IE?
Here is the html:
<div id="accordion">
<h3><a href="#">Training</a></h3>
<div>
<ul style="list-style: none;">
<li><a href="...
Hi,
I have an ASP.NET web form that has 6 checkbox. 1 checkbox is to call a Function to select all checkbox and show the message "You have selected" 6 "items" (in this case, 6 checkbox). If a user doesn't select the Select All checkbox, they can select or deselect other checkbox individually and the message will be "You have selected" #...
Hello everybody,
I have used a jQuery script in order to have a countdown script on a php page that I am doing, but I would also like to have a score system in it based on the time the user takes to answer some questions.
I am using some drag and drops and click in a certain link into an image map -which is the only correct link in the...
This question is related to my last one about jQuery 1.4. They supposedly fixed the bug causing the change handlers not to work in IE, but it is not fully fixed.
I am trying to bind a live change handler to a select element. Most of the time, when I change it, the event handler fires. But if I tab to the element immediately after the pa...
I have an javascript array, which looks like:
var styles = new Array();
styles[0] = { ... Position: 0, ... };
styles[1] = { ... Position: 1, ... };
styles[2] = { ... Position: 2, ... };
...
styles[N] = { ... Position: N, ... };
I use this array to display a list, where each item is a div. The end result is this:
<div id="container">
...
In the standard behavior demonstrated at http://jqueryui.com/demos/sortable/ when you drag an item in the list a placeholder element is displayed where the item would be dropped.
However, the original location of the item to be dropped is not indicated.
I would like to leave the original location visible until the drop, so that the v...
So, here's my situation. I have a wordpress site, and each entry has a link within the post div.
<div class="post" id="post-133">
<h2><a href="post-link" rel="bookmark" title="Link to Post">Post</a></h2>
<div class="post-date">
<span class="date">Tuesday, Jan. 26, 2010</span><span class="right read"><a href="#" class="noprint show_s...
Hello,
I want to pass both the values using ajaxForm, displaying both the values separately in test.php
-------test.php-----------------------------------------
<script language="javascript" type="text/javascript">
$('#test_form').ajaxForm({
target:'#result',
success:function() {
$('#result').show();
}
});
</sc...
I'm using jquery tab and following js method, how and what can i modify it to maintain state of tab between postbacks? (This resets tabs to first tab after page_load)
$(document).ready(function() {
//When page loads...
$(".tab_content").hide(); //Hide all content
$("ul.tabs li:first").addClass("active").show(); ...
Is there any way to create a zoom in to a location like Google Earth for a site???
I think, I can do this with a slide show in Flash or jQuery, but I would like to know if there is a better alternative way!
Thanks
...
I've been working on a website that is very jQuery intensive in Chrome and Firefox. It's now come to the stage where one opens it in IE and sees WTF IE is doing to the website.
I get a problem when clicking the minimise button (top left) in one of the windows on the page. The item should animate to a corner and change opacity however it...
How can I get the active index of the jquery accordion pane when a button is clicked? What I want to do is when a button is clicked in pane 3 for example, I want to store that value and when the page is reloaded, I want pane 3 to remain open.
I intially had this in my server side click and when I hard code a value in for paneIndex it w...
In the example given at http://jqueryui.com/demos/sortable/#placeholder the placeholder is the orange box that appears when you drag any of the items.
This element can be tweaked using the placeholder option -- but it only lets you modify the class of the element as described here: http://jqueryui.com/demos/sortable/#options
I would li...
I'm trying to add functionality to the jQuery.notice.js plugin written by Tim Benniks. (http://code.google.com/p/jquery-notice/)
I want to pause the noticeRemove() function if you're hovering over the .notice-item . Here's the function:
noticeRemove: function(obj){
obj.animate({opacity: '0'}, 600, function(){
obj.parent().a...
Hi -- I'm trying to add a function that will display when the AJAX is working, as well as when there are no results. In additionn, when there are many results, I'd like for there to be a link at the bottom of the dropdown to click to see the full search results page. My current code looks like this:
<script>
jQuery(documen...
Hi all,
i used sometimes a 'loading' method with the javascript onload & onunloadbody events.(www.restaurantebarocortico.com)
Now i'm learning jQuery, and i used the $(document).ready & $(window).unload to replace the old events, but the unload event isn't working correctly.
Does anybody knows another method to call a function on unloa...