Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / February 2008

Tip: Looking for answers? Try searching our database.

Javascript issue

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JimmyGiraffe - 07 Feb 2008 16:46 GMT
I have some javascript written for a dropdown menu that works fine if
my page is an html page, but if I save it as an aspx page it messes
up.  I'm using an asp grid view control, so I need it to be an asp
page.  The menu still shows, however it doesn't seem to be reading my
x and y coordinates correctly and just puts the menu in the top left
of the page.  I can post the code if necessary, but I thought/hoped it
might just be a setting I need to change.  Thanks a lot.
darrel - 07 Feb 2008 17:30 GMT
>I have some javascript written for a dropdown menu that works fine if
> my page is an html page, but if I save it as an aspx page it messes
[quoted text clipped - 3 lines]
> of the page.  I can post the code if necessary, but I thought/hoped it
> might just be a setting I need to change.  Thanks a lot.

Ideally, upload the page and point us at the URL.

If the issue is menu placement, it's likely a CSS/DOM conflict somewhere.

-Darrel
Patrice - 07 Feb 2008 17:36 GMT
My first guess would be that you don't use the appropriate id values and
that you actually do"nt find those controls in your client side javascript
code. Keep in mind that ASP.NET creates the id values. You can get those
using the ClientID property...

Hard to say more without seeing more. Also using the debugger should likely
allow to easily spot the problem...

--
Patrice

>I have some javascript written for a dropdown menu that works fine if
> my page is an html page, but if I save it as an aspx page it messes
[quoted text clipped - 3 lines]
> of the page.  I can post the code if necessary, but I thought/hoped it
> might just be a setting I need to change.  Thanks a lot.
JimmyGiraffe - 07 Feb 2008 17:59 GMT
> My first guess would be that you don't use the appropriate id values and
> that you actually do"nt find those controls in your client side javascript
[quoted text clipped - 19 lines]
>
> - Show quoted text -

Here is a link to just the menu.  This is an intranet site normally,
but I posted it to our outside server and got rid of all the content
except the menu.  The sub menus should appear under the link, but as
you will see it puts it in the top left.

http://www.fenton100.org/testcss/default.aspx
JimmyGiraffe - 07 Feb 2008 18:07 GMT
> > My first guess would be that you don't use the appropriate id values and
> > that you actually do"nt find those controls in your client side javascript
[quoted text clipped - 28 lines]
>
> - Show quoted text -

Not too sure what I did, but I found a page that worked and copied the
code from that one and that fixed it...

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.