I'm a fairly experienced programmer getting my head around PHP and Ajax for the first time, and I'm having a bit of trouble figuring out how to incorperate object oriented PHP into my ajax webapp.
I have an admin page (admin.php) that will load and write information (info.xml) from an XML file depending on the users selection of a form...
hello,
I have a problem with sizes of divs - in Firefox everything is fine, but IE messes things up,
I use only jquery show hide function which open div with other divs nested in it,
you can see what I mean on www.custos.pl/v1 - by choosing any option on the bottom, a div opens up, where you have a submenu opening up jScrollPanes,
th...
I'm trying to create 3 buttons (image is a background image) that animate smoothly when doing a mouseover.
When I'm using the following html, css and js, the result is a jquery animation where the animation just jumps to the result in stead of creating a smooth animation towards the result.
See the result at: http://infinitize.com, cur...
Hi, I have tried to solve this issue for at couple of days with no luck. I have a form, where I use the validation plugin, and when I try to submit it, it submits empty vars. Now, if I remove the validation, everything works fine. Here is my implementation:
$(document).ready(function(){
$("#myForm").validate({
rules: {
field1: {...
I have a portion of code to update a cell value like this:
jQuery("#myGridDiv").jqGrid('setCell', myRowToEdit, myColToEdit, myNewValue);
that's about it, and sometimes it happens that a blank 'dummy' row is inserted at the end of the grid, this behavior is somewhat random but occurs often,
any help will be really appreciated
...
I have this form submit code:
Event.observe(window, 'load', init, false);
function init() {
Event.observe('addressForm', 'submit', storeAddress);
}
function storeAddress(e) {
$('response').innerHTML = 'Adding email address...';
var pars = 'address=' + escape($F('address'));
var myAjax = new Ajax.Updater('response', 'ajaxServer.p...
Hi, I'm using the star rating plugin at http://php.scripts.psu.edu/rja171/widgets/rating.php,
but it always complains:
stars.lt is not a function
It breaks on this error:
stars.lt(settings.curvalue).addClass('on').end();
anyone know what's wrong with it? Thanks.
...
I have a list of states, each with some data associated with it, displayed in a table, with a checkbox next to each state. I have it successfully computing the sum of input values of all checked states, but I need to store the additional data for each state in a 3D array so that I can display it later in the form's summary, showing the u...
All,
I am trying to perform a nested AJAX call using the following code. The nested call doesn't seem to work. Am I doing anything wrong?
$.ajax({
type: 'GET',
url: "/public/customcontroller/dosomething",
cache: false,
dataType: "html",
success: function(html_input)
{
$.ajax({
type: 'GET',
url: "/public/customcontro...
I have the following JavaScript code which I like to convert to jQuery but has no luck.
var mySplitResult = xvotesString[htmlid].split('~');
target3 = document.getElementById ('xvote-' + htmlid);
target3.style.width = mySplitResult[0] + 'px';
if (target4 = document.getElementById ('mnma-' + htmlid));
target4.innerHTML = mySplitResul...
I need a way to use the jquery .live() function to act on elements that are loaded via ajax.
For instance a div is loaded via ajax .load()
<div id="mydiv"></div>
Normally I do .live() with a click event, but I need to know how to tell the dom that this new div has loaded without any explicit actions/events from the user.
This code d...
I'm adding a select box to a form by cloning the current table row, and then doing
currentRow.after(newRow);
Q: Using the .live method, how do I test to see when the new select option has changed?
...
I am trying to make the image title display at the same time the image appears, it currently appears right after the image does, using the :after option, code looks like this, Any ideas how I can make the title show up in sync with the image? Thank you!
Copy code
$(document).ready(function() {
$('#home_gallery').befor...
I need to grab the value of the radiobutton option selected with jQuery. I am using the following code but "str" is undefined in Firebug:
//handling Feed vs. Ingredient RadioButton
$('[id$=rdoCheck]').change(function() {
str = $("input[name='rdoCheck']:checked").val();
//ingredients
...
So that it's no longer clickable.
...
I have an html page with a table that contains a hidden row:
<table>
<tr id="hiddenTr" style="display:none">
...
</tr>
</table>
I need to make it visible at client side using jquery. I tried this
$('#hiddenTr').show();
and this
$('#hiddenTr').css('display', 'table-row');
Both implementations don't work for me. Furthemore...
I'm searching to select a text from a div, then click on a bookmarklet that remove all html parts in the body except the div where the text is selected
maybe jquery can help with something like :
javascript:var%20s=document.createElement('script');s.setAttribute('src',%20'http://jquery.com/src/jquery-latest.js');document.body.appendChi...
I'm using jQuery UI Autocomplete plug-in. I'm giving it an URL to make an ajax call and retrieve data. I want to pass optional data parameters but not as part of URL. In the code they make a getJSON call and pass in 'request' parameter(which is an optional data parameter), however I don't see a way to get at this request parameter.
t...
good day everyone, hope yer all doin awesome
am very new to javascript and jquery, and i (think) i have come up with a simple fade-in/out implementation on a site am workin on (check out http://www.s5ent.com/expandjs.html - if you have the time to check it for inefficiency or what that'd be real sweet). i use the following functions/met...
I am somewhat new to jQuery and I have a problem with something I am trying to implement.
I have a vertical navigation menu where each link animates on hover by changing color, increasing letter spacing, and adding a border on the left.
Everything is working the way I want it to except for when I click on the link. After I click on the...