Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 19th, 2005, 02:18 PM
Tim Regan
Guest
 
Posts: n/a
Default Cannot access server variables on client

Hi Folks,

This page of asp should (I think) generate a page that reads:

Firstly
Secondly
Thirdly
Fourthly
Fifthly

But it doesn't: the first two lines are swapped and the fifth line is
missing. How should I change it so that it worked?

Thanks,

Tim.

PS Actually a fix for either problem would do.

PPS Here's the ASP:

<html>
<head>
<script language="javascript" runat="server">
var thirdString = "Thirdly<br>";
var fifthString = "Fifthly<br>";
</script>
</head>
<body>
Firstly <br>
<script language="javascript" runat="server">
response.write("Secondly<br>");
</script>
<%=thirdString%>
<script language="javascript">
var clientFourthString = "Fourthly<br>";
document.write(clientFourthString);
</script>
<script language="javascript">
var clientFifthString = <%=fifthString%>;
document.write(clientString);
</script>
</body>
</html>





 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles