473,321 Members | 1,708 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,321 software developers and data experts.

Javascript issue

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.
Feb 7 '08 #1
4 1399
>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.
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
Feb 7 '08 #2
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

"JimmyGiraffe" <ji***********@gmail.coma écrit dans le message de news:
fe**********************************...oglegroups.com...
>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.

Feb 7 '08 #3
On Feb 7, 11:36*am, "Patrice" <http://www.chez.com/scribe/wrote:
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

"JimmyGiraffe" <jimstrucks...@gmail.coma écrit dans le message de news:
fef2225b-2d6f-40c6-8b15-698ab06ab...@f47g2000hsd.googlegroups.com...
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.- Hide quoted text -

- 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
Feb 7 '08 #4
On Feb 7, 11:59*am, JimmyGiraffe <jimstrucks...@gmail.comwrote:
On Feb 7, 11:36*am, "Patrice" <http://www.chez.com/scribe/wrote:


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
"JimmyGiraffe" <jimstrucks...@gmail.coma écrit dans le message de news:
fef2225b-2d6f-40c6-8b15-698ab06ab...@f47g2000hsd.googlegroups.com...
>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.- Hide quoted text -
- 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- Hide quoted text -

- 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...
Feb 7 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Nathan DeBardeleben | last post by:
This may seem wierd, and I know someone asked this question before but was told they were doing it the hard way. Unlike them, I do not have shell access to the machine where this javascript runs....
6
by: TJ | last post by:
Hello All, I posted a question a few days ago entitled "Select element with no selected options". Over the course of the discussion, RobG wrote: > This is just an example, it is not really...
3
by: Jason | last post by:
I have two applications that I wrote that use asp and javascript source files. Recently both of these applications starting acting strange on my test box. Image icons will randomly stop showing...
3
by: fbwhite | last post by:
I am having an issue (maybe two issues) in my application regarding a stylesheet not loading and I am getting Javascript Errors. If I clean out a client's temporary internet files and then browse...
4
by: E | last post by:
I am having trouble with setTimeout working on a second call to the setTimeout function from a second page which is an html page. Here is the scenario. I have a web page and onload it calls a...
16
by: Eric | last post by:
I have a user of a web application written in Java/JSP that is unable to login to the site simply because certain links on the page do not run when they are clicked. Other popups using Javascript...
6
by: kenundrum | last post by:
Hey all, I am having an issue with XML/XSLT and JavaScript in my ASP.NET page that I am creating. I first want to apologize if i placed this in the wrong category. Since there were three different...
33
by: Simon Brooke | last post by:
I'm working on a system which uses Google maps. I want the user to see a map of more or less where (s)he is in the world when (s)he first comes to the system. So the obvious thing seemed to be to...
3
by: =?Utf-8?B?UGhpbCBKb2huc29u?= | last post by:
Hi, This is an issue that happens to me and everybody else I know and I've never found a way around it. In Visual Studio (currently using 2003 but the same has happened for me in 2005 and...
1
by: a.bavdhankar | last post by:
Hi, Newbie Question: Applicable to dotnet 2.0 I am getting javasacript error message as Expected ')' but all script works fine on other machine. There is no syntax error in the script but...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.