html

anyway to delete all <a href=> tags with javascript after the page loads on an iPad?

I know that I can run a line of javascript code after the page loads on an iPad with UIWebView (which is what I am using), but I do not know what I could type to go through and remove all of the tags. I also would like to be able to do this to only certain parts of the page e.g. only remove tags within a certain tag. ...

Is there a way to change or reskin an incoming website on the fly?

I have a project where they want me to embed a website into a java application and they want the website to have a similar color scheme as the rest of the application. I know a lot about CSS and building websites but I am not aware of a way to change the look of a website as it comes in on the fly. Is there someone who can help? Update:...

Why does using document.write to create an iframe "cancel out" all remaining Javascript?

This happens in all browsers, so there must be a reason. Example: <html> <body> <script>var a="support/"; var aa='<iframe src="http://google.com/' + a + '" />'; document.write(aa)</script> <script>alert('test')</script> </body> </html> The code after the iframe write (in this case alert('test')) doesn't execute. Why? ...

Firefox not rendering list item as a link

Hi there, I've never come across this problem before and its quite annoying me. I have a list which when hovered over, a box appears around it. I have a list set out like the following <div id="sidebar"> <h2>Our Services</h2> <ul> <a href="furniture.php"><li>Furniture</li></a> <a href="kitchens.php"><li>Kitchen...

How do I get label value as a parameter into a javascript function?

Hopefully this one is not too hard to understand but I just want the label values to be inputs into a javascript function. Might be better to explain with code: ASP.NET Label code: <asp:Label ID="LabelCL" runat="server" Text="A single int filled in by DB"></asp:Label> Page Source: <span id="ctl00_cpMainContent_LabelCL">7</span> ...

iframe with user details in joomla

I have a site that can be published and has SSO. The SSO works with an iframe, the user's details are given in the querystring, and one of the details has to be hashed (MD5). E.g: http://www.come2play.com/channel_auth.asp?channel_id=9000&amp;uid=123456&amp;nick_name=The+Man&amp;auth_sig=dc952e4371e04551684afbcbf12cf14c One of my publi...

Reading an element's height property as a string with alert()

This is pretty rudimentary, but I want to know how I can access a property like height as a string. The mouseover alert here simply returns "undefined" (and saying height.value in the alert doesn't help either): <html> <body> <div id="wut" align="center" height="10" onmouseover="alertheight()"> hi. </div> <script type="text/j...

jQuery first parent containing all children

How would I got about selecting the first parent of a set of elements that contains ALL of those elements? For example: <body> <dl> <dt>Items:</dt> <dd> <ul> <li>Item 1<div class="item-info">...</div></li> <li>Item 2<div class="item-info">...</div></li> <li>Item 3<div class="item-info">...</div></li> </ul> </dd...

Javascript Fade-in Text on mouse-over

Hello, someone already has already posted the solution to my question, seen below. I want the same effect but only for certain parts of the page rather than all of the content. I basically only want certain parts of the page to fade in when the mouse is moved. // attach event handler document.body.onmousemove = function(){ fadeIn( thi...

Scrape an HTML Document with jQuery, is it possible?

I want to be able to grab an HTML page and parse it using only Javascript, nothing touches the server. Assuming I can get the html response (solved the cross-domain issues), how can I use jQuery on the complete html document? Example is like this (here is a full gist with a remote example): <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0...

learning css more and more professionally

I develop websites since last two years now and I have hard time learning CSS (just spend a whole day creating a login box like twitter...). And sooner or later I fall back to table layout, and get things done (for almost everything I dig deep in to other's source code and Google like hell... but I wish I know how to do it the way I norm...

Scroll bar issue with safari browser.

I have encountered a problem with safari browser in displaying the scroll bar inside a table. The main issue is that I have defined a table with fixed height and also a overflow y in css so that if the content exceeds the limits the scroll bar comes in action.I have found that it works well with mozilla fire fox and all other browsers. ...

Ruby On Rails: Display html source code instead of rendering it

Hello! I have a big problem (even my server's admin seems to have some difficulties to solve it). I used my cpanel (11.25.0-STABLE) to create a new ruby on rails application, which work fine when accessed to its original uri (with port number). To make that uri more "user friendly", I have created a rewrite to access my RoR applicatio...

cross browsers css

jquery is cross browser , so it abstract javascript. is there any library for css that cross browser, so if i write for firefox, it will show nicely on any other browser, even older version of ie5,6 ? ...

Which is the best tool to display web statistics - Open Source and Paid

Hi Guys, I would like to know which is best suited for displaying visitor stats in our websites The key areas under our consideration are 1. User Count 2. Unique User Count 3. User Location Regards, naveenj ...

Centering the Navigation bar

hey guys, I have a standard nav bar with an unordered list and using sprites. Im also using jquery to render some animation. Everything works fine. I have a problem with centering the bar. It is aligned to the left. I've tried using text-align:center but this doesnt work. I think there are conflicting properties. Could u guys please help...

IE keeps on asking whether to run ActiveX controls or not

when i typed in html like this var popup = window.open(location.href, "_blank", "menubar=0,location=0,toolbar=0,status=0,directories=0,width=" + screen.width + ",height=" + screen.height); popup.moveTo(0, 0); inside script language="javascript" and /script The IE keeps on asking me whether to run active x or not ..plz try...

How to make a html tag expand as much as possible to fit the parent width?

I want to make a textfield in my html page to expand as much as possible to fit the parent width. Here is an image shows what I want. I try to use width: 100%, but the browser sets the width of elemnt as its parent's, which makes no room for other elements, they have to to be placed in second line. How can I let the element to expan...

Is it possible to write the 2 html codes in the same html file?

Is it possible to write the 2 html codes in the same html file and call it when required with help of name property <html name ="abc1"> <body> </body> </html> <html name ="abc2"> <body> </body> </html> Thanks in advance - Miss subanki ...

PHP / HTML - enable print styles

Hi I have a stylesheet that looks like this: body{ background: #333; } ... @media print { body{ background: #fff; color: #000; font-size: 10pt } ... } the print styles work ok and are applied when you go in print preview mode in your browser. However I have a "print" button on the site, which when pressed, outputs the cu...