html

Styling the Highlighting in CSS

Is it possible to change the background color and foreground color (or text color) of the highlighted portion in a HTML page? In another words, customize the hightlighting of our Webpage ...

Rest / HTML - If server stops detect if server starts again?

Something I am playing with at the moment is a Rest / HTML page that dynamically updates via JSON calls. Now in the case that I want this to run on as low a bandwidth as possible. So if the server is shut down, then booted up again I want the updates to continue again in most cases this works some cases parts of the javascript won't wo...

On changing an image source to the source of another image with jquery.

Should the following code not work? $('.elastica').click(function(){ document.getElementById('bigimage').attr('src')= $(this).attr('src'); }); It doesn't change a thing on the site. I've also tried this outputting the image location trough the the other image's id, but it comes up empty (literally ""). When I output the other imag...

html to pdf in java code.

HI all, do we have code in java that can generate html content to pdf file and sends back browser. please help out if there is anything that i can use to do it Thanks kumar kasimala ...

Problem with padding a table row

<html> <head> <title>Table Row Padding Issue</title> <style type="text/css"> tr { padding: 20px; } </style> </head> <body> <table> <tbody> <tr> <td> <h2>Lorem Ipsum</h2> ...

How can I observe the existence of a file with ajax live?

I want to observe the existence of a file with ajax. At the moment I have a refresh button, I have to press to refresh the status. I want to automate this refresh. ...

Replace with JQuery

Hi Im trying to replace some html with Jquery, this is what I got so far. $(".old").html($(".new").html()); This almost work. Only that the .new is being copied, instead of replacing. I wan't to Cut/Paste instead of Copy/Paste ...

change the cursor point as zoom in and zoom out symbol

hi i want to know how to change the cursor point to zoom in and zoom out symbol. i know how to change the cursot point as busy,wait and etc., document.manual_production.style.cursor='wait'; but i dont know, the cursont point for zoom in and zoom out. oh ok i got it by this way document.manual_production.image1.style.cursor='-moz-zoo...

Undue Br tag Is adding In Table Html

I have a user interface where I'm toggling between HTML markup view and rendered view. An HTML Editor. Using Javascript I have set that if anyone types any word and presses enter and then types another word then it should render as two lines. In HTML view this is an inserted <BR> tag as per my expectation. But when we insert a table wi...

PHP contact form: can I take the value of a span instead of an input?

Hi, I'm setting up a contact form, but I have some saved information in some spans (It's an ecommerce shopping basket) and the built in checkout is awful so we're just slapping together an easy solution: turn it into an email form and email us the order instead of losing customers. Anyway, can I use the info in the span, taking the id ...

How To Reload A iframe Using jQuery

I've created a basic browser within a browser window using an iframe: The purpose is to allow mouse-over styling of elements using jquery ie/ highlight all links red etc... change font etc.. I've created two files: browser.php <html> <head> <title></title> <style> #netframe { float:right; ...

How to make an addon like Firebug?

Hello Experts I am basically a dotnet developer(beginner). I need to make an IE addon just like Firebug in Firefox. I need HTML and CSS features of Firebug, don't need the other features. I would like to know where should I start with and which platform should I choose. I would prefer dotnet, but if not possible can go for others as wel...

Removing a DOM element using jQuery not working

Hi guys, I'll get straight to the point, I am using jQuery to clone a div element, which has a span within it to which I have binded a click event that when triggered removes the just cloned section from the DOM, now the first section works ok, but for some reason it won't remove the cloned sections once they are created, here is my code...

How do I create a HORIZONTAL menu in a CGI Perl program?

I have a CGI page Login.cgi with a form where I need to enter the valid password and it would then redirect to another page called Main.cgi. In this page I want a HORIZONTAL menu with UsersList, Logs, Logout etc. like the menu on this page with Questions, Tags, Users etc. When I point the mouse on it then it should give the list of users...

asp-net MVC2: <div> tag - "float: left;" - Problem?!

Problem with <div> tags Works fine: Text "Whatever" is in column 1, followd by a radiobutton: Works also fine (no radio button with text): The next cell AFTER the text "Whatever" should be displayed in column 1 of the next row - instead directly under the text. Background: The table structure is made by my html helper. He genera...

problem with capturing xml response from webservice and appending it to div tags

This is my code on html page which references to webservice which is in local application folder. Can anyone help to resolve this issue var keyword2 = "{\"keyword1\":\"" + keyword1 + "\",\"streetname\":\"" + address1 + "\",\"lat\":\"" + lat + "\",\"lng\":\"" + lng + "\",\"radius\":\"" + radius + "\"}"; $.ajax({ ...

How to block if JS download is not completed

I am downloading the JS file asynchronously by appending the JS file to HTML head. Now in html body, before using the JS file, I want to check if JS file has downloaded and is present in the cache. If the JS file is NOT present in the cache(e.g: in case of slow internet connnections), I want to block until it is downloaded. In other word...

setting a property that has only a getter js error

i have the following div structure with respective ids : <div id="border_1" class="track_mc01302 track_01_mc01302"> <img id="_img" /> <div id="border"></div> </div> but when i click on the parent div an error is encountered which says : setting a property that has only a getter i have written listener for keyboard press event...

Is it better practice to add the file extension to an "href" value?

If I have a very simple http directory: default.html info.html contact.html etc... Should default.html link to the other files in the directory, I've always been able to simply use an anchor tag thus: <a href="contact" target="_self">Contact me!</a> Will this always work, assuming that there is only one file in the directory wi...

sqlite-fts3: custom tokenizer?

Does anyone here have experience with writing custom FTS3 (the full-text-search extension) tokenizers? I'm looking for a tokenizer that will ignore HTML tags. Thanks. ...