Doesn't cross-page posting work without Javascript?

A

Alan Silver

Hello,

I have just discovered that if you turn off Javascript, then cross-page
posting does not work. The postback goes to the originating page, which
basically means that nothing happens.

I thought the whole framework was supposed to degrade gracefully in
cases like this? AFAIK other features work fine without Javascript, why
doesn't this?

Anyone any ideas? TIA
 
B

bruce barker \(sqlwork.com\)

only asp:buttons and asp:imagebuttons will postback if javascript is
disabled. generally there is no graceful fallback. if you use link buttons,
and disable javascript, thy won't work.

as selective crossposting requires javascript to implement it will not work
if disabled. html only supports one action (postback url) per form. you can
have multiple forms on a page, but only the form fields in that form are
posted back, so it can not be used for selective postback accept in special
cases, such as a login form.

-- bruce (sqlwork.com)
 
A

Alan Silver

"bruce barker said:
only asp:buttons and asp:imagebuttons will postback if javascript is
disabled. generally there is no graceful fallback. if you use link buttons,
and disable javascript, thy won't work.

Sorry, should have mentioned, this *is* an asp:Button. That's why I was
surprised at it not working without Javascript. I avoid link buttons for
just this reason.
as selective crossposting requires javascript to implement it will not work
if disabled. html only supports one action (postback url) per form. you can
have multiple forms on a page, but only the form fields in that form are
posted back, so it can not be used for selective postback accept in special
cases, such as a login form.

I would have thought that if Javascript were disabled, then it would
postback to the same page, which would assemble the correct form
elements and pass them along to the target page.

Seems not. Thanks anyway.
-- bruce (sqlwork.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top