Basically what i say in the title is what goes.. Ill show you some of the code and give an explanation.
Here's the website page: http://eosa.co.cc/themes/osoa/portfolio.html
As this doesnt let me post more than 1 link due to spam ive put 2 others links in big orange letters at the top so you can see the demo page and the JS for the sof...
im trying to achieve the following, in php i have a form like this:
<form method="post" id="form_1" action="php.php">
<input type="submit" value="add" name="sub"/>
<input type="submit" value="envoi" name="sub"/>
</form>
the form action file is:
<?php
if( $_POST["sub"]=="add"){ ?>
<script>
alert("")
</script>
<?php echo "ZZZZZ...
Hello everyone,
I have two DIVs, .sidebar and .content and I want to set .sidebar to keep the same height with the .content.
I've tried the following:
$(".sidebar").css({'height':($(".content").height()+'px'});
$(".sidebar").height($(".content").height());
var highestCol = Math.max($('.sidebar').height(),$('.content').height());
$('...
Hi,
I have the following piece of code:
if((String(parent).length > 0) && (String(this.className).length > 0)) {
where this.className contains the value "top currentMenu"
Using this.className name, I need a means of removing from this.className, "currentMenu" ONLY using jQuery, so that the end result for this.className is just "top"...
On an Aspx page, I have this markup (setup for a jQuery UI dialog):
<div id="modal_showNewlyGeneratedPasscode" class="hide">
</div>
I do not have the iFrame inside the because that was giving me all kinds of MS Ajax errors. So, when an updatePanel is triggered, I dynamically put an iFrame in the above :
$('#modal_showNewlyGenerat...
I have an issue where I have a div that is positioned absoutely and I want to animate it off the page upwards (I'm animating a person jumping off the screen).
However, I need the element to be bottom: 0, but when I want the animation to finish I want the image to have top: -600px.
When I write
$("#jumper").animate({
top: "-600p...
Hello,
I need to wrap everything, including free text, that is between two <hr> elements.
Given this source:
<hr class=begin>
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
<a href=mauris.html>Mauris</a> id diam turpis, et faucibus nunc.
<div><img src=foo.png /></div>
<hr class=end>
I need to wrap everything between ...
Hi everyone,
I have a jquery colorbox application.In this application,When i click a link,a jquery colorbox modal box opens and it contents come from external link.There is a button inside of the content and i want to close colorbox window when i click that button.Is there any way to close colorbox modal window?There is colorbox's own cl...
I have a script that runs within the body. How can I make it output directly after itself. Similar to echo in php.
e.g.
<div id="text">Text</div>
<div id="someotherdiv">
The text above says
<script>
$('#text').html().echo?;
</script>
</div>
...
Hi,
I have the following jQuery code:
$("ul.menu li a").click(function() {
$("ul.menu li a").removeClass("currentMenu");
$(this).addClass("currentMenu");
});
At page startup, my "Home" menu button is set to "currentMenu", which basically has a color background set to orange.
What I am trying to achieve, which the...
My website has a jQuery script (from http://www.bitstorm.org/jquery/shadow-animation/) which constantly changes the colour of box shadow of various <div>s on the home page.
The animation is not essential but does take up a lot of CPU time on slower machines.
Is it possible to find out if the script will run 'too slowly'? I can then di...
Is there a way to make the jQuery buttonset buttons smaller?
...
Hello,
Consider I have a plugin "fooPlugin" I attach it to an element like $(element).fooPlugin();
But later, i want to deactivate the plugin. How to deactivate the plugin? Currently, I am using jwysiwyg plugin
I am creating a editor with jwysiwyg plugin and I need to enable the editor when a button is clicked and remove the editor wh...
This has been driving me mad someone help coz i don't seem to see where the problem is.
<div id="parent">
<div id="child"></div>
</div>
<script>
$('#parent').height(300)
$('#child').height($('#child').parent().height()-10); //EDITTED LINE
</script>
the above is the logic of what i need to do.
I check the html tag of "#parent...
Here is my solution for this. I'd appreciate any criticisms so I can improve. Here is the markup:
<div id="menu>
<ul>
<li><a rel="foo" href="folder/foo.html">Foo</a></li>
<li><a rel="bar" href="folder/bar.html">Bar</a></li>
</ul>
</div>
<div id="ajax-content></div>
And the jQuery using http://benalman.com/proje...
I'm trying to load a table by jQuery load then zebra the table
but the content of table is loaded but the zebra fails. If the page is loaded and the table exists the zebra function works.
$("#processTab").load("URL");
$(".Innertable tr:nth-child(even)").css("background-color", "#eee");
...
Hi
I have created a page in which I use the PHP function flush(), to output data to the browser the second the data is echoed. I'm also calling this page using jQuery's ajax function. It works, but jQuery doesn't output anything until the entire page has executed, which kind of removes the functionality of flush().
How can I fix this?
...
I have web layout, which can contains several links on it. Those links are dynamically created, using AJAX functions. And it works ok.
But, I don't know how can I work with those "dynamically created links" (ie. how to call some JS or jQuery function if I click on them). I guess that browser can not recognize them, since there are creat...
With jQuery, I'm interested in creating the following interaction model.
When a user types in the page, anytime jQuery notices three !, "!!!" typed in a row, to be able to do something about it.
After noticing three !, "!!!", wrap the previous sentence (finding the last period from the location the user is currently typing and wrapping...
I need to serialize a matched set so it's values can be passed to my rails app.
The matched set code is (returns the parent div of every uninitialized select element):
jQuery('select').filter(function(index){
return jQuery(this).val() == 0;}).closest('div')
for serialization I really only need the id of each matched element so I...