html

how to set content-disposition = attachment via javascript ?

can I set content-disposition = attachment via javascript. Basically, I would like to force a "SaveAs" operation after a page has loaded via Javascript, using Firefox. How can I do this ? ...

how to remove row in table using ajax?

i fetch the result from database on click event of combo box now i am try to remove or delete value from database and also remove from table row.problem is, when i click on href the value is deleted from database and display fetched result no showing.pls guide ...

Which Perl web framework should I use for a static HTML application?

I am about a develop a simple web application (5-6 static pages). Is there a framework I could use for this? I can just write these HTML pages without a framework but I would like a framework as it will better handle header, footer, and CSS throughout the website. I have a Perl script that will be modifying these HTML pages daily. And I...

submit button cross browser positioning

So i'm trying to make a login box with 2 fields and a submit button. The submit button position itself differently in EVERY browser. In Firefox it works as expected but in IE8 and Safari the vertical alignment gets screwed up. Any ideas to resolve this problem? Here's a screendump of the issue: http://gefuhlkunder.dk/bla.jpg <form ...

windows.location.href and base tag in Opera 10.63

I have a page (for examle, localhost/catalog/) with select element on it. <select name="type" id="typeSel"> <option value="2" selected="selected" >Type 1</option> <option value="1" >Type 2</option> </select> Also there is base tag in the page: <base href="http://localhost/" /> I want to change page url when user click on l...

how to call javascript methods sequentially on onclick event

Hi All, I need to call two functions sequentially (means one by one) in javascript on onclick event. The requirement is to get the data from the backend and then make the cell highlight. Below code snippet is used for this: cell1.onclick=function() { getData("FileName"); setTimeout("setHighlight('FileName')", 500); }; Curre...

Winnovative HTML to PDF and dynamic footer height

Hi, I'm using Winnovative HTML to PDF Converter. First user creates a template form in html. Then this HTML is transfered to Winnovative Converter. The problem is that footers can have different heights on different templates. Can I measure this height and set proper footer height in Winnovative converter? ...

How to get the id of textbox created at runtime in a gridview in javascript.

I have a editable gridview. When I click on edit button corresponding to a row in the gridview I provide two textboxes to enter two new values.2 textboxes as I have 2 columns. Now this textbox are generated at runtime.I want to access this textbox in javascript and perform validation on them.This is the html syntax. <table cellspacing="...

Can't get video works with javascript

Kindly i want anybody to tell me what am i supposed to do to let this work I have a lot of .mpg videos on my server and i show their names in .aspx page through Gridview ,which has a column hold a link for watching and another one for downloading ..the one which used to watch the video has a HTML code "<a href='WatchVideo.htm?fileName...

Unterminated string constant

My Description contains an apstrophe('). How to escape it. <a href='javascript:select("<%= pageBean.replace(list.getColumn(0), "'", "'") %>", "<%= pageBean.replace(list.getColumn(1), "'", "'") %>");' title="<%=selRpt%>"> <span class='img-view'></span></a> "<%= pageBean.replace(list.getColumn(1), "'", "'") %>" is the description part i...

Show/Hide child table(html) on selection radio button in master table

Hi all, I have requirement where on selecting radio button in the main table a child table has to appear below. Can anyone help me......pls. thx. ...

3 columns: one with max-width, another two with min-width

Three columns must fit the width of the parent container. The left and the right ones must not be less than 150px width. The one in the center must not be greater than 200px width. I've made a reference page using JavaScript. Is it possible to do the same layout without JavaScript? It should work at least in IE 8, Firefox 3.6, Chrome...

HTML: Play sounds on mouse hover or click

in my site i want to play tick\click like sounds on mouse over (hover) or on clicks... can it be achieved... we can do this in flash but i want to avoid flash ...

How to make static Dynamic pages ?

In MyBB forums you must have seen that all those threads are stoed as forum.com/Thread-Name-of-the-thread So now this is static right ? So now i have a site which has blog.com/search.php?=SEARCHED+TEXT So now how do i save this search so that Google can find out this page on my site ? Indirectly what i mean to say is how i can i make...

Create File Upload control using HTML controls

I am facing an issue with asp.net file upload control inside update panel. That is FileUploadControl.HasFile always return "true". Can we create a "file upload" control (which has "browse button") using html controls...and use it inside asp.net 2.0 ??? ...

In in WPF controls, which ones are similar to `<div>` HTML tag?

I need to wrap a group of WPF controls to that I can toggle their visibility at the same time. How can I do that? ...

Parsing HTML to return CSS rules from ids and classes attributes with PHP

Hi, I hate to have to write down a lot of CSS rules and then enter my styles in it, so I'd like to develop a tiny php script that would parse the HTML I'd pass to it and then return empty CSS rules. I decided to use PHP's DomDocument. The question is: How could I loop through the whole structure? (I saw that for example DomDocument on...

Can I define a view in eclipse which shows html files?

I wonder if there is a way to define a view in eclipse which can render and show html files or with other words a view which works like a browser! I mean a view for an eclipse plugin. For example if I can define a browser based on org.eclipse.swt.browser and associate it to viewcontentprovider? I don't want to open an html file wi...

Use javascript to alter submit link

hello there, ok so i have a script that when you click a link it dynamicly adds a form field is it possible to make it so when it is submitted it goes to "example.com?7" (7 because of 7 files) what i mean is if i click it 5 times and there are 5 file fields and i choose 5 files can i make the action link mysite.php?5 here is the script:...

Execute href of an anchor, but not "onclick" of underlying DIV?

See the code/HTML snipped below. I have an anchor with an "href" which is inside a DIV with an "onclick" event handler. If I click the anchor, the browser opens a new tab and the "onclick" gets executed. In case the user clicked the anchor, I want to supress the execution of "onclick". Returning "false" in an onclick of the anchor pevent...