Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



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

Posts: 25
Name: John
Trades: 0
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 02:38 PM.. Reason: company security violation
HelpR is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-13-2007, 11:09 AM Re: So confused this can't be hard If/Else "Object Required"
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
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.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 06-13-2007, 12:36 PM Re: So confused this can't be hard If/Else "Object Required"
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,516
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
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!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 06-13-2007, 03:29 PM Re: So confused this can't be hard If/Else "Object Required"
Average Talker

Posts: 25
Name: John
Trades: 0
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 02:39 PM.. Reason: Company Security Violation
HelpR is offline
Reply With Quote
View Public Profile
 
Old 06-13-2007, 11:57 PM Re: So confused this can't be hard If/Else "Object Required"
Average Talker

Posts: 25
Name: John
Trades: 0
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, 02:30 AM Re: So confused this can't be hard If/Else "Object Required"
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
Because you no longer have a menu named "bar" to hide.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 06-19-2007, 08:26 PM Re: So confused this can't be hard If/Else "Object Required"
Learning Newbie's Avatar
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,662
Name: John Alexander
Trades: 0
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.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
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 Search this Thread
Search this Thread:

Advanced Search

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

BB 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 1.88060 seconds with 11 queries