I have this html which is an output by php.
...
...
<tr valign='top'>
<td>1</td>
<td class="parent">
<a href="http://127.0.0.1/ci/index.php/admin/menus/edit/1">Main menu
</a></td>
<td align='center'>active</td>
<td align='center'>0</td>
<td class="parent" >0</td>
<td align='center'></td>
<td align='center'>
<a href="http://127.0.0.1/...
Hey Guys I have some code at the moment that hides a row that is deleted and then removes it using the .remove() function.
However I'm having difficulty is making it remain "deleted" as everytime i refresh the table sorted pager plugin or the filter plugin addon I'm using.. the deleted rows re-appear as they are of course cached.
Curre...
What is wrong with this syntax?
<script>
jQuery(function() {
jQuery.fn.myfunction(myparam) {
alert(myparam);
return 0; // return jQuery?
}
myfunction('Hello World');
});
</script>
I'm trying to learn how to extend jQuery.
...
I am using jQuery to get results, as xml, from a MySQL database. What is the best way to paginate the results?
Right now my script gets the xml and appends each result as a <li> element to a <ul> element.
I'm guessing it will have something to do with creating a global var that gets changed with the next/previous page button that runs...
I've seen quite a few threads here talking about flickering in Firefox, but none that quite describe the problem I'm having.
I've got a horizontal scrolling website, fixed position menus, and the jquery plugin .scrollTo handling next and previous buttons. This works great in Chrome and Safari (don't know about IE), but in Firefox there...
Source file has:
header('Content-type: text/html; charset=iso8859-1');
Source ajax (jQuery) script is:
$(document).ready(function() {
$.ajaxSetup({
cache: false
});
$("#searchfield").keyup(function(){
$("#insert_search")
.load('ajax/searchobjects.php', {search_word: $("#searchfield").val()}, function(){
});
});
});
...
This code is taken from http://wilq32.googlepages.com/wilq32.rollimage222, and is supposed to animate an image rotation.
I can't figure out the structure exactly, and how to train it to do what I want, for example - make div X rotate div Y on hover (instead of rotating itself), or adding other functions such as fade to the animation.
$...
Newspapers often style the heading font for each story according to how much space the words take up. For instance, in this spread, you can see text has been styled to fit one line:
http://www.newsdesigner.com/blog/images/feb05/best/hc6.php
And on this one, you can see different sizes for each headline according to the article size.
h...
Strange Question i guess but i have this bit of code in my page...
$(".map-overlay-left").click(function () {
$("#map-holder").hide('slow');
var gmarkers = [];
var side_bar_html = "";
var map = new GMap2(document.getElementById('map-holder'));
map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl())...
I have the following function:
var id = "10";
var type = "Type A";
var img = "myimage.jpg";
jQuery.post("my/path/somefile.php", { instance: 'getUrl', ID : id, type: type},
function(data)
{
jQuery('#logo').attr("src",data.url + img);
},"json");
How can I get the value of img when I'm inside the function?
How can I sett img = new...
Hi all
I've set document.ready in the middle of a page.
It was working fine on local server, on an online production beta server, but failed on the final server.
Any suggestions?
thx
Code:
$(document).ready(function() {
And yes. JQuery is loading and it's working propely
...
I am having trouble settling down to a proper practice for UI JavaScript coding. So I am looking for a smarter way to do things. I’ve been using jQuery with ASP.NET and I have been doing things like below which seems unprofessional and dumb. JavaScript UI programming has always been a mysterious to me. I know how to do it but I never kne...
i have function
<script type="text/javascript">
$(function () {
$("#search").click(function() {
var text = $("#searchText").val();
$.getJSON("Search", { world: text, filter: text }, function(data) {
$("tr.DataRow").toggle(false);
for (i = 0; i < data.length; i++) {
...
See http://jonesonter.notomato.com.au/.
I have a simple fading effect written when you hover on some list elements positioned over a stack of images which are all absolutely positioned on top of each other.
$("#homeNav li").hover(function(){
//make a variable and assign the hovered id to it
var elid = $(this).attr('id');
//hide the ...
Hi,
I'm using the tablesorter(http://tablesorter.com) jquery plugin to sort table data... Does anyone know if its possible to change the color of the entire column on click? Even if it isn't with this plugin, some other way?
Thanks,
Mike
...
I am looking at http://plugins.jquery.com/project/Plugins/category/51
and seeing (mb)Tooltip, (mb)Containers, etc.
what is mb?
...
I was wondering if it would be possible to use jQuery's ajax function to continually return a result to a page and update accordingly.
What I mean is this:
- User fires off a search
- jQuery uses ajax function to get the first 25 results and adds them to a table.
- While the user is looking at that list, jQuery keeps grabbing results 25...
I have this code to send data:
function insert_new_image()
{
var ids = [];
$('.be-imagecontainer').each(function(i){
ids[i] =$(this).find('span').text();
});
var jsonids = {'ids' : ids}
var url = base_url + 'ajax/get_new_images';
$.ajax({
url : url,
data : {'ids' : jsonids},
suc...
First of all thanks to Eric MArtin for SimpleModal.
I've started using it developing in mac environment. When i loaded to my hosting server and then checked the results in IE, the overlay completely ignores the embedded iframe in my page. It appears as if the iframe has a higher Zindex than anything else on the page, so i checked. Well...
I have two events that I want to observe on an object,
input.blur(function(event) {
ajaxSubmit(this);
event.preventDefault();
});
form.submit(function(event) {
ajaxSubmit(this);
event.preventDefault();
});
But I feel like this isn't dry enough, can I bind two events to my object input and execute my function ajaxSubmit() if ...