html

Opera multiple file upload sends files to $_POST instead of $_FILES - suggestions?

I tried googling this with little success. Can I make Opera upload files to $_FILES or will I have to start editing the PHP script? ...

how to show open/save dialog when linking to pdf files

I'm trying to link a pdf document from a static html file. What I'm using is: <a href="some_pdf_file.pdf">My pdf File</a> the open/save dialog comes up in firefox but not in IE7 or IE8. I believe I have to change the MIME type but I don't know where to change it... ...

How to click a button element in watir?

Can I write watir code to click this button element? The onclick event has to be triggered. <button onclick="wizardAction('start', 'Starte Upgrade')"> <table align="center" cellspacing="0"> <tbody><tr> <td><img src="/static/images/stock/gtk-ok.png" align="left" height="16" width="16"></t...

SEO title vs alt vs text

Hello everybody! Does the title attribute in a link do the job of the real text in the link for SEO? i.e <a href="..." title="Web Design">Web Design</a> is it the same as: <a href="..." title="Web Design">click here</a> when trying to get a good page rank for keywords like "web design"? is it like alt attribute in an image tag? or ...

Why does javascript strip out my dyamically javascript?

I have a javaScript that calls a function: var combineddata = jQueryGetHtml(); The function is: // Get ALL of the HTML using jQuery var jQueryGetHtml = function() { var htmlStartTag = function() { return $('html').contents(); var attrs = $('html')[0].attributes; var result = '<!DOCTYPE HTML PUBLIC "-/...

Parsing HTML with Hpricot & Ruby - getting the innermost html?

I'm looking to parse some old html that has plenty of extraneous tags that could be done with CSS now - <b>, <font>, etc. I'm using Hpricot to parse it, but I want to get the innermost "inner_html" - how does one do that with Hpricot? For example lets say I user Hpricot to grab all the <table> elements which I loop through to get the r...

So i have dates and numbers, whats the best way to graph this?

Im working on a little greesemonkey script to calculate some numbers, and hopefully graphs of a particular wikipedia page. So i can get the data into an array of dates and values, (not key value) array of objects with .date in the format of "d/m/yyyy" and .num as the number for the date. the dates are mostly continuous, but may miss ...

What will cause a site to look and act OK in IE but not in Firefox?

I realize this question is the reverse of most of this sort. In other words, things "look great" in Internet Explorer, but look crappy or don't work at all on Firefox/Chrome/etc. I have a .NET web application. When it was first designed/built back in 2003, for several reasons that are no longer relevant, the app was built for IE-only....

avoiding repeat data in hCard

I'm revamping my work's Employee Directory, adding hCard data to each employee's listing. An issue I haven't been able to figure out is how to avoid duplicating information, such as organization-name and organization-unit. Here's a trimmed-down example of my code: <div id="hcard-business" class="vcard"> <div class="adr"> <div cl...

how to stretch an image in background css property

I am displaying a logo on in my header with the following css property: background: url("images/ogo_b_s.gif") no-repeat scroll left top transparent height: 92px; width: 300px; problem is that my original image is of high quality (4325 X 1450). However, for this image to fit in the above css width and height, I have to scale the image...

CSS and <input type='file'> - Discussion

I want to change the style of my input and browse button for uploading files on my website, and have been reading how this is virtually impossible to do. There are apparently a couple of hacks that may work (not tested) but before I waste time on them I have questions on why professional sites seem to have no problems with it. When I sa...

Display .txt file in html (without php or javascript) (UPDATE)

Hi, I want to display the context of a .txt file in an html file. I know this would be very easy with PHP or javascript, but, to put you in context, I am building a content administrator for a Facebook page (Not app). Facebook FBML is static and doest allow php and VERY limited javascript. The first question would be if this is even...

Jquery html() to div doesn't work

..I suppose because the html has script tags :-/ <script type="text/javascript"> $(document).ready(function() { $('.ad_slot').html('<scr'+'ipt type="text/javascript"><!-- amazon_ad_tag = "xxxxxxxx-xx"; amazon_ad_width = "160"; amazon_ad_height = "600"; //--></scr'+'ipt>'); }); </script> <div class="ad_slot"></div> witho...

Strange behavior of HTML link tag

Hi, We came across a strange behavior while using html tag. Actually the issue was because of improper usage of the tag. As a result of that, the page was getting submitted 3 times in Mozilla Firefox and 2 times in IE7. Here is the issue. <link rel="stylesheet" type="text/css" title="Style" href=''/css/image.css'> This was the code t...

Simple HTML/CSS positioning question

Hi, For some reason I think I'm forgetting something here. Below is my code: <style type="text/css"> #content { width: 400px; height: 100px; background: orange; padding: 10px; } </style> <div id="content"> <h1>what</h1> foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofo...

Including a file based on clicked link

I am beginning to develop a website as a personal project, to discover a little bit web technologies. My question is more about "how to make the things clean" than a technical question. Here is the thing: Let's say that an index.php page will include an other menu.php, which will permit to navigate the website. My index.php look like ...

How do I generate a listing of article names and e-mail addresses from pubmed results?

I want to generate a listing of (1) article titles and (2) article author e-mail addresses all from pubmed search results. Using the pubmed EFetch ultility (see this link for details: http://www.ncbi.nlm.nih.gov/corehtml/query/static/efetchlit_help.html) I have successfully created a php script to retrieve this data in an xml format as ...

Explicity exclude a html element from the tab order

Is there anyway to exclude an element from the tab order of a HTML form. So if i have the following <input type=text name=username> <input type=text name=password> <input type=button name=forgotpassword> <input type=submit name=login> I'm aware that I can use tabindex as 1,2,3,4 but i don't want to have to number all the fields. My a...

Building an application with a site's API

So I want to build an application in Objective C for a site that I use. Here is an example of their login API: Verify Credentials Allows authenticating user to check username/password. URL: http://myanimelist.net/api/account/verify_credentials.xml Formats: xml HTTP Method(s): GET Requires Authentication: true Response: Success: 200...

css help I need to float two text areas next to 4 inputs

This is the mark-up I have to work with, The form is created via a wordpress plugin so I do not have control over the HTML, <div class="wpcf7" id="wpcf7-f1-p214-o1"><form action="/testing/contact-us/#wpcf7-f1-p214-o1" method="post" class="wpcf7-form"> <div style="display: none;"> <input type="hidden" name="_wpcf7" value="1" /> <inpu...