473,382 Members | 1,766 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,382 software developers and data experts.

Problem with FF ( using expressions in javascript )

2
i have the following line in .NET 1.1 ascx file
<div id="balloon" align="left" style="position:absolute; top:
expression(<%=y%>+<%=imageId%>.offsetTop);
left:expression(<%=x%>+<%=imageId%>.offsetLeft); width:<%=width%>;
height:<%=height%>; z-index:1">

in IE it displays fine but in FF the text and the ballon are placed on
the same spot every time and that is the bottom left corner. the
Javascript console returns:

Error: Error in parsing value for property 'top'. Declaration dropped.
Source File: http://doesnotmatterwhichsite/brwtst/562?i=562
Line: 0

it gives this both for top and left

as it came to my understaning expression() is an IE enhancemnt. can someone help me how to make this work without using the expression() .

Thanks and Happy New Year
Dec 30 '06 #1
2 1011
b1randon
171 Expert 100+
i have the following line in .NET 1.1 ascx file
<div id="balloon" align="left" style="position:absolute; top:
expression(<%=y%>+<%=imageId%>.offsetTop);
left:expression(<%=x%>+<%=imageId%>.offsetLeft); width:<%=width%>;
height:<%=height%>; z-index:1">

in IE it displays fine but in FF the text and the ballon are placed on
the same spot every time and that is the bottom left corner. the
Javascript console returns:

Error: Error in parsing value for property 'top'. Declaration dropped.
Source File: http://doesnotmatterwhichsite/brwtst/562?i=562
Line: 0

it gives this both for top and left

as it came to my understaning expression() is an IE enhancemnt. can someone help me how to make this work without using the expression() .

Thanks and Happy New Year
Load your page and paste only the HTML and JS Source. You've got way too many variables in the problem. Cut out the .Net stuff, you'll be able to fix that once your HTML/JS problem is solved.
Jan 2 '07 #2
ronverdonk
4,258 Expert 4TB
See also the reply to your post in thread http://www.thescripts.com/forum/thread582493.html which is basically addressing the same topic.

Ronald :cool:
Jan 2 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

28
by: Daniel | last post by:
Hello =) I have an object which contains a method that should execute every x ms. I can use setInterval inside the object construct like this - self.setInterval('ObjectName.methodName()',...
9
by: Eddie | last post by:
I have a form that's used to sort a series of items. The form has a number of text fields. Each text field should contain a number. When the form is submitted I would like to do two things: ...
21
by: AnnMarie | last post by:
<script language="JavaScript" type="text/javascript"> <!-- function validate(theForm) { var validity = true; // assume valid if(frmComments.name.value=='' && validity == true) { alert('Your...
36
by: Marcel | last post by:
hi, i want to create a footer under my webpage at 5px above my lower browserwindowborder no matter how much i scroll or resize my page. i now use the following script but it does not do what i...
15
by: marco | last post by:
Hi, I'm a Javascript Newby. But that doesn't discourage me at all. At this time I'm working on a little javascript-gimmick. A white browser page filled with white (invissible for the viewer)...
6
by: Ward Cleaver | last post by:
Hi. I have an assignment to do some validating of a form using javascript and mostly the search() method. I'm having problems getting a positive validation for phone numbers like "123-456-7890"...
3
by: Bryan | last post by:
Hi All: I'm trying to find the right Regexp string to remove empty SPAN tags from an HTML string. Say I have a string like so, and I want to remove the empty span tags: <span>This is my...
56
by: Luke Matuszewski | last post by:
I am designing the library, which will hidden all its functions within singleton object ... So for clients they will use it like . eg. system.getElementWithId('ruler'); At library side, i...
12
by: Assimalyst | last post by:
Hi, I have a working script that converts a dd/mm/yyyy text box date entry to yyyy/mm/dd and compares it to the current date, giving an error through an asp.net custom validator, it is as...
1
by: Allan Ebdrup | last post by:
I have a dynamic list of regular expressions, the expressions don't change very often but they can change. And I have a single string that I want to match the regular expressions against and find...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.