[jQuery] Re: Automatic scrolling
Thanks for advice but your answer doesn't help as you cannot generate a click on "a" link with jQuery I have used this solution on other pages and it works great but in this particular case: I would like visitor to be scrolled automatically to particular spot on page depending on radio button being clicked I am looking for something like: jQuery('input#oui').click(function(){ jQuery('div#reponse1').show('slow'); jQuery('div.postpop').show('slow'); jQuery('div#reponse2').hide('fast'); jQuery('div#reponse3').hide('fast'); jQuery(SCROLLTO-automatically-to-paragraph1); }); Still trying to find answer Jean On 4 jan, 16:45, Paul Hutson wrote: > > Thanks for help > > This should do what you want (well, it's an example, but I'm sure you > can pull out the bits you need) > :http://www.position-relative.net/creation/anchor/ > > It'll smooth scroll to the right location for you... :) > > (we've also used it on the help for Outer Empires, > here...http://gameview.outer-empires.com/Info/Newbie.asp) > > HTHs, > Paul Hutson
Re: [jQuery] Accessing REST API via JQUERY?
The remote XML API is not on the same domain as your page, is it? Then you can't do it. Browser cross-domain restrictions will not permit it. The only reason you can use getJSON for cross-domain requests is that it actually downloads executable JavaScript code with a dynamic
[jQuery] Re: How to retrieve the selected cells
> 1) How do I know if a cell is selected? Is there is is_selected( ) function in jQuery? There's the ":selected" selector, but it's for valid form fields, not table cells... in your case, $("table td.sel") would give you all selected table cells I have no idea what your PHP looks like, but one way to gather the data could be: http://jsbin.com/areti/edit but that all depends on what you are looking for (just selected cell "values"? do you need position on the grid? something else?) On Jan 4, 10:11 pm, MT wrote: > Hi all, > > I am new to jQuery and I would like to process a matrix operation > using PHP. > The front-end code is done bellow, its a 3x3 table. the user could > select/deselect individual cells of the table and click the button > that calls a PHP script that will run some function. > > 1) How do I know if a cell is selected? Is there is is_selected( ) > function in jQuery? > 2) Would it be possible to send a 3x3 array to my PHP script? > > Please provide me with any info on this. Thanks! > > MT > > My current test code. > > Test > src='http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js'> > script> > >