Brian Ronk wrote:
Guess
I'm forgetting the meaning of a/synchronous.
Synchronous means the function returns when all data is received.
Meanwhile, the page is not interactive.
The beauty of asynchronous (the first A of AJAX) is that the function
returns right after the request and all
This is a little strange, but I want to do a non AJAX request. I
thought it might be a synchronous request, instead of asynchronous,
but that didn't work. This is what I tried:
function compDetail(compid) {
ajaxOptions = {
async: false,
type: get,
url: compdetail.php,
I see you said tr but surely you could include the a href inside
each td for that tr and achieve the same result.
/alex
On 2/22/07, Alex Ezell [EMAIL PROTECTED] wrote:
I might not have read this right, so please explain more if I missed
something.
If it goes to a new page, why not just use
I might not have read this right, so please explain more if I missed something.
If it goes to a new page, why not just use a link? Why any javascript?
If the idea is to use the whole area of the td as the link, then
just use CSS on the a selector to style the box model for the
appropriate a tag
Umm, non-ajax request?
function compDetail(compid) {
window.location = compdetail.php?compid= + compid;
}
Or maybe I'm not understanding the question...
--Erik
On 2/22/07, Brian Ronk [EMAIL PROTECTED] wrote:
This is a little strange, but I want to do a non AJAX request. I
thought it might
Why to not use a link might be because the URL is generated by some
javascript code. If the compid part is know at the time the page is
rendered, then certainly a link made in PHP would be best:
a href=compdetail.php?compid=?= $compid ?.../a
--Erik
On 2/22/07, Alex Ezell [EMAIL PROTECTED]
Got ya. I didn't think that the compID might be generated by some
previous AJAX interaction.
Good catch.
/alex
On 2/22/07, Erik Beeson [EMAIL PROTECTED] wrote:
Why to not use a link might be because the URL is generated by some
javascript code. If the compid part is know at the time the page