html

Apple touch-events for webpages

I was wondering how to implement a sort of touch-event on a page like this. So, instead of when you tap on the part of the screenshot to magnify, it actually follows your finger as it drags across the screen. Are there certain ways to make this work on iOS devices. ...

About Disabling Page Parent Page & Go only clicking sub entities click

I have a website with a menu & different sub-entities in a page, that means sub entity pages under a parent page, i want to disable parent page, that means when i click parent page goes nowhere, only goes when clicking on sub-entity pages .. Let me know, how i can do that, i'm working on wordpress, i need this ASAP,please .. ...

How to remove text field from HTML file input

Normally, a file upload dialog is invoked by clicking the button created by <input type="file"/>. But then, I don't want the text field that comes with it. Is there a way to get rid of the text field? Or is there an alternative way to open the file upload dialog without using <input/>? ...

How can I open a link in a new tab when the user clicks it

I Would prefer not to use javascript if that's possible but a jquery solution would be fine too. I'd appreciate any help. ...

clicking on div fires binding for $('body').click

I have a div, I want to set it so that when I click on something else, it would hide the div. So I did $('body').click(function(){ if(loginOpened) { $('#loginWindow').animate({ 'width':'0px', 'height':'0px' },"fast"); } loginOpened=false; }); However, even when I click in the ...

how to have border in a div that contains two other divs

I am working on a html page where I have a header div that contains two sub div's link: http://jsbin.com/iladi4/3 I want to have a bottom-border for the header div but that border always keeps going on top. I want the border to be at the bottom. Please see the link. ...

How can I choose Ajax technique

Hi, I have a project, which has a server listening on port 9999. Originally the client is a flash program, which uses XML to communicate with the server. Now I want to write a web client to it(html). I want to make the modification as little as possible in the server side. I am thinking using pure html + ajax. The problem I am facing is...

load html at listview item onclick

Hi guys, I'm now stuck in html loading from my assets folder. I've several html pages under assets folder and have to load those at listview item onclick. Each listview item own their html pages.Does anybody know how i can get onclick event and how to show specific html pages ? Thanks ...

Sending Multiple Dropdown selected values as Hidden Field using JQuery

I want to be able to send all the selected values from a dropdown box (which allows multiple selection) as a hidden field using JQuery. I was able to send/retrieve a single value on form submission. If anyone can share some code snippet, that would help. Thanks in Advance! ...

problem with onblur in IE and in FF

Hi, I have a code like this: (this is a pop-up) <body onblur="window.focus();"> <form id="ronny"> <select id="select1" name="select1"> <option> 1b </option> <option> 1a </option> </select> <select id="select2" name="select2"> <option> 2b </option> <option> 2a </option> </select> Now, my problems are: In FF - when i move to the ...

Making the height of list items in a row follow their largest height

In this page: http://pastehtml.com/view/1biylhs.html You can see the book in the center needs more height space than the other two books in the same row because its title has more text. Currently, each book is contained in a <li> and has a height of 175px. I can set their height to auto but it still can't make all list items in the sa...

Style an ordered list so the number appears left-aligned and above the item?

Hi, I thought this would be an easy thing, but I haven't found a good solution (maybe I'm also using the wrong search terms). I would like to style an ordered list so the items appear so: 1 Item one 2 Item two 3 Item three Is there any way to do this simply with CSS? Many thanks in advance! ...

Add Item To html Combobox Server Side

How Can I (Or Is It Possible?) Add Item to Html Combobox ServerSide ? Or Bind It in behind Code in asp.net ? Does My question Clear? ...

Printing html ignores CSS stylesheets

I have a very simple html page with a table element. The document is styled with css. When I print the page it looks like there are no stylesheets at all. Wrong font, everything is wrong. What's the problem here? Do I have to create a special css only for printing? In my case it would be the same.. Is that really necessary? ...

How to move to specific section of external page

Hi After opening a new tab on my site, I want to move the focus to the bottom of the page on the external site. The reason for this is that the item I really want to show is at the bottom of the page (which is actually some search results). Here's the link as it currently stands: <a href="http://www.approvedworkshops.co.uk/search/...

How to hide a label message when a div becomes visible

Hi all, I have used a label box to render a "please wait" message when the user clicks "Save" button. Once the processing gets over, the output gets displayed. My goal is to hide the label once the output is displayed. How do i achieve this. My code is as follows, <label id="embedLabel" class="hide" runat="server" visible="false">Ple...

Catch first and last <li> inside php variable

echo $ul; // gives this code: <ul id="menu"> <li id="some_id" class="some_class">...</li> <li id="some_id" class="some_class">...</li> <li id="some_id" class="some_class">...</li> </ul> How to add some class for the first and the last <li>? Need a regex solution. echo $ul; should give (if we add class my_class for the last <li>): <...

Centering an div which overflows it's parent within another centered div

I have a single column layout where the column is a centered div with a fixed width. I want to place a wider div within the column which overflows it's parents, but center it within the parent. Conceptually something like the following: <div style="width: 100px; margin: 0 auto; overflow:visible;" id="parent"> <div style="width: 400p...

Ajax -access protected resource

I am just trying to access a webservice or any webpage for that matter through ajax(only ajax is allowed for some reasons).The webservice is protected by coroporate SSO. In the sense, when the webpage X is requested for the first time, you get redirected to the login page Y,which is outside of the app. Upon authentication,you get auto re...

Hovering over a link in a Flash file - browser highlighting

Is there any way of showing a link's destination from a swf in the browser? The answer might be a simple no. Hard to explain, so I have attached a screenshot that makes it clearer. ...