icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.
Old September 22nd, 2004, 11:38 AM   #1 (permalink)
Surpass Fan
On a golden path...
 
Joined in Jul 2004
372 posts
Gave thanks: 0
Thanked 0 times
Trigger two scripts At once

Is it possible for me to trigger two scripts at once?
If so can you please direct me to a source where I can find the information?
Thanx
__________________
"I am one of the few honest people that I have ever known” ~~Nick, Great Gatsby
---
Don't ever argue with idiots. They drag you down to their level and beat you with experience.
darkzeroman is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old September 22nd, 2004, 2:33 PM   #2 (permalink)
Registered User
Seasoned Poster
 
theward's Avatar
 
Joined in Nov 2003
Lives in Harrisonburg, VA
Hosted on Viva
90 posts
Gave thanks: 0
Thanked 0 times
what's your purpose of triggering 2 at once?

It would be easier to trigger one script that runs 2 functions.

I usually keep all JavaScript controls in a single file separated in functions, and call to various functions on execution [ie a function submitForm() calls validateFields() and storeValues()]
__________________
Ryan Christie
ryan.christie-[at]-gmail.com

Get yourself some Firefox foo! :p
theward is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old September 22nd, 2004, 3:46 PM   #3 (permalink)
Surpass Fan
On a golden path...
 
Joined in Jul 2004
372 posts
Gave thanks: 0
Thanked 0 times
good idea...thats what i'm working on. But one more question....
Code:
setTimeout("fade_up('fade1','What's New','000000')",0);
Thats my code right there. How can I make the ' in What's New cancel out or something. I remember I have to do something like \ but its not working for me. Do you know how to make it cancel out?
__________________
"I am one of the few honest people that I have ever known” ~~Nick, Great Gatsby
---
Don't ever argue with idiots. They drag you down to their level and beat you with experience.
darkzeroman is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old September 22nd, 2004, 3:47 PM   #4 (permalink)
Registered User
Seasoned Poster
 
potato's Avatar
 
Joined in Jun 2004
Lives in PK, NY
Hosted on pilot
85 posts
Gave thanks: 1
Thanked 3 times
onCommand="function1(); function2();"
change command with whatever.
not 100% sure, but that should work
potato is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old September 22nd, 2004, 4:21 PM   #5 (permalink)
Registered User
Seasoned Poster
 
theward's Avatar
 
Joined in Nov 2003
Lives in Harrisonburg, VA
Hosted on Viva
90 posts
Gave thanks: 0
Thanked 0 times
Quote:
Originally Posted by darkzeroman
good idea...thats what i'm working on. But one more question....
Code:
setTimeout("fade_up('fade1','What's New','000000')",0);
Thats my code right there. How can I make the ' in What's New cancel out or something. I remember I have to do something like \ but its not working for me. Do you know how to make it cancel out?
Use the ASCII character code to call the quote mark. I'm not sure what it is off the top of my head. It'll either be &quote; or #1232; or something of the like. Lists of all the characters and their respective codes are online somewheres.

/google
__________________
Ryan Christie
ryan.christie-[at]-gmail.com

Get yourself some Firefox foo! :p
theward is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old September 22nd, 2004, 9:07 PM   #6 (permalink)
Registered User
Seasoned Poster
 
potato's Avatar
 
Joined in Jun 2004
Lives in PK, NY
Hosted on pilot
85 posts
Gave thanks: 1
Thanked 3 times
can't you use the escaped quote? \'
potato is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old September 22nd, 2004, 9:42 PM   #7 (permalink)
Surpass Fan
Seasoned Poster
 
Joined in Aug 2004
Lives in North Carolina, USA
Hosted on Pass11
46 posts
Gave thanks: 0
Thanked 0 times
www.asciitable.com may be helpful
__________________
All your base are belong to us.
AngryPeasant is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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

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