Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

javascript events - Firefox Extension link extractor -


i want create extension in firefox extracts links embedded on web page users moving mouse on link. similar link target display on status bar @ bottom of browser.

the problem having getting access document object of loaded webpage. tried document.getelementsbytag("a") didn't work. tried content.document.getelementbytag("a") didn't work.

ideally want behave this:

  1. webpage loaded.
  2. all anchors on web page assigned attribute onmouseover.
  3. user points link.
  4. the event triggered , link's url extracted , displayed on alert box.

a few things:

  1. for script inserted browser overlay, document document of browser, not of webpage, want content.document.
  2. the function getelementsbytagname. use error console -- should tell getelementsbytag not function.
  3. you can use content.document.links
  4. it might simpler add event listener entire document when loads, , in event listener, if (event.target instanceof htmlanchorelement) or see if it's link.
  5. either way it, should remove event listeners when you're done them (i.e. on page's unload event).

Comments