473,320 Members | 2,147 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,320 software developers and data experts.

cross browser issues

10
how to dynamically set events to work in IE.
to be specific i want to create dynamically event calls on mouseover
and assign it dynamically to a perticular <anchor>
Feb 18 '08 #1
8 1359
wyatt
6
how to dynamically set events to work in IE.
to be specific i want to create dynamically event calls on mouseover
and assign it dynamically to a perticular <anchor>
I'm not entirely sure I understand, but try this:
Expand|Select|Wrap|Line Numbers
  1. document.getElementById('anchor').onmouseover = function() {
  2.     //onmouseover code here
  3. }
  4.  
Feb 18 '08 #2
sai26
10
can any one help me.
i am writing a piece of code so that u can understand more precisely.

Expand|Select|Wrap|Line Numbers
  1. window.onload()
  2.     {
  3.         var names = document.getElementsByTagName("a");
  4.            for(var i=0;i<(names.length);i++){
  5.                     names[i].setAttribute("id","a-"+i);
  6.                     names[i].setAttribute("name","a-"+i);
  7.                      //---works in netscape not in IE---//
  8.                         names[i].setAttribute("onmouseover","aad(this,event)"); 
  9.                         names[i].setAttribute("onmouseout","clr()");
  10.                  //---------------this piece----------------//
  11.   }
  12. function aad(com,var)
  13.  {
  14.       alert(com.id+"  "+var);
  15.  }
i am setting the event calls for <anchors> onload and when i actually
mouse over a perticular <anchor>, it works in netscape i.e call the function
but it fails 2 work in IE, any alternative for it
Feb 18 '08 #3
gits
5,390 Expert Mod 4TB
as stated in post #2 ... don't use the setAttribute()-method for this, set the properties directly:

Expand|Select|Wrap|Line Numbers
  1. node.onmouseover = funcref;
or use attachEvent() for IE and addEventListener() for the rest ;)

kind regards
Feb 18 '08 #4
sai26
10
as stated in post #2 ... don't use the setAttribute()-method for this, set the properties directly:

Expand|Select|Wrap|Line Numbers
  1. node.onmouseover = funcref;
or use attachEvent() for IE and addEventListener() for the rest ;)

kind regards


thank you v.much i have done some working and got it. even what u said
works fine.
Feb 26 '08 #5
sai26
10
can any 1 explain me how to track the mouse position when the page actually scrolls. i am tracking mouseover events and getting a popup, it works fine when the page does not scroll down, but when on scroll its displaying the popup on the page before the scroll.....
can i find any help regarding this?
Feb 26 '08 #6
gits
5,390 Expert Mod 4TB
have a loook at the scrolling offset - section here ...

kind regards
Feb 26 '08 #7
sai26
10
can any 1 explain how to make a html form readonly when something pops up?
Mar 8 '08 #8
acoder
16,027 Expert Mod 8TB
can any 1 explain how to make a html form readonly when something pops up?
Heh, are you going to ask all your questions in one thread?

What do you mean by something pops up? A window popup?

To make something readonly, set the readOnly property. You may not be able to set the readOnly property for all elements, e.g. a select element.

What you can do, however, is put a transparent div over the form which won't allow interaction with the form.
Mar 8 '08 #9

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

Similar topics

5
by: CJM | last post by:
I'm developing a site for a charity which I am aiming to make standards-compliant, accessible and cross-browser compatible. I'm doing OK so far and have the workings of a respectable site, but I...
7
by: Scott M. | last post by:
How can I disable the cross-site scripting check for one particular page of a site?
3
by: Ed | last post by:
When writing my ASP.NET C# programs, how can I ensure my UI and windows forms are cross-platform compatible? My users are on Windows IE 6, Mac OSX Safari and Mac OSX IE 5. What are some of the...
2
by: Questman | last post by:
Good afternoon, Does anyone have any code that implements, or approaches implementing, a cross-browser DHTML/JS solution to provide an Excel-like Grid on a web page - I'm trying to convert an...
9
by: permanent.tourist | last post by:
I'm having a hell of a job getting this to work in Safari: the only thing I can think of is that one can't use reload() across to another frame for security reasons. Does anyone have a concrete...
16
by: petermichaux | last post by:
Hi, Does anyone have a a cross-browser setOpacity function that does not use browser sniffing? I looked at the Yahoo! UI function and it detects IE by looking for window.ActiveXObject. I also...
1
by: Rancid Buttchutney | last post by:
I've tried searching the web but I've had little success finding a cross-browser(IE, Firefox and Opera anyway) implementation of a restricted text INPUT that works in realtime before a character...
10
by: Christopher Nelson | last post by:
I've been developing a little web page full of JavaScript while using Firefox and it works well but when I try to view it in Opera and IE, it's incomplete. I suspect cross-browser issues in the...
6
by: Simon | last post by:
Hi All, An experiment i'm doing requires requires a synchronous cross-domain request, without using a proxy. I wondered if anyone had any ideas to help me achieve this. Below is what I have...
16
by: Stevo | last post by:
I'm guessing this is a laughably obvious answer to many here, but it's not to me (and I don't have a server or any knowledge of PHP to be able to try it). It's not strictly a PHP question, 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...
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...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
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: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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...

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.