html

PHP-based graphing script recommendation

Can anyone recommend a easy to use php-based graphing script? I've been looking at PHPGraphLib but I imagine there tonnes out there. Commercial or GNU, doesn't matter. Only requirement is image based charts as these will be e-mailed/printed. (no flash) ...

Why not use javascript handlers on the body element?

As an answer to the question of 'How do you automatically set the focus to a textbox when a web page loads?', Espo suggests using <body onLoad="document.getElementById('<id>').focus();"> Ben Scheirman replies (without further explanation): Any javascript book will tell you not to put handlers on the body element like that Wh...

RegEx strip html tags problem

Hi, I've tried to strip html tags using regex replace with pattern "<[^>]*>" from word generated html that looks like this: <html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://...

Image viewport with zoom in Javascript

I want to display a huge image inside a viewport in a html page. I would like to be able to drag and drop the image to move it inside the viewport, like in Google Maps. Any library where I can find such component? Thanks in advance ...

extract part of html using tidy in php

hi, I want to extract particular part of HTML using tidy in php. the html page has table in it and i just want to fetch that table from html page. please help and post the solution.... Thanks ...

How to open multiple browser windows on request? (PHP)

So I have a form on PHP/HTML page. User submitss it to that same PHP/HTML page. So now PHP page I will have $_POST data. I want to when page is refreshed opnt some popUp browser windows which url's will be relative to users POST request. like www.example.com/bal-bla-bla.php? id=$_POST['StreamId'] ...

jQuery tooltips on a dynamically generated page.

Him I'm trying to add a jQuery tooltip to a dynamically generated list, the text I want to display the tooltip on is in a table, so my CSS tooltip doesn't work: CSS tooltip. I tried to add this jQuery tooltip to the page, it works on my local test page, but I think the problem has something to do with uniqur ids, and I'm not sure how t...

NULL parameter on javascript call to webservice

I've been following this example from IBM to call a java web service from javascript in an html page http://www.ibm.com/developerworks/webservices/library/ws-wsajax/ a small code snippet to show the communication with the webservice is: var call = new WS.Call('http://localhost:8080/MICE_Server/MapEditorService'); var nsuri = 'http://W...

How to grab a hidden fields value using PHP

I was wondering how can I grab the value from a hidden field using PHP?. Here is the hidden field. <input type="hidden" name="delete" value="' . $row['delete_id'] . '" /> ...

margin is not working properly in windows/IE

Hi All, I am using fedora/mozilla for my development enviorment. I am using margin: 0 auto; to align a content in a center but it's not working on windows/IE8. while it is working properly on All other browser for Fedora, Window, Mac. Regards, Salil Gaikwad ...

Number nested ordered lists in HTML

Hi I have a nested ordered list. <ol> <li>first</li> <li>second <ol> <li>second nested first element</li> <li>second nested secondelement</li> <li>second nested thirdelement</li> </ol> </li> <li>third</li> <li>fourth</li> </ol> Currently the nested elements start back from 1 again, e.g. first second secon...

Defining Form Input with Dialog

Hi. I want my php application to allow the user to select a file from their computer. I then want to store the file's path, but I don't want to upload the file. With the <input type="file" />, the file is uploaded, which would take too long. Is there a way to do this? Maybe if I change the input's type to text with jquery right before ...

How to make pop up blockers allow your popup windows?

How to make pop up blockers allow your popup windows? ...

How do you tell if your page is running in an iFrame in .Net?

I have an ASPX page that is sometimes loaded into an iFrame in my application and sometimes not. From the code behind how can you detect if your page is being loaded from an iFrame. ...

error wordpress, adjusted sidebar.php to show latest 10 posts

Hi, I'm trying to edit my sidebar.php file in my current them WP is using to display the last # of posts (only the titles) as links. I tried using the example of http://codex.wordpress.org/Integrating_WordPress_with_Your_Website but I always get the error on the line that states where the file wp-blog-header can be found. the error w...

Convert TD columns into TR rows

Hi, Is there a quick way to translate (using CSS or Javascript) a tables TD into TR, currently I have: A B C D 1 2 3 4 and I want to translate to: A 1 B 2 C 3 D 4 ?? ...

html: &copy; doesn't show

when i wrote &copy; in my page it doesn't show the copyright symbol, and show the point instead, just . it shows. maybe you know why? thanks ...

IE Display Bug, jQuery bug

So I built some complex ajaxy jquery module on my homepage, with the help of "scrollable" from flowplayer.org. It works fine for me on Chrome, Opera, Firefox ... but of course IE is not playing friendly (regardless of the version, from my testing). Objects are not displaying exactly where they should, some are overlaying each other, an...

Prevent comment form re-submission

I'm got a comment form for an article and i'd to prevent re-submission. I notice that Worpdress handles this very well (going back doesn't cause the browser to request a form re-submission), but I can't figure out how they do it, even though our methods are very similar. My Script User visits mydomain.com/article/1/article_title.html ...

How can you determine what font from the CSS stack is being used?

I use Firebug avidly and in the CSS-"computed" tab it will only show me the declared stack, but not which font has actually been used by the browser. Aside from removing fonts one-by-one and looking for a change (or having amazing font recognition skills) is there a way to determine what font has actually been rendered by the browser? ...