html

check if HTMLElement exists in Document in webbrowser control (vb.net)

I am trying to get the HTML inside a HTMLElement which has an id "block". I have tried: If webbrowser1.document.getelementbyid("block") isnot nothing then MsgBox(webbrowser1.document.getelementbyid("block").innerHTML) end if But it keep throwing a NullReferenceException and tells me to check if it null/nothing which is what I'm do...

Blueprint: Push column partially in to another column

Is it possible using Blueprint's push-x and pull-x classes to create an overlapping column that is half in one column and half in another column? Here's an example: +-------+-----+-------+ | | | | | 1 | 2 | 3 | | +-----+ | | | | | | | +----------+----------+ I ...

Using Javascript/jQuery to access HTML elements with improper id attribute

I'm making a Greasemonkey script for someone to change the display of some of the fields their CRM(Zoho) created because they don't have access to change the rendered HTML. This should be easy, BUT Zoho decided that creating proper HTML was too big a pain in the ass, I guess, and their HTML contains things like this: <input type="text"...

Sizing div to fit a child span

Sorry if everyone has already seen this over and over, I'm sure I've done it before but can't remember or find how! I've got a parent div tag containing a series of span tags to position a series of elements in line with each other - to clarify, the 'in line' is critical and this is just a single row, multiple sequential rows are a requ...

XPath: Parent form of submit button

I want to use PHP and DomXPath::query to get the parent "form" element of a submit button. The variable $dom holds the complete DOM tree and $node represents the submit button as a DOM node. $query = '??????'; $xpath = new \DomXPath( $dom ); $parents = $xpath->query( $query, $node ); if ( $parents->length ) { $form = $parents->it...

jQuery event help - I have a Select list with OptGroups, I want to call function only if option belongs to a certain optgroup

Hi All, I have a select list with optgroups. I want to add a handler for the drop down selected index change, how do I tell which optgroup the selected item belongs to? This determines further execution path. I understand how to add the function, the function contents are more the issue. $ddl.bind("change", function(){ //how do I find...

Part 2. of developing for Chrome

I have made the lovely discovery that Jquery corners are not working on Chrome. Any solution for that? I just figured out that when I turn of my config.js file that holds this (rounded corners functions): $(document).ready( function(){ if(navigator.appName!="Microsoft Internet Explorer") { $('.round_10px').corners("10px"); ...

Right nav drops below content; some browsers

Hi I have a strange problem. I have this site http://techavid.com/infogroup and within my interior(not homepage all other pages) pages there is a right nav. When the page loads the right nav drops below the content, but when I refresh the page the right nav fixes it itself (Firefox 2 especially). Anyone ever seen this before and wha...

How can I make a DIV take up the rest of the height of a container div?

Hi All, I have a div with two nested divs. The first child has varying height depending on its content, I want the the 2nd divs height to be whatever is left over from the parent. <div style="height:500px;"> <div>Some Content Here</div> <div>This div needs to take up the rest of the space of its parent</div> </div> How can I do...

Getting some weird results when nesting Login control inside absolutely positioned element

Hi Login control is nested inside the div element. aspx file: <div id=”parentE”> <asp:Login ID="Login1" Width="100%" runat="server"> </asp:Login></div> CSS file: #parentE { position: absolute; top: 16px; right: 300px; width: 60px; ...

Using Servlets and HTML

Hi, I have a doubt regarding the use of servlets. In the application I'm building I use Html pages to ask the user for info. Imagine a Html page that lets the user request to see on the screen the content of a data base. What I'm doing is: 1.- From the Html page I'm calling a servlet that will open a connection with the database. 2....

Loading text file from web, and parsing it with a script?

My .html has some associated data in a .txt file that I need to load when the page is loaded. I then need a script to be able to parse that data and do stuff with it in the page. Is there a quick-n-dirty way to do this? I was thinking I could just have a hidden and then run through its innerHTML, but DIVs don't seem to support that. ...

How to determine if hidden/overflow text is at top or bottom of element

I'd like to expand on Shog9's answer in How to determine from javascript if an html element has overflowing content And I'd like to know if the text that is hidden is at the top or at the bottom (or both or none) of the containing element. What's the best way to go about that? ...

How to calculate the effective z-index of an HTML element

I would like to determine the z-index of an element on an html page from code. I am using jQuery. jQuery will allow me to check the applied z-index using $(element).css("z-index"). If the z-index is not set on that element directly though, Firefox returns "auto" and IE returns "0". The effective z-index of that node then depends on t...

VB6: alternative to the HTML Object Library (for parsing HTML)

hi all, i've been using the html object library for a while for parsing html. the library itself works perfectly, the only problem is that loading/initializing html using createDocumentFromUrl (even if it's a small file) takes much too long. does anyone know an alternative component? thx ...

jquery click event is firing multiple times when using class selector

here is my html <li><div class="myLink" id=1>A<div> <li><div class="myLink" id=2>b<div> <li><div class="myLink" id=3>c<div> <li><div class="myLink" id=4>d<div> <li><div class="myLink" id=5>d<div> <li><div class="myLink" id=6>e<div> <li><div class="myLink" id=7>d<div> <li><div class="myLink" id=8>g<div> i created a jquery event bind wi...

Flash with Div or HTML overlay and mootools Fx.Slide

I've tried a bunch of different variations of CSS to try and overlay HTML over SWF objects but I've had a couple of hitches. Safari 4.0.3 PC: SWF Object always render above HTML. Firefox 3.5.6 PC: Rendering apprears fine but when animating HTML over SWF'S the divs slightly flicker. I'm using the Fx.Slide class from mootools-more-1....

Zend Framework dom problem

Hi i use zend_dom. I want to get website shortcut icon(favicon) and stylesheet path with zend_dom query $dom = new Zend_Dom_Query($html); $stylesheet = $dom->query('link[rel="stylesheet"]'); $shortcut = $dom->query('link[rel="shortcut icon"]'); Stylesheet query is work but shortcut icon query not work. How i do? Thanks. ...

Element ID in HTML Document ~ Naming Question

Are there any issues (either technically, or otherwise) with putting a space character in an element ID? For example, something like this: <li id='something with spaces'>Test123</li> I understand that this is NOT desirable (I have never used spaces before), but I have hit a scneario where I need to do this if possible. What are the p...

User Definable Attributes on HTML Elements?

What I need to do is be able to store some piece of data about an element. For example, lets say I have a list item <li>, and I want to store some data about it in the element, like "This is element 1 from XYZ". The only way I know how to do this (which I don't want to do if I can avoid) is this: <li id='item1'> Item 1 <!--This is...