html

Fixed top navigation element and anchors

With the following CSS, anchor links end up being hidden by the navigation bar. What solution would you proposed to have the anchor link text being shown just under it? /* style and size the navigation bar */ table.navigation#top { position: fixed; margin-top: 0; margin-bottom: 0; top: 0; left: 0; z-index: 10; } thanks ...

Converting HTML file into c# as string

Hey all I am looking for a way to design a simple HTML file, and in runtime - to load it as string to the c#. I am trying to File.Open it, but it resides in a different location than the binary code. is there a simple way to tell the build process to load it into a string? thanks ...

Add centered text to the middle of a <hr/>-like line

I'm wondering what options one has in xhtml 1.0 strict to create a line on both sides of text like-so: Section one ----------------------- Next section ----------------------- Section two I've thought of doing some fancy things like this: <div style="float:left; width: 44%;"><hr/></div> <div style="float:right; width: 44%;"><hr/></d...

Remove line breaks and add BR tags in PHP

I have the following text for which I would like to add a <br> tag between every paragraph. And also remove all the line breaks. How would I do this in PHP? Thanks. So this - This is some text for which I would like to remove the line breaks. And I would also like to place a b> tag after every paragraph. Here is one more paragra...

Do the HtmlWindow returned from the HtmlPage.PopupWindow can .Invoke or .Eval javascript

Creating a separate PopupWindow that opens another web browser give me as return value a HtmlWindow object that is the same object type as the static "HtmlPage.Window" of the silverlight project. That object type provides the "Invoke" and "Eval" methods. I want to evaluate a javascript that can be located on my Silverlight code in a str...

xmlrpc.php?rsd - what its actually meant by referred in link tag

Need definition of this link tag <link rel="EditURI" type="application/rsd+xml" title="RSD" href="xmlrpc.php?rsd"> ...

Open child browser window from child window

Hello, Does anyone know how to open a browser window from a child window? On my main window I'm doing a window.open(.....). But then from this child window I want to open another child window, but its not working. I mean the problem is that the window opens on the first child. Any ideas? Thanks. ...

Can an element have both an id and a class?

pretty self-explanatory. ...

F# and statically checked union cases

Soon me and my brother-in-arms Joel will release version 0.9 of Wing Beats. It's an internal DSL written in F#. With it you can generate XHTML. One of the sources of inspiration have been the XHTML.M module of the Ocsigen framework. I'm not used to the OCaml syntax, but I do understand XHTML.M somehow statically check if attributes and c...

How can I replace some HTML tags based on their class in Perl?

I need replace some tags in HTML using Perl: I have this: <span class="a">text</span><span class="a">text</span><span id="b">text</span> I need this, where the span tags with class=a are changed to b tags instead: <b>text</b><b>text</b><span id="b">text</span> I tried using HTML::Manipulator but did not succeed. ...

Integrate Facebook Like button in website... With comments option

Hello, Please see: http://developers.facebook.com/docs/reference/plugins/like I successfully integrated a [Like] button in my website using this link. On the developers website, when I click the [Like] button, a popup appears telling this: You like this. Share it on Facebook with a comment... [ ] [P...

Echoing Spaces Between a Hard-Coded Word and a Variable

Hello, For the code below, how could I put 5 spaces between "Submissions:" and $row1["countSubmissions"] ? Thanks in advance, John echo '<td class="sitename5">Submissions: '.$row1["countSubmissions"].'</td>'; ...

Jquery .html() function returns html out of nested order

I have a method which returns a persisted html template from a database. The template is of the format: <div id="item_collection"> <div id="item_x"> <p id="item_x_headline"><h2>Some Headline</h2></p> <p id="item_x_excerpt>Some text here</p> </div> <div id="item_x+1"> <p id="item_x+1_headline"><h1>Some H...

Change the contents of an iframe dynamically

Hello, I was wondering if there is any way form me to change the contents of an iframe dynamically. ...

IE Joomla Problem with templatemonster template

Hi, i have got something strange: http://garten.ploetzeneder.eu on FF and chrome i see the complete website, on IE 8 i only see everything down to the flash, but bellow the flash i don not see anything,.. how can i debug this? ...

Drag and drop an image from desktop to a web text editor (implementation in javascript)

I tried to write reasonably short title but i failed i guess.. Hi everybody here's what i'm trying to do: I want to implement a web text editor able to recognize when the user drag a image file over it's editing surface and it automa(gically) starts the upload and insert the image near the cursor position. In other words i don't want t...

Double Slash at end of URL when going to HTTPS?

My site currently uses http and https sections based on the data being collected on the site (form data uses https). On my index page, I have the PHP code at the top: <?php session_start(); ob_start(); if( $_SERVER['SERVER_PORT'] == 443) { header('Location:http://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF'])...

Display any website source code for copy/paste

Hi everyone... I have a website displaying data from MySQL in a php file (/something.php).... i want to copy the source code of that page as HTML so i can use it in a textfield box so users can copy paste that code... It's almost like an HTML generator using info from mySQL, so users can custimize each HTML code. I have everything cov...

Get HTML DOM with CSS

CSS can apply styles in elements through one ID, class or pseudo-selector, but I would like to get the HTML tree, something like in javascript: <script type = "text/javascript"> window.onload = function () { var div = document.getElementsByTagName ("div"); div[0].style.backgroundColor = "gray"; div[0].style....

Html width 100%

Hi, This is driving me nuts. What happens with "width:100%" ? Apparently it just works in IExplore, so I think it's one of those things Microsoft made up. But then... how do you tell to a element that has to take all available parent's space in a way that all browsers can understand? Cheers? ...