If I have an image with a div wrapped around it, how do I make it only show a certain section of the image?
<div id=#container"><img src="hello.jpg" /></div>
Lets say I want the image to only display a width of 200px and a height of 200px. I also want it to start showing it 10pixels from the top, and 30 pixels to the left.
...
basically what i want to do is display a facebook photo album on my website.
is there a way to just take a div from a page and put it on yours with like frames?
couldn't think of a better way to do it atm - client isnt exactly computer savy but could handle photo album himself if its through facebook
i guess my backup option is just t...
hi there
guys, i need your help.
can you please give me some simple codes in validating a registration form using ajax? please...
:-(
I'm a beginner. i need your help guys.
...
So what I want is a div what points to an input or a div with contentEditable=true.
So if a click on the div then jumps inside the input.
...
Example (works in firefox):
http://progamonth.com/files/tablestestfile.html
I can't get select elements to dynamically get added to a table. This works in firefox, but it fails in IE and Opera. What's going on here?
DOM code:
<table id = "myTable">
<thead>
<tr><th>1</th><th>2</th><th>3</th>
</thead>
<tbody>
</tbody>
</table>
<select i...
I have created a HTML page with three section. One header at the top, two a table at the middle and a footer at the bottom. All the three is defined in three divs. The Header is fixed at the top using the css property ( top:0px; position:fixed;), likewise the footer is fixed at the bottom using css property (bottom:0px position:fixed;). ...
I have a textarea form which takes a large block of text. In this text area, I do a carriage return to end the paragraph and another carriage return to separate the paragraphs.
That text is in @contact_postalcard.message.
However, I need to output into an HTML file. The HTML file has been loaded as a long string which contains 'Rep...
Basically, I like the way that <input type="submit"> is styled, with the clickable button when you add a little CSS. However, regular buttons are not styled as such, they have no such clickability without some major CSS or JS, and you have to use images.
I made submit buttons into links, by using the form action, but this requires me to...
What I want?
I want a div what works like a textarea, I don't want to have the ability to edit things in the div, and paste images and so on just plain text.
Example
www.facebook.com
- The best example is facebook's news feed.
Why I need this way?
If you check out facebook's news feed, you well see that the area where you can...
I am currently writing a small templating system in ASP.NET to allow users to add content. For example, the user can enter the string (variable type is string).
topHeader[x] = "They think it's all over. It is now!";
However, one change that's needed is the ability to add some basic HTML tags within this content, so the following can b...
Hi,
I'm developing a Chrome extension, Which presents the user with an iFrame once the popup window is shown. I wish to invoke javascript function back on the hosting page. Now while I can access the "parent" object (it is not null) I can not invoke any method (like you would do with standard webpage that hosts an iFrame).
Any ideas ho...
Is it possible to make a HTML page behave, for example, like a A4-sized page in MS Word?
Essentially, I want to be able to show the HTML page in the browser, and outline the content in the dimensions of an A4 size page.
For the sake of simplicity, I'm assuming that the HTML page will only contain text (no images etc.) and there will b...
How we can Download a HTML Page using JAVA??
...
A dataset will be shown in 2 different columns.
Can I use for this the repeater-control or is there a more appropriate control ?
Does anyone know a good example?
...
I'm currently doing some maintenance on some existing .net 1.1 VB code that creates HTLM from code.
It mainly consists of a bunch of stringbuilder.Append("<table>").
Isn't there a cleaner way to create HTML tags?
...
Hey guys, thanks in advance for any help or input. I am having trouble understanding CSS selectors and i have read the docs..
I am trying to refer to the UL with the id dropdown in my stylesheet. I was under the assumption that i was able to refer to any elements like:
#dropdown ul
{
}
This method however does not seem to work :s...
Using java, I am writting a script to anchor link an html bibliography. That is going
from: [1,2]
to: <a href="o100701.html#bib1">[1, 2]</a>
I think I have found the right regex expression: \[.*?\]
What I am having trouble with is writting the code that will retain the values inside the expression while surounding it with the link ta...
Hi,
I use CGI::Ajax to check password on blur event of Password textbox field and disabled the submit button (by defualt submit button is active) if current password is wrong using jquery $('#submit_btn').attr('disabled'); It's working fine for me.
But when user enter wrong password and click on Submit button directly without using ta...
Hi
i have a asp.net page which inherits form a master page where i load javascripts.I like to place a iframe withing the page which will point to a html(which contains the link to javascript) .Will my java scrips work ?
...
I was looking online for a script that demonstrates how I would go about making it possible for users on my site able to edit fields and such, but I could not find anything about it. So I was wondering if someone could explain to me how it works or just demonstrate with a script? To make it clear, I want users to be able to edit stuff th...