Call a javascript when i call an aspx page with a form html not ru

Call a javascript when i call an aspx page with a form html not ru

Post by YWR3Y » Sun, 27 Jan 2008 03:10:00


What type of application are you writing? Is it an ASP.NET app running on
your server that users will interact with to fill form fields and submit a
form on a page running on another server?
 
 
 

1. How could I ask Thread B to call B().Method() from inside Thread A's run?

2. How could I ask Thread B to call B().Method() from inside Thread A's run?


Here is a really simple, stupid example of what I think you're trying to
do. You probably want to use a Queue between your threads.

##########################
#!/usr/bin/python


import threading
import Queue


class A(threading.Thread):
def __init__(self, q):
self.q = q
threading.Thread.__init__(self)
def run(self):
for i in range(10):
print "Thread A putting \"something\" onto the queue"
self.q.put("something")
self.q.put("stop")

class B(threading.Thread):
def __init__(self, q):
self.q = q
self.proceed = True
threading.Thread.__init__(self)
def do_something(self):
print "Thread B doing something"
def do_stop(self):
print "Thread B should stop soon"
self.proceed = False
def run(self):
while self.proceed:
print "Thread B pulling sommething off of the queue"
item = q.get()
print "Thread B got %s" % item
getattr(self, "do_" + str(item))()

if __name__ == "__main__":
q = Queue.Queue()
a = A(q)
a.start()
b = B(q)
b.start()
a.join()
b.join()
##############################

HTH,

- jmj

3. Why does Form-A's instance fire Form-B's event??

4. Translation updates for 8.0: initdb-ru, libpq-ru, pg_config-ru, pg_ctl-ru, pg_dump-ru

5. how do i call a javascript which is in my html page?

6. Translation updates for 8.0: libpq-ru, pg_ctl-ru, pg_dump-ru, psql-ru

7. Translation updates for 7.5: pg_resetxlog-ru;pg_controldata-ru;pg_dump-ru;initdb-ru

8. Custom redirect page works for .aspx pages but not .html pages

9. ASPX page not always being "called"

10. ASPX page does not receive any cookies in Request object when called using HttpWebRequest object.

11. How to not allow external calls to .aspx page?

12. SubReport is not working when called through .aspx page

13. Not able to debug aspx page when called from winform

14. Finding the Value (of text and numbers) between N/A's

15. Quick A's to easy(?) Q's appreciated...