Hi,
try attaching the event to the button or buttons via an event after loading
your content in to its new place
something like (I think this would work):
$.post('./json.php', {section: 'book-reviews'}, function (data, status) {
$('#main').empty().html(data.contentStr);
$('button', '#main').click(function() {
alert('this is an alert message');
});
}, "json");
Somethings I have just discovered are (a) there is a excelent tutorial on
learning jquery and (b) I has a undergone a redesign since I last visited
this exception resource by Karl Swedberg (who also runs a site called
English rules) - there is a tutorial on there about the blockui plugin too
which may well be of interest to you
your English is fine BTW, I wish my jQuery was as good as your English
http://www.learningjquery.com/2008/03/working-with-events-part-1 (perhaps
this shows its been too long since I have been back)
- S
2009/3/20 gilson.gdcweb <[email protected]>
>
> How open a url in the current tab, a <button> using onclik (via ajax)?
>
> My Tabs is Ajax:
>
> <div id="tabs">
> <ul>
> <li><a href="content1.html">Tab1</a></li>
> <li><a href="content2.html">Tab2</a></li>
> <li><a href="content3.html">Tab2</a></li>
> </ul>
> </div>
>
> In content1.html:
>
> <button onclick="???">open otherpage.html</button>
>
> Help-me please!
>
>
> Thanks.
>
> Sorry my bad english.
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---