Reply
So confused this can't be hard If/Else "Object Required"
Old 06-13-2007, 09:39 AM Re: So confused this can't be hard If/Else "Object Required"
Average Talker

Posts: 25
Name: John
Well I wish I could say it worked because it should work as everything you guys mentioned is awesome, but it doesn't. I have been trying to troubleshoot this and still can't see anything but what I have done is now provided the view source of the actual HTML/asp page. This is what I have
Sorry everyone for the time and effort......

Last edited by HelpR : 06-15-2007 at 01:38 PM. Reason: company security violation
HelpR is offline
Reply With Quote
View Public Profile
 
Old 06-13-2007, 10:09 AM Re: So confused this can't be hard If/Else "Object Required"
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,945
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
You've got two entire pages rolled into one on that code. That may well be contributing. You only need 1 set of HTML tags, 1 set of head tags, and 1 set of body tags per page.

The second thing that may be a factor (and again, I haven't tried this) is that your script sits outside of both your head and your body tags. Put it inside of the head tags and you may well be fine.
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 06-13-2007, 11:36 AM Re: So confused this can't be hard If/Else "Object Required"
chrishirst's Avatar
Super Moderator

Posts: 13,472
Location: Blackpool. UK
We really need to see this in situ complete with database.

the HTML/js code works fine when changing the onLoad event to hide('bar')

ww w.cands.dnsalias.com/test_js-2.asp

If you need some server space (Win 2k) to test on I can easily set up a FTP account on my test server, Access, MySql 5 and MS SQL 2000 available
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 06-13-2007, 02:29 PM Re: So confused this can't be hard If/Else "Object Required"
Average Talker

Posts: 25
Name: John
Adam web design,
Thanks for the tip about haveing one set of tags. I always seem to do this when I have many include files. As for fix to add the script inside the head tags. Well unfortunately that did not work.

ChrisHirst, I definitely agree with you with respect to seeing my app in action, however, I just spoke to my security team and they said this is not an option. So I guess I will be tearing this code apart myself to see where I went wrong.

Could I ask one last question though since I have quite a bit of my code up on this forum. My function that does the BASE64 encoding and my session variables code
Is there any other way to pass this data from one page to an email link and then from the email link to another page. My sessions are not working because when the user receives the encoded URL
the session is lost. I need the URL that gets created like above to be decoded when the user clicks the link. Any ideas?

Last edited by HelpR : 06-15-2007 at 01:39 PM. Reason: Company Security Violation
HelpR is offline
Reply With Quote
View Public Profile
 
Old 06-13-2007, 10:57 PM Re: So confused this can't be hard If/Else "Object Required"
Average Talker

Posts: 25
Name: John
Sorry me again everyone. Please don't hate me. I am thinking that I am coming close with the original problem of Object required error. Can anyone tell me why if I remove the onLoad="hide('bar');" from the body section I don't get the error. So I am thinking it has to do with this Onload Event.
HelpR is offline
Reply With Quote
View Public Profile
 
Old 06-14-2007, 01:30 AM Re: So confused this can't be hard If/Else "Object Required"
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,945
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Because you no longer have a menu named "bar" to hide.
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 06-19-2007, 07:26 PM Re: So confused this can't be hard If/Else "Object Required"
Learning Newbie's Avatar
Moderator

Latest Blog Post:
My Wish for Webmaster Talk
Posts: 5,179
Name: John Alexander
You can use a javascript debugger to get a better idea, set breakpoints and run the hide('bar') function line by line.

Could you take another shot at explaining the base 64 problem? I don't really understand the question.
__________________
4 ways to improve the lives of the "bottom billion"

"HEY YOU KIDS GET OFF MY LAWN!" -John McCain
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to So confused this can't be hard If/Else "Object Required"

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

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




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.13784 seconds with 11 queries