jquery

PHP DomDocument selectors like jQuery.. does exist something like that?

Hi guys, im pretty new to the PHP DomDocument, im reading the documentation right now and im wondering is does exixts some selectors like the ones we seen in jquery. Well, i exmplain my situation: i have this xml file to parse every day and update a database: Europe Bank Money Currency That's a little snapshot: <gesmes:Envelope> ...

Possible to call an entire page with ajax jquery and no refresh?

Is it possible to load an entire page head and all with ajax/jquery? Without a reload. I want to be able to slide a page in iphone like. I need to load the head as it contains javascript specific to each page. Thanks. ...

Javascript XML Parser

Hi, We've sets of webservices and we have to make request on clientside (sending request to getting response in a jason format, and parsing XML document through - having XSLT support would be great). We need a Javascript library which will be independently responsible to all the above work and should handle browser compatibility issues...

Jquery - multiple checkbox and multiple textbox

I have 4 check box when i select anyone of the check box need to display the respective check box and text box. input type="checkbox" id="acheck[]" value='name' input type="textbox" id="productfield" value=' ' jquery Code: $(document).ready(function() { $("#productfield").css("...

jQuery find all li with an id starting with total

I have the below but want to only loop through lines in #lines which have an id starting with total $("#lines li").each(function() { } any ideas? Lee ...

jQuery accordion accordionchange

I've created a jQuery accordion for my website, it all works very fine. But now I want to have some javascript executed when i click on a link of the accordion. In the jQuery documentation I found this solution: $('ul.accordion').accordion().bind("accordionchange", function(event, something, ui) { alert('ALLO'); }); Which shoul...

How do I use jQuery to select all children except a select element

I have a div (let's say the id is "container") with many elements in it, including a select element. I'd like to select all everything in the div except the select. Things I've tried: $("#container *:not(select)") $("#container *:not(#selectorid)") //put a div around the select and... $("#container *:not(#selectorcontainer)") $("#cont...

jquery ajax tabs with asp.net user control gridview

I have a user control that has a gridview in it with paging. The paging is driven by an object datasource, so it's using the dopostback events by default. I want to use jquery to load the usercontrol into a tab via ajax because I have multiple tabs that I don't want to load all at once and take all the database hits if they aren't neede...

jQuery multiple checkbox filters

Hi All, I have a list of events, these events are each of a specific type, and start in a specific month. I have a checkbox group for types and one for months. What I'm trying to do is use the checkboxes to filter the list. I've got it working with one group, but can't seem to get it working with two. Basically I'm trying to set a cla...

How do I assemble a <ul> using jQuery append()?

I'm trying to use the append function and encountered this: $("#details").append('<ul>'); for (var i = 0; i < 10; i++) { $("#details").append('<li>something</li>'); } $("#details").append('</ul>'); It appears that the <li> elements renders OUTSIDE the <ul> tag. Is this a jQuery bug? ...

Does ajax require a web service?

If I want to get data to update partially in a page with jquery (or something else) ajax, does the page I call have to be a web service? Or will just any page that returns json or xml be fine? I guess I'm asking it like this because in asp.net you have "offical" web services. In other languages and frameworks they may not be like that...

ASP.NET AJAX Page Methods Are Inconsistent...

Given the following javascript code: function ValidateFlagAsUrgent() { selectedValuesList = document.getElementById('<%= _searchResultsUserControlUserControl.SelectedValuesHiddenFieldClientID %>').value; $.ajax({ type: 'POST', url: window.location.href + '/' + 'AreAnyOfTheSelectedTasksInMyProjects', data: '{"selectedTasks"...

Slide out and fade effect using jQuery and localScroll

Hi guys! I'm using localScroll to create a content slider. The problem is that I want to give a fade effect to the div that I'm sliding out, to make it fade before it disappears. Does anyone have any idea how can I make this? I tried something with onBefore and onAfter but I didn't get what I expected. Thanks! LE: here is the code th...

Are image properties part of the DOM (jQuery - webkit inconsistency with other browsers)?

I ran into a problem on Chrome and Safari using jQuery to do some calculations using the widths of a strip of images. When using my calculations in: $(document).ready(function() { /* some calculations with $("img").width() */ }); everything works just fine in IE6+ and Firefox, but it does not in Chrome and Safari: $(img).width() ...

"pushing" code to javascript from php

Hi, I currently have a piece of jquery/js code that runs every few seconds (5) a GET request, looking for new data that might of come in. Is there some way I could get PHP to "push" or signal to the javascript code when new posts are available, rather then checking every few seconds if anything new came in? Another example: I'm resizin...

jQuery Examples – Horizontal Accordion - Table instead of Un-ordered Lists - UPDATED

Ok I got it working for anyone who needs this :) [Original Statement/Question] Here is and example of what I'm trying to do (But on click not hover): The Example JavaScript: <script type="text/javascript"> $(document).ready(function(){ // Get original font size var originalFontSize = $('html').css('font-size'); ...

Null error when using JQuery Validation with JSON AJAX

I am using the JQuery Validation plug-in and Ajax for my page. Validation works fine when I leave every thing blank. It also works fine if I enter fields besides the SKU field (the one which AJAX is being used for). I get the problem when I enter something into the SKU input but not the other inputs. When I do the this I get an error: "E...

How do I load external JSON from a script on a web page?

I'm trying to load data from an external .js file, containing a json representation of a bunch of data. I cannot for the life of me figure out how to access the data inside the page. I'm sure this is really easy and I'm missing something simple! right now, I'm trying this: $(document).ready(function(){ $.getJSON("http://api.crunch...

jQuery UI Drag + drop after AJAX call

I'm using a AJAX call to create a new droppable box. Now within that box I want to create another droppable container after a successful drag and drop event into that box. I don't want to create a recursive call, however. $("#box").click( function (e) { // Create container // Create addDrop droppable firs...

jQuery apply class underneath

I have some css like so #menu li { color:#336633; } .hover { color:#ffffff; background-color:#336633; } I am using jQuery's hover like so on hover: addClass('hover'); on out: removeClass('hover'); This changes the background color but not the font color. I suspect this is because the class is being applied first and then the...