473,473 Members | 1,642 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

One for the gurus

Anybody know how to call a javascript function from server side code?

This isn't as simple as it sounds really. I need to call the script after
the handler has executed which rules out attributes completely. Streaming it
via the output stream doesn't seem to work for objects or functions that
aren't part of the IE model (my local script functions for example).

My problem is i'm populating a client side control by streaming out data
from the server. What i have is kinda cheese. Once i stream the data, it
sits in the page and then i pop a client side control to click on. I use the
client side click event to load the control. I'd like to eliminate the last
step and just pull the data, put it in the page and force the control to
load the data all in one step.

Thanks in advance
Nov 13 '05 #1
1 1190
Exactly. Just don't wrap it in a function and it will execute at
page-render time. Like...

<script language="javascript">
document.location.href='http://www.yahoo.com';
</script>
"gcl" <ln*******@comcast.net> wrote in message news:<00****************************@phx.gbl>...
I think u can execute it while the page is loading
by embedding <script> blah blanh </script>
in the body block


-----Original Message-----
Anybody know how to call a javascript function from

server side code?

This isn't as simple as it sounds really. I need to call

the script after
the handler has executed which rules out attributes

completely. Streaming it
via the output stream doesn't seem to work for objects

or functions that
aren't part of the IE model (my local script functions

for example).

My problem is i'm populating a client side control by

streaming out data
from the server. What i have is kinda cheese. Once i

stream the data, it
sits in the page and then i pop a client side control to

click on. I use the
client side click event to load the control. I'd like to

eliminate the last
step and just pull the data, put it in the page and

force the control to
load the data all in one step.

Thanks in advance
.

Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Ali Eghtebas | last post by:
Hi, I've made this regex to catch the start of a valid multiline comment such as "/*" in e.g. T-SQL code. "(?<=^(?:*'*')*?*)(?<!^(?:*'*')*?--.*)/\*.*?$" With Multiline option on. As we know...
1
by: Alex | last post by:
I'm sure that the following is possible, I just need a little help please. I have a object which I declare as a application object "gObj". I need to use "gObj" with all sessions. I need...
4
by: Zach Martin | last post by:
Working on developing a smart client application and I am trying to get past one nasty stumbling block. Hoping someone with previous smart client deployment experience can steer me in the right...
0
by: Greg Gilman | last post by:
The Los Angeles SQL Server Professionals Group is hosting the LA Winter SQL Server Gurus Event at UCLA on February 17th and 19th, 2005. This once-in-a-lifetime event will feature nationally...
5
by: MGFoster | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I've converted an ACC97 .mdb file to an ACC2K2 .adp. A report that worked in ACC97 doesn't work in ACC2K2. Report setup: ACC97 ...
3
by: OhMyGaw | last post by:
Hello Excel/automation Gurus, I am working on an application where I have to keep a centralized database of all macros distributed to user and save the changes back on a nightly basis back to...
2
by: Dean Slindee | last post by:
It appears that I have two routines that don't play well together! First routine: a form's background is shaded with a gradient color. Second routine: then, the background of all labels on the...
17
by: comp.lang.tcl | last post by:
The TCL command I am using will do a command-line action on a PHP script: set cannotRunPHP I have to do it this way as both the TCL script and the PHP script run as CLI. However, "info.php"...
0
by: bruce | last post by:
Hi.. I'm not that familiar with Pythin, but I wasn wondering if there are any XPath/Python Gurus that I might be able to talk to regarding screen scraping applications... Thanks -Bruce...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.