html

Can I make one row show at a time in a table?

I have a javascript function that toggles the display for rows in a table. The dilemma is that I would like to display one row at a time. What is a neat way to do this? function optionSelected() { var optionSelect = document.getElementById('ddlSelect'); var strTest = optionSelect.options[optionSelect.selectedIndex]...

How to get HTML with “JavaScript enabled”?

I would like to get the HTML code from a page with PHP. So I do this: $url = 'http://en.wikipedia.org/wiki/New_York_City'; $html = file_get_html($url); The problem is, Wikipedia doesn't send the <script> tag to the PHP request, so it doesn't show the JavaScript. I guess that's because Wikipedia sees that the "requester" doesn't have J...

InnerHtml works the first time, but not after PostBack

I have a web page with an empty div, id="PreAcquisitionDiv" runat="server" In the C# code-behind, on Page_Load, I build up a table and set it to PreAcquisitionDiv.InnerHtml My page displays OK. I cause a PostBack, intending to change the data in the table. In the code, the PreAcquisitionDiv.InnerHtml does change, but the table I put ...

JQuery: Slide left and slide right

Hello, First of all, I am not that much experienced with JQuery, i have seen slideUp and slideDown, what about are the functions/ways for sliding to left and right? Thanks ...

Logics of searching for "available hotel rooms" help needed

Say you have a website for users to search for "hotel rooms for rent". I don't know how the logics of current systems work, which is why I am asking you guys. I currently have two fields in the form: Date available from: //example 2010-04-01 // 1st april 2010 Date available to: //example 2010-05-01 // 1st may 2010 Then Submit!...

How to give control back to iframe window after it opens a popup

Hello Experts, I have a question on javascript window management. My application opens an iframe which displays a link. Clicking on the link, opens a popup window, in which I enter my login credentials. My intention is to close the popup window after the login credentials are entered. And this I have been able to achieve using a JS ...

Dynamic PDF Generation from HTML form tool

I would like to create a service that would take 2 fields (name & company name) from an HTML form and place it in a PDF document (a completion certificate that the user can print/save etc.) How would you recommend doing this? ...

Strange FIrefox input problem

Im having issues vertically positioning text inside of a text input field in Firefox. I have managed to get it to work in every browser except firefox: See how the 'Fwd:' text is crammed up against the top? I need to vertically center that inside the field. Here is my css: .subject { clear: right; font-family: Helvetica, Verdana, ...

Javascript InnerHTML Erases Data In Form Elements

I have this form with a button that allows you to add fields to the form. <form id="contact" name="contactForm" action="newPoll.php" method="post"> <fieldset> <legend>Create A Poll</legend><br style="clear:both;"> <ol> ...

Laptop settings resizing web page pushing divs 'off' the page - is there a way around this via code?

Hi, My boss is running a laptop which has a setting which is resizing font sizes and making them larger by about a third. This is fine but we have a java app running on the site and the div tags are being pushed off of the page because of the increase in font size. Is there a way to stop font being resized, via code? Thanks, R. ...

How can I loop through table rows to toggle the display style?

I would like to toggle the display row for a table in javascript. How do I do this? <script type="text/javascript" language="javascript"> function vehicleSelected() { var autoSelect = document.getElementById('vehicleSelect'); var strAuto = autoSelect.options[autoSelect.selectedIndex].value; ...

How to make people to see each other on the website through web camera?

I want to run a website where people could see each other through web camera. I can't find anything in google, so, can you give me any suggestions or link to tutorial? Thanks ...

Html table how to make all columns same height

I want to display 4 or 5 boxes(vary) which occupy's 100% of the page width, so it will span start to end of page. and want height just to fit contents. I am trying to use table for that so it will assign width for each box and fill up whole row. Problem with code below is all divs in td are centered and does not have same height. tried...

What's the best HTML attribute to use to store information for jQuery to parse?

Must Support IE6 and must Validate vs XHTML Strict 1.0! This is tricky to explain... I'm using a generic class name to initiate a plugin feature on an associated element. I also want to have options associated with the element stored in an attribute as well. <a href="url.com" class="popup" rel="900x900" >My Link</a> With this, jQue...

Dynamically Inserted DOM Elements are not Clickable using $.click()

I'm using jQuery to take the value of a form element and place it inside a list item tag. There is a maximum value of three list items (these are to become tags for an image). The problem is that i want people to be able to remove any erroneous tags they've entered by clicking on them, but the items (which are dynamically inserted into ...

Internet Explorer 8 table cell width bug with colspan set

I have the following html page: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <title>A title</title> </head> <body> <table style="width:...

Need to have fade out effect in Javascript

Hi, I am doing an Ajax call and on response I would like to hide a div. Right now, I am able to do it successfully, but that is kind of quick. I want some fade out effect on it. How to do it in one single shot? Here is my current code. var someDiv = document.getElementById(someId); someDiv.style.display="none"; Thank you very much i...

Using preg_replace

How would I replace all span tags (and whatevers inside them) that have the class pagenum pncolor with an empty line. str_replace wouldn't work because the name is different for all of them, so I assume I'd use preg_replace, but I'm sure how that works. <span class='pagenum pncolor'><a id='page_001' name='page_001'></a>001</span> <p>Som...

Can't set data property of an HTML object element with javascript

The following works in current Firefox (PDF loads), but not in current IE (page is blank). Any suggestions? <head> <script type="text/javascript"> function startup() { var bubba = document.getElementById('bubba'); bubba.data = 'http://server.qa/test.pdf'; } </script> </head> <body onload=...

webex interferes with web application

I received a complaint about buttons disappearing and odd formatting of a web application that I support. Upon troubleshooting, it seemed that the only thing new about the environment (which was previously working fine) was the installation of webex on the client machine. Uninstalling webex resolved the issue. Please mind that webex...