Re: Client side changes not reflected in page



view source shows what the server sent, not the current state of the page. if javascript changed anything it is not reflected in the source.

for example view source of this page looks nothing like the rendered html:

<html>
<body>
<script>
for(var i=0; i< 100; ++i) document.write('hello ' + i + '<br>');
</script>
</body>
</html>


-- bruce (sqlwork.com)


patrickdrd wrote:
Hi everyone!

I have a hidden input field in a form which I change in some occasions on the client using javascript,
but when I use "view source" I can't see these changes reflected on the page!

Does anyone know what I should do in order for the page to know the change? (Tried with enableviewstate=false, true, whatever, didn't work)

I would like to have the change reflected in the page without doing a postback or on the postback!

Is this possible? Thanks in advance!
.



Relevant Pages

  • Re: Command Based Postback?
    ... like to enforce the page to postback from clientside to server after the ... the page return back to client and then postback will involve additional ... | this is done by by starting the download in another window (using client ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: ASP.NET Question
    ... > If you call this function each time there is a postback, ... > that the brower will post back to the server every so many seconds. ... The Client just has the page open theres is no ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Question on textbox property.
    ... alternately do in client side code, on postback ... render a call to client script that does it. ... | makes changes to each of the textbox content, ... | postback to server. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Looping through CheckBoxList items doesnt pick up selected ones when items were disabled
    ... the underlying probem is that a browser will not postback a disabled fields. ... also checkboxes will only postback their value if checked. ... if you want client script to play with enable/disable you will have to come ... additional state info to the server). ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Table Creation Question
    ... You have to load the table on a Postback. ... It doesn't make any difference whether you do it in code or not, the table is not going to hold state on rows and cells on the round trip from client to server. ... Anytime you do a postback, it's a load on the server no matter what you're doing. ...
    (microsoft.public.dotnet.languages.vb)