Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to trigger a server side script onLoad 1

Status
Not open for further replies.

JNeave

Programmer
Jan 28, 2002
125
GB
I'v given up with the InterDev Scripting model, I hate it.
But without it I can't do This

Code:
<SCRIPT LANGUAGE=vbscript RUNAT=server>

   sub thisPage_OnEnter()
      [Some stuff]
   end sub

</SCRIPT>

Becuase the thisPage object doesn't exist without the Sctipting model thing.

So does anybody know how I can trigger a server side initialisation object?

cheers,

Jim.
 
OK, here's another.

With the InterDev scripting Object model, you can have psuedo activeX controls, and they are bound to server side events (onChange, etc.)

I used this to make one combo box (an alphabetic list) change the data-bound contents of another.

Does anybody know how this event bindig was achieved?

I have one plan.

I'm making a search screen.
On the search screen is a form.
This FORM's action property is the SAME PAGE (CaseSearch2.asp)

1. A hidden INPUT on the FORM POSTs an event code.
2. The event code tells the page;

a. to submit the data to the search screen.
b. to re-populate the alphabetical list and go back to itself.

I have no idea whether this will work or not, any ideas?

Final question : Is the only communication (excluding DSOs) between the server and the client the Request line and the returned HTML?

cheers,

Jim.
 
First of all, you can't run a server side script onload. Server side scripting is all done BEFORE the webpage is sent to the browser. That's why php or other languages will work on ANY browser. If you want to do run a server side script, you could either submit to the same page and use the content that was submitted to change things or maybe you could use frames. It depends on what you want.

P.S. do you mean server side or client side? both onLoad and onChange mentioned in you previous posts are client side. If you want a client side event, like onchange to trigger a server side script, I would use your theory. Add to the onchange=&quot;form.submit()&quot; and then make the action the same as what the page is named and use switches from the server side script.

Rick
 
Good news, it all appears to be working. I'm using an INPUT type=hidden to pas an action message back to the server. Now that I've switched off the Interdev scripting thing, everything works perferct.

Thankyou Microsoft, so very very much.... >(

cheers,

Jim.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top