html

libxml2 HTML parsing problems

I'm using libxml2 to parse HTML: static htmlSAXHandler simpleSAXHandlerStruct = { NULL, /* internalSubset */ NULL, /* isStandalone */ NULL, /* hasInternalSubset */ NULL, /* hasExternalSubset */ NULL, /* res...

How to insert HTML in MySQL DB using Java?

Hey Friends, How can we insert full HTML of a webpage into my table using Java? ...

Geo-location Help

Hi can anybody tell me what exactly i am doing wrong I cant seem to get either the success or fail function to run. function init(){; // Get the current location getPosition(); } function getPosition(){ navigator.geolocation.getCurrentPosition(success, fail); } function success(position) { alert("Your lat...

Working with HTML econding in PHP (intelligent way to decode)

Hi guys, from a PHP script I'm downloading a RSS feed like: $fp = fopen('http://news.google.es/news?cf=all&amp;ned=es_ve&amp;hl=es&amp;output=rss','r') or die('Error reading RSS data.'); The feed is an spanish news feed, after I downloaded the file I parsed all the info into one var that have only the content of the tag <descriptio...

Firefox link to javascript function opens a new window when not intended

Hey All, I have this problem where when I have this html in firefox it opens a new window <a style="float:right;" href='javascript:window.location.href="#";'onClick="javascript:addNewRecord();">New Record</a> I have tried self.location, window.location, #body, and #h1 as the href. Originally I had the code as, but in firefox that di...

Passing values to a php file via jQuery ajax problem

I have a contact form, the values of which I'm passing to a php page to save it to a text file. Somehow, it seems I cannot get the $_POSt values via ajax to save. What am I doing wrong? I am assuming something is wrong with my javascript code. Here is the jQuery: function checkForm(form) { var cssObj = { ...

Securing one particular file on the server; .htaccess good way of doing it?

I have a classifieds website. I as an administrator need to be able to remove classifieds as I wish... So I have created a very simple remove function which only requires the name of the classified. I plan on placing it on the server ONLY when I need to remove classifieds, so it wont be there unless I upload it and plan on using it. Th...

Detach element style from html

I have bulk of html file like this <div style="min-height: 32px; padding: 5px; width: 800px; margin: 50px auto; overflow: auto; font-size: 12px;" class="selectable clearfix selected_layer" id="wrap"> <div class="selectable" id="l1" style="float: left; min-width: 64px; min-height: 32px; padding: 5px; margin: 5px; overflow: auto; width: 2...

CSS margin problem

I am new to CSS, so please bear with me. I have this form which I'm trying to style. Everything works fine, except the confirmation label which is in a div. I want some space to be there between div.field, and while this works for all the input elements, it doesn't work for the label message which is at the bottom. I tried increasing mar...

Why is <br> a tag rather than an HTML entity?

Why indeed? Wouldn't be something like &br; more appropriate? ...

master submit buton that opens 5 independent tags

Possible Duplicate: I need a master button to open all buttons on my program how to create a submit button to open 5 onClick="this.form.cbox.checked=true; redirectOutput(this.form);" on independent tags or on independent windows? ...

File class object doesn't delete files when running in a server java

I've been working on my final programming class project, and I am stuck right now, I have to create an inventary for a company. I use textpad to write the code and the icarnegie workbench, to put the classes on it and run it, so the thing is that i have this servlet and from there I call the class called Delete, this class has various me...

PHP Class to Generate HTML?

Anyone know of any classes written for php that can clean up your code a bit? Something like, $htGen = new HTMLGenerator(); $htGen->newDOM('div', 'here is what goes in the div', 'optionalID', 'optionalClass'); Or does that just sound redundant? I end up with some complex looking mish-mashes of html and php sometimes that I feel co...

How to find all records which are NOT in this array? (MySql)

I have an array which contains a bunch of ID:s... I can't figure out how to write a query for finding all records which are NOT inside this array, in mysql. SELECT * FROM main_table WHERE .......... Any ideas? Thanks ...

HTML form with side by side input fields

I have a html form that is basically vertical but i really have no idea how to make two text fields on the same line. For example the following form below i want the First and Last name on the same line rather then one below the other. <form action="/users" method="post"><div style="margin:0;padding:0"> <div> ...

Fade out message after 10 seconds, clearing the input elements using jQuery

I'm displaying a message (#final_msg) after the user submits the form. What I want to do is that, after 15 seconds, the message (#final_msg) should fade out, clearing away [or fading out] the text in the input elements as well. Is it possible to do this? else { //create post data var postDat...

Solr How to delete all records EXCEPT ones in an array?

I have a SolrPhpClient which I use to communicate with Solr. I can make queries very easy, like: $solr->deleteByQuery("id: 12345") Anyways, I wonder if anybody out there know of a way to delete all records in a Solr index EXCEPT ones I have inside an array... Is this even possible... Thanks ...

HTML/CSS Positioning a logo to always be at the top left, no matter the screen size

Hi everybody, My question is a little hard to explain! Basically, I'm designing a website in HTML/CSS, and I need the logo to always be at the top left. On a windows machine, you can resize the browser from any side if I resize from the left hand side, my logo gets cut off. A good example of what I'm looking for is facebook, however yo...

jQuery background position animation clipping

I have three PNG's of bubbles that I'm using for a background animation with jQuery and also have the jQuery jPlayer running on the splash page. For some reason a portion of it clips. Has anyone else run into this problem? I am a bit of a jQuery beginner and I also can't seem to get the images to repeat horizontally 100%. Also the animat...

Creating a pagination function in PHP that exist in other class that generate the HTML

Hello, I need help creating a pagination function in PHP. I have created one that works great if it exist in the index page. I tried to put it in an PHP class it didn't work. Any help please. This is the code: function paging($eu,$limit,$back,$next,$nume,$t1) { $l=1; $i=0; echo $eu; //$ echo $limit; // maximum record p...