html

SharePoint Field Forcing Links To be Relative

Ive got Note field with FullHTML turned on. I'm trying to storage an image tag with src that points to the server I'm currently on. I set the field to: <img src="http://servername/_layouts/images/Company/test.jpg" /> I then immediately try to read the value back out, and I get: <img src="/_layouts/images/Company/test.jpg" /> Share...

css selector for first direct child only

I have the following html <div class="section"> <div>header</div> <div> contents <div>sub contents 1</div> <div>sub contents 2</div> </div> </div> And the following style DIV.section DIV:first-child { ... } For some reason that I don't understand the style is getting applied to ...

Opening a Link in a new window from a dynamic navigation link

I am working on a CMS site that uses dynamic navigation. There is one link on the site that I would like to be able to open in a new window. However, since this is a dynamic environment I can't add the standard, target="_blank" to the link. Resorting to Javascript I tried the following: <script type="text/javascript"> window.open ('htt...

Change Link Image when active

I have 3 links that represent the content for one iFrame in my page. When you click each link, it'll reload the contents of that iFrame without reloading the page. how do i set the image of my link to change when it's active? here's my code: <div id="tabs"> <div id="overview"> <a id="overviewtab" t...

How to make my div align in CSS?

This is my actual div: Pic1 This is the Pic1 HTML code, it will loop based on the database: <ul class="productUl"> <li class="productLi"> <div class="productItem"> <!--my div content--> </div> </li> </ul> This is my CSS code: .productItem{ width: 15em; height: 13.8em; text-alig...

overlay div over iframe

I'm making a widget similar to the uservoice widgets, except I want the content of the page to be in an iFrame rather than the widget appear via javascript. How can I have a full page (width/height 100%) iFrame with a div fixed to the left of the browser, an example (using javascript rather than css/html) is here: http://uservoice.com/d...

send an HTML formatted email using MFMailComposeViewController

I am formatting a mail with HTML content and sending it using MFMailComposeViewController.But on the receiver side mail is not reaching in HTML format.Only Plain text is visible.How could I resolve this issue.Thanks in advance. ...

Firefox Mac alignment issue

I wrote a menu where the total width of the buttons should be always the same width of the menu bar. So i take the whitespace and devide it over the buttons. It works on: Windows: FF IE6 IE7 IE8 Mac: Safari Chrome But it doesnt work on Firefox on the Mac can does anyone have an idea? The example can be found: http://www.bobkarreman...

Adding a div overlay to each item of a repeater control

I've added a div overlay to my repeater control using absolute positioning. Predicably, this simply renders all of the divs in the same place. Is there any way that I can put this overlay over each row of my repeater? <table style="border-style:None;width:350px;border-collapse:collapse;"> <tr> <td> <b>ID</b> </td> <t...

innerHTML causes IE6 to (permanantly) lock up

On a site I am working on I load up a series of images which can be animated using some controls I implemented w/javascript. Everything works just fine in all browsers but IE6 which locks up and never recovers; at least not w/in the 15min I let it sit there. The part it is choking on is a portion where I try to modified the contents of...

Html rich text editor and read-only content?

Hello I'm looking for a way to make specific elements in a Html rich text editor read-only and not possible to modify by the user. Is there any way to achieve this behavior? An example of the rich text editor Im refering to would be this code snippet: <html> <head> <script type="text/javascript"> var Editor = { Init: functi...

Text box value sticks even if i refresh?

Hi, i have the following html : <input type="text" id="searchbox" name="q" value="Search Pictures..." onclick=" if(this.value=='Search Pictures...'){this.value='';}" /> It's works when i open the page for the first time, but when i type something and search , then i come back to the page, or refresh, i find the past keyword still sti...

Embedded Flash MP3 player slow on some files, normal on others

I am using a embeddable Flash based MP3 player (The standalone Version of Wordpress Audio Player, to be exact) to play audio on the web page of a client. Given the nature of Flash based players - AFAIK they all use Flash's audio/video decoding libraries - the exact player product might not matter, though. She complains that some specifi...

Fading effect on Google homepage? Is it AJAX?

Possible Duplicate: How does Google achieve the fading effect on the home page? Hi All, If you visit Google, notice that when the page loads it is very sterile. Upon moving the mouse many elements of the web page now appear in front of you. How is this done? I think that it is pretty neat. Is it AJAX? ...

Python newbie - Input strings, return a value to a web page

Hi, I've got a program I would like to use to input a password and one or multiple strings from a web page. The program takes the strings and outputs them to a time-datestamped text file, but only if the password matches the set MD5 hash. The problems I'm having here are that I don't know how to get this code on the web. I have a serv...

HTML Unordered List CSS

I have a unordered list, with each list element containing two spans (say span A and span B). Now I need to format these so that they are placed horizontally across the screen, when span A always on top of span B. Eg. spanAItem1 spanAItem2 spanAItem3 spanBItem1 spanBItem2 spanBItem3 How can I do this using some creative CSS? ...

In Javascript or jQuery, how do I remove only the first and last tag?

given the following string: var htmlStr = '<p class="red_349dsa01">This is</p><p class="blue_saf9vsaz">a test</p>'; how can I remove the very first and last tag off this string? This would be the result: var htmlStr = 'This is</p><p class="blue_saf9vsaz">a test'; I know this will create invalid HTML, but I just want to know if thi...

Domain restrictions for swfloader

I have a swf movie player located in http://www.a.com/a.swf. Normally this a.swf is used by a html page, the swf file is embedded in a http://www.a.com/a.html. The website is not built by me but I know there is a restriction that only the html in http://www.a.com can play the video . Now what I want to do is embed the a.swf into a c# pro...

HTML|CSS: Space between input buttons

I have a problem in which I have a space between these two buttons as seen in the image below: The code is as follows: <input id="NeedBtn" class="PostBtn" type="button" /> <input id="ProvBtn" class="PostBtn" type="button" /> .PostBtn { background: url(../Images/Buttons/PostButtonF.png) no-repeat; width: 50px; height: 28px; ...

In Javascript or jQuery, how do I detect if a specific tag exists or not?

Given the following strings: htmlStr1 = "<img>test1</img>"; htmlStr2 = "<div>test2</div>"; I'd like to know if there's a way to write a function just to detect for the "img" tag (for example). So if both of these strings are passed to it, and it should not do anything if the 2nd string is passed to it. so for example, you'd run a fu...