473,546 Members | 2,244 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1409
>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

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

"JimmyGiraf fe" <jimstrucks...@ gmail.coma écrit dans le message de news:
fef2225b-2d6f-40c6-8b15-698ab06ab...@f4 7g2000hsd.googl egroups.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
"JimmyGiraf fe" <jimstrucks...@ gmail.coma écrit dans le message de news:
fef2225b-2d6f-40c6-8b15-698ab06ab...@f4 7g2000hsd.googl egroups.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
1555
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. I need to run the 'submit' method on a Javascript on a page - but I need to do it without a browser. I can handle all the socket code, that's...
6
1333
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 suitable for the web since > without JavaScript it doesn't work at all and whilst I've stuck to > standards, it will be intolerant of some...
3
1663
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 up and any javascript that I use a src file with <script language="javascript" src="mytest.js"></script> ) returns random errors. Javascript on...
3
2746
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 to the site, the page is displayed without a stylesheet. If I continue to use the app, general Javascript Errors like "Object Expected" start...
4
5215
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 javascript function which calls setTimeout and will process a second javascript function "Warn" just before the session expires. The Warn...
16
2306
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 on the same page work correctly. It appears to be isolated to 1-2 machines in a particular network. I cannot verify whether these machines have...
6
2568
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 entities here i wasn't 100% sure where to place it. Here is the background on the issue: I have a XML tag that is located in multiple places...
33
19144
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 have a look-up table of latitude and longitude against locale, and then use the locale of the browser... But going through the documentation I...
3
2954
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 2008 as well) If I put a breakpoint in a .js file, the debugger picks it up and breaks into it at that point.
1
1234
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 unable to identify the root cause of it.
0
7507
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7435
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7947
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
6030
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5080
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3472
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1922
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1046
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
747
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.