Hi Wizzud, sorry for not providing enough information. I solved the problem. I had named the links otherwise in my template. Thanks!
On Sep 30, 1:12 am, Wizzud <[EMAIL PROTECTED]> wrote: > Without a bit more information it is nigh on impossible to determine what > might - or might not - be happening. > Just saying "it doesn't work" is not particularly enlightening. > > Do you have a test page that is web-accessible? > > Some basics: > Does *anything* happen when the clickable element is clicked? If so, what? > Have you included the jquery script file? Successfully? > On your page(s), have you wrapped the snippets below in the document ready > function? > Does an element with the id of 'preview_button' exist on your page? And is > it (the id) unique within that page? > Is there any other HTML on the page that could interfere with the > aforementioned clickable element? > Is there any other jQuery javascript involved? If so, is that other script > working? And might it be preventing assignment of the click function? > Does the page you are trying to either load or call actually exist? > > What browser are you testing on? (And if it's not Firefox, with the Firebug > extension so you can step through and debug what's happening in your script > .... why not!?) > > > > voltron-2 wrote: > > > Hi all, I would like to call up a page using location.href or Ajax in > > the Jquery way, I ried this: > > > $("#preview_button").click(function(){ > > $("#main").load("/de/testsite/preview_profile"); > > }); > > > and this > > > $("#preview_button").click(function(){ > > window.location.href("/de/testsite/preview_profile"); > > }); > > > Strangely, both methods do not work, anyone tell me what I´m doing > > wrong? > > > Thanks > > -- > View this message in > context:http://www.nabble.com/Jquery-Location.href-or-load---problem-tf453853... > Sent from the jQuery General Discussion mailing list archive at Nabble.com.