When #my-text-link is clicked, i need to select tab 5 and when tab 5 is selected i need to hide #my-text-link. hope this makes sense, heres the code, and also what I have done so far, please feel free to show me a better way. Thanks in advance
var $tabs = $('.tabbed').tabs(); // first tab selected
$('#my-text-link').click(fu...
The Jquery load function don't stop if there is multiple click on the links in the menu.
The jquery code looks like:
$(document).ready(function(){
$(".menu_rfr").unbind("click").click(function() {
$("#main").html('<img src="img/spin.gif" class="spin">');
location.replace($(this).attr('rel'));
});
function handleClick() {
$(this).unbi...
Update: I'll have to go back to the
drawing board on this one. Thanks for
all the feedback.
Hi All,
Given simple DOM:
<form id="form1">
...
</form>
<div>
<div>
<a href="#" id="export">Export</a>
</div>
</div>
Starting with id=export, is there a way to go up a variable amount of divs and then get the closest form...
I'm using the following Google Maps autload (asynchronous) to load asynchronous both Google Maps v3 and JQuery, like so:
<script type="text/javascript" src="http://www.google.com/jsapi?autoload={ "modules":[ {name:"maps",version:3,other_params:"sensor=false"},{"name":"jquery","version":"1.4.2"},{"name":"jqueryui","version":"1.8.1"} ]}">...
Hello, I tried sending some data like so:
<form action="http://www.someurl.com/something.php" id="login">
<input type="textbox" id="UserName" value="user">
<input type="textbox" id="Password" value="password">
<input type="submit" value="submit">
</form>
<div id="result"></div>
<script type="text/javascript">
$...
Hello there,
jQuery has the .ready() function, but I am unsure whether this is what I need:
I set a default background image in CSS (imange 1 out of 4), once document is loaded (images and all, not only DOM); I want to start preloading background image 2 out of 4. Once that is loaded, I want to fade image 1 into image 2. Then I want to...
Hello ,
I have a search form.When user post the search form i take the user to the result page which has results of the search.Now if the user click on the back button of the browser ,i want that he should go to the search page form filled with his values.I am using java
...
Hello all,
Here is my code:
$(document).ready(function(){
$('.classOne').mouseover(function(e) {
alert($(e).attr('id'));
});
});
Now, I know that something is actually wrong with my code, what will be correct in order to get the result with the ID of the current asp:LinkButton that I hovered in the alert() ...
Hi, i can't understand why just the first function ($("#ContentWel")) works.
But if I put the second function ("#ContentCan") in the first place it only works:
$(document).ready(function(){
$("#ContentWel").hover(function(){
$('#counterimage').attr('src', 'img/01.png');
});
$("#ContentCan").hover(function(){
$('#c...
I have some container on a page with inline javascript. Is there a way to trigger its execution once again after it was initially triggered automatically on a page load?
<div id="mydiv">
<script type='text/javascript'>alert("trigger me again");</script>
</div>
...
Hey Guys
I tried out Simple Modal for my modal dialog needs.
The jQuery
$(function() {
$('#showDialog').click(function() {
$('<div><p> Click Here! </p></div>').modal({
overlayClose: true,
opacity: 30
})
});
});
The CSS was as follows:
#simplemodal-overla...
Hello
I just can't get this thing. How is ZeroClipboard supposed to work? Why does it need to move the flash-element over the copied text?
I've read this thing: http://code.google.com/p/zeroclipboard/wiki/Instructions
Can someone provide me a short snippet, which makes it possible to copy a text in variable to users clipboard, when us...
Hello,
I am using mvc and jQuery and I am trying to display someone's profile with some additional institutions that the person belongs to. I am new to this but I've done something like this in ProfileControler:
public ActionResult Institutions(int id)
{
var inst = fr.getInstitutions(id);
return Json(inst);
}
...
Hi,
I would like to provide variable row height depending upon the content size. is it possible in Slickgrid? Can you point me towards any examples.
Thanks,
...
I am having trouble understanding the meaning and more importantly the concept of an object as it relates to jQuery. I understand the basics that its a collection of data that comes in two forms, properties and methods but I kind of get lost on how it works beyond that. Can anyone point me to some good tutorials that maybe helped you und...
I'm relatively new with WordPress theming and JavaScript, though not incompetent with either.
I'm looking to have a maximum of 10 jQuery plugins to go on the blog, but I'm wondering if there's a way to have them load only when needed, as I don't want any unnecessary loading for the users.
Something similar in something I know a little ...
I think this example would make it clear. My HTML is this:
<li class='nav-active'><span class='maillink' id='spnInbox' >Inbox</span></li>
<li><span class='maillink' id='spnSentMail'>Sent Mail</span></li>
<li><span class='maillink' id='spnDraft'>Draft</span></li>
<li><span class='maillink' id='spanTrash'>Trash</span></li>
When the ...
<js> $("#curtain").slideUp("slow"); $("#curtain").slideDown("slow"); </js>
Now what do I do, if I want to add a delay of 100ms between the .slideUp and slideDown?
...
In past i had read the documentation about getJSON and there is an example with a flickr photo api.
(the example with the [pussy]cats :-)).
No I ask myself why is it possible, to access flickr directly with this example.
Ive tried this by store this code on my local machine - it works but if I use a local copy of jquery i just get an er...
Can any one reply me which of the javascript frameworks are better to implement on my project?
jQuery or Mootools?
...