Hi, I am working on a website where the visitor should be able to download a pdf file.
(There are three links to choose from but that is irrelevant)
I wanted to know how to make it so that the visitor can simply click the link and not have to
right click > Save (target) As...
I am open to PHP and or Javascript solutions. Thanks.
ED...
I have a button (< input type="submit"/>). When it is clicked the page reloads. Since I have some jQuery hide() functions that are called on page load, this causes these elements to be hidden again. How do I make the button do nothing, so I can still add some action that occurs when the button is clicked but not reload the page.
...
Hello All,
Has anyone experience this weird issue on safari?
Textbox autofill is not at its correct position, please see screenshot below.
I have been searching for answers in google for almost a day, still no luck.
This is the built-in autofill feature of safari.
Here is the markup:
index.php
<html>
<body>
<div id="nav"></di...
I want to convert a web page to a high-resolution PDF suitable for printing. How can I do this?
...
I have markup like this:
<tr>
<td>test</td>
<td>test</td>
<td>test</td>
<td>test</td>
<td>test</td>
</tr>
That obviously creates a horizontal table. Is is possible, using only CSS to make that table display with only 1 item on each row? The desired output is similar to a unordered list with no margin or...
I want to be able to display some simple chunks of HTML in my native BlackBerry app, NOT returned from a URL. This is similar to existing Stackoverflow questions (e.g. here and here), but I need help getting the actual BlackBerry sample code to run (or perhaps somebody to tell me why this is doomed to not work!).
The BlackBerry website...
What is the best strategies to write CSS for CMS generated non semantic HTML with overuse of Divs, spans. I can't modify HTML?
I can add javascript and css files but can't add xhtml code. Is there any things needs to be concern?
Edit:
See example code of horizontal dropdown
http://jsbin.com/emuco/edit
...
Can I have multiple values for rel attributes? Like so:
<a href="#" rel="value1 nofollow">Link</a>
.. is it valid and cross-browser compatible?
...
I'm trying to code a site where every 10,000th visitor is prompted to enter an email which can be stored in a text file.
I have a hit counter set up where it outputs the total visitors to a text file, so is it possible to set up a script to something like
"If number =*(10,000) from visitor.txt
then prompt for email save to =emails.txt...
when i select some text from the browser, is there anyway i can get the selected html instead of just the plain text for firefox using javascript.
Let me know if any one did this before.
--vamsi
...
Hi,
I need two consequetive divs (with backgrounds) to be touching seamlessly, one below the other. However, this layout breaks when I put a child p element into the bottom div. The margins of the p element force a blank gap between both divs. This is strange behavior, as I am expecting the margin of the p to stay within the content and...
Hi
I want to implement Google checkout in my PHP project (running on Apache). I put the callback URL in my merchant center account. My Checkout is in sandbox mode. When placing an order I get the following error message in my merchant center:
We encountered an error trying to access your server at myurl.org -- the error we got is
S...
How can i make asp.net control cross browser compatible?
it is compatible with IE only.
Let me know the best steps to do this.
...
I have an string input-buffer that contains html.
That html contains a lot of text, including some stuff I want to parse.
What I'm actually looking for are the lines like this : "< strong>Filename< /strong>: yadayada.thisandthat.doc< /p>"
(Although position and amount of whitespace / semicolons is variable)
What's the best way to get a...
Hello
I'm having a problem while trying to dynamically change a table cell's styling class using JavaScript.
The following issue happens on FF, I opened the page on other browsers too and it worked fine.
I have a html page that contains a 4x4 table. I would like when I click on a cell, to zoom it in and when I click on it again to zo...
I am generating an email in HTML format that contains the DIV tag as follows:
<div style="position: absolute; left: 10px; top: 50px;">
Outlook 2007 is not able to display the email properly. It is ignoring various styles.
I have gone through this article.
I knew that there is a feature in Outlook 2007 to view the Email in Browser. ...
What is the way to trap a right-click event on a document element? I could not find any event handlers anywhere.
...
I have an oldstring:
'foobarba <span class="foo">z</span>'
and a newstring:
'foodbar ba<span class="foo">z</span>'
a string is given for a classname, it could be "foo" again, let's say "bar".
Given newstring, oldstring and bar, I want to end up with:
'foo<span class="bar">d</span> ba<span class="foo">z</span>'
I want to diff th...
Hello everyone, my website looks ok in all browsers expect for IE7 I have lot of issues with this browser. Below is the image with which I have problems :
I made a pagination which has a problem with IE7, the border bottom and top doesn't render, anyone knows why? here is my css mayber that will give you hint what is wrong?
div.Page...
NOTE: My original question was whether I should use <div>s or <table>s for this task. I have found an answer myself: <div>s are more than twice as slower on Firefox and Chrome if you have ~2000 rows. So you must use <table>s for this. I decided to reedit my question to show how to do it (table with resizable columns and selectable rows u...