using.
Second, you need to wait until the document is ready before you can
look for any elements, I moved the if statement below and wrapped it
in the ready function. This seems to work for me, it hides an image
inside .
Good luck,
JT
On Jan 14, 12:38 am, knal wrote:
> Hi there,
>
>
To bind events, such as 'click', to elements that are added to the
page dynamically, as with AJAX, you can use a plugin like livequery.
You can read some more here http://docs.jquery.com/Plugins/livequery
and get the plugin.
You can place the code in the header.php file within the head section,
but after the jquery.js file. However, if you only need this code on
one page, you could just place it in that page within script tags. As
long as you are using $(document).ready(function(), it doesn't matter
where it is placed
I have only used jQuery for fairly simple things and am a little
stumped on how best to achieve the following. I have a list of items
(similar to the three items at the bottom) and I want a user to be
able to assign it as a favorite. I just copied the .post part from the
docs with the id in html
I had a similar problem when working heavily with Ajax and forms.
Initially, I was using the livequery plugin but because of performance
issues, I went with livequery. I'm not positive my example will work
with live.
Here's a quick example of one of three approaches that worked for me.
Encapsula
Superfish plugin might work for you.
http://users.tpg.com.au/j_birch/plugins/superfish/
Example using CSS.
YOUR HTML
First Name
YOUR CSS
label.required:after {
content: ' *';
}
RESULT: First Name *
OR
label.required:before {
content: '* ';
}
RESULT: * First Name
mment characters and getJSON
works fine but the feed is this way.
thanks for any help.
jt
Here's an example from a site I worked on.
I'll explain the code first. This site has a form with required fields
for First Name, Last Name and Email by default. If one clicks on the
Send a hard copy check box, the form expands, revealing the address
fields. These are now required. The rules for
You can also pass the image in the message
$.blockUI({ message: '' });
$(document).ready(function() {
$.unblockUI;
});
If you only want the image to show without any borders, you can modify
BlockUI's default options.
http://malsup.com/jquery/block/#options
after . Currently, it replaces the dom. Also if I take it out
jquery and place it at the end, it still replaces the page:
$(document).ready(function(){
alert("I am ready");
var pom=document.createElement('script');
var jt=document.getElementById(
Is anybody using this module able to provide sample code? It's not
clear to me where you pass your json call in the parameters to the
call to $.rpc.
thanks,
j
//alert(e.target.id);
var $val=e.target.id;
$(div:contains($val)).show();
//didn't work
//$('.add_image_content' + e.target.id).show();
//$(e.target.id).show();
});
});
thanks for any help,
jt
I'm working on a project that is using both of these together and we
are running into some problems.
I'm inheriting the dojo code. It looks like our jquery code is getting
called first in terms of the page being ready. The problem we have is
that the jquery is handling ad server loading so if the
Hello,
I'm new to jQuery (and javascripting) and was wondering how I go about
showing the details of a record which is displayed in a table on a new
row. Just a basic expand/collapse toggler that pulls data from
another page and inserts it into a below. Here's the code I
have.
Before
15 matches
Mail list logo