I'm trying to delegate a click event to a TR element that contains a TD with a specific attribute, i.e.
<table>
<tr>
<td>product one</td>
<td>price</td>
</tr>
<tr>
<td data-imgurl="images/p2.png">product two</td>
<td>price</td>
</tr>
</table>
The goal is to click on the row and retrieve that row's TD "data-img...
http://www.pressedweb.com/beta/#portfolio
My anchor tags (highlighted in red dashed border) are being created by their own free will. I have no idea how to get rid of them and have been working at this for hours now.
Any ideas? Is this some freaky cross-browser bug? Or is it just a problem with my markup?
Thanks.
...
I am looking for such a method which allows me to add, remove DOM objects of a page before the DOM has even rendered, I mean the first JS that i include in the head tag of my page can come up, look for a specific tag say and remove it from the HTML even before it is rendered, I know that the javascript call is blocking so as the browser...
On aspx page I have asp:textbox multilined, where I type data.
When I assign TextBox1.text to a string i get something like this:
"line1\r\nline2\r\nline3"
But if I try to set it back to literal, I get:
line1 line2 line3
(without the line barkes)
How to solve it? Is the only way to replace the \r\n with <br />?
A note: If I ...
How i can draw html page?
QWebView *view = new QWebView();
view.Load(Url("http://www.google.com"));
QPrinter printer = new Qprinter();
How I can draw this view?
...
I am dealing with a legacy application where they use [a] tags for many Ajax form "submits".
If we were using [input] buttons we could just set the disable attribute of the [input] tag.
But on hyperlinks disable is not part of the spec and is not consistent cross-browser.
We are looking for a simple solution for blocking the extra click...
How can I create an extension for Chrome that adds an icon to the toolbar, and when you click it, it opens a new tab with some local web page (for example: f.html)?
I saw this question, but it doesn't really explains what should I add in the manifest file...
Thanks.
...
I would like iframe to be big enough to not have scrollbars, and if needed, require the browser render the scrollbars.
There have been posts before, i know... but .. many weren't quite my problem.
The main page and the iframe are on the same domain.
...
I would like to place my table smack dab in the center of a page. IT is easy horizontally align it just using
<table align="center"></table>
But it will not allow this:
<table align="center" valign="center">
I also cant put the valign in a div because it is not a valid attribute.
I have the idea of making a cell take up an the en...
I am inspecting a huge html file with many levels of nested div tags. I am looking for an editor which clearly tells me where the closing tag is located when I select a tag. In Visual studio the way it works it highlights it but I still can't find it!
In Notepad++, it creates vertical lines but with so many lines my eyes get crossed!
S...
Hi,
I'm pretty new to jQuery but basically what I'm looking for is a script that can do the following:
imgur.com/PYSAL.jpg
The numbers will change the entire slide (image and text).
Can someone point me to a script that can do this? Or something very similar, I'm just learning about JS. Thanks!
...
I'd like to build onmouseover directly into a javascript block. I can do it within a hyperlink but I need to do it in the actual script section for the code im writing. Can I do object.onMouseOver()? Or is there another way to do it?
So for example I'd like
<script>
something i can put in here that will make on mouseover work on a speci...
Hi all,
I have been using a couple of rich text/wysiwyg editors in one of my project (tinyMCE and markitup). I am currently running the latest version of markitup and its great, however it makes the mouse a must have in form navigation due to not being able to tab from the input above into the actual textarea, it just starts tabbing al...
Does anyone know why IE6 and IE7 add a white border between a button border and the background?
Here is my CSS and HTML:
#reportButton{
background:#fefcda url(buttonback.png) repeat-x bottom left;
border-top:2px solid #fffff8;
border-right:2px solid #e3b40c;
border-bottom:2px solid #e3b40c;
border-left:2px solid #ff...
We have web application that is almost 100% web service driven. We create & host oem versions of this web app for various vendors. Presently we are using asp.net & lots of user controls for the UI.
I am looking for solutions to providing the oem builds. Presently we turn features on & off server side, all configured in a database. I...
I have some addHtml JavaScript function in my JS code. I wonder how to escape HTML/JS code properly. Basically, what I am trying right now is:
addHtml("<a onclick=\"alert(\\\"Hello from JS\\\")\">click me</a>")
However, that doesn't work. It adds the a element but it doesn't do anything when I click it.
I don't want to replace all " ...
I am working on a web visualization project and would like to use the JavaScript InfoVis Toolkit to create interactive graphs quickly in webpages. However, I have no idea how to start using it or even where to look for clues. The google group seems like it is mostly high level stuff, but I applied for membership and am waiting on a respo...
Hi everyone!
I am working on a project which is basically a Java application with an embedded IE browser (using JDIC 0.9.5) to display custom HTML files (stored locally that I created). I have a test HTML file with a JavaScript function that checks a simple form with checkboxes and alerts the user with a dialog stating which checkboxes ...
I use slideToggle to toggle div's of content and I was wondering how I would be able to change between two images, one being a plus (+) sign, to click to display the content and a minus (-) sign to hide the content.
Any help is appreciated.
This is what I have to toggle one of the div's
$(document).ready(function() {
$('#planning-cli...
Hi,
Is there any image modification tool out there that will work on webkit?
Something like the one on this page
http://developer.yahoo.com/yui/examples/imagecropper/simple_crop.html
Except that when you interact, you interact with the image in a given space and the mask is fixed (i.e pinching the image, rotating the image etc)
Tha...