Hey guys,
I'm using http://softwaremaniacs.org/soft/highlight/en/ to Syntax highlight HTML. I've got a php loop pulling code from a wordpress. I'm using the pre / code tags in my code and the following loop to pull the code from wordpress.
<?php while (have_posts()) : the_post(); ?>
<p><i><?php the_date(); echo "<br />"; ?> </p></i>
<...
I have an anchor tag
<a href="#" onclick="Register();" >Register</a>
If you don't have a href in you anchor, it can screw up some stuff, but I don't need to redirect, just call a js function. When this link is clicked however, the href="#" causes it to scroll the page to the top. How do I prevent that from happening?
...
I am having the following HTML file protected through JavaScript.
It works fine with Firefox, howover, when it is opened with IE, the JavaScript seems not get invoked. The grading.pdf is directly displayed after clicking the hyperlink.
<HTML>
<HEAD>
<TITLE>JavaScript Example 8</TITLE>
<SCRIPT language="JavaScript">
<!--------
var pa...
I have a large JPEG image about 3500 x 2500 pixels and 4 MB size.
I want to display this image in a HTML page so that it takes about 3/4 of the screen,
and also compress it, so that it loads quickly, but without compromising the quality too much.
Is this feasible ?
...
Hi everyone,
I want a regex which will replace the long url with ..., for example,
I pass in a string with url in it, i.e
<a href="http://www.abc.com/thisSite/myPages/blah-blah-blah.aspx">http://www.abc.com/thisSite/myPages/blah-blah-blah.aspx</a>
should be converted to
<a href="http://www.abc.com/thisSite/myPages/blah-bl...
My real question was why does the JSON fire when the page loads? I only want this to go off when the 'submit' button is pressed.
if (isset($_POST['submit'])) // if page is not submitted to itself echo the form
{
if(!$valid_zip){$error_str .= "The zip code you enter must be in the form of '99999' or '99999-9999'\n";}
if(!$valid_phone...
Hi
I am working on a site specific to the iphone community. Having read few articles on the net, regarding css for the iphone safari browser I learnt to use the following code:
<!--[if !IE]>-->
<link type="text/css" rel="stylesheet" media="only screen and (max-device-width: 480px)" href="iPhone.css">
<!--<![endif]-->
However when I us...
I need to trigger a form submit event when any form value changes and all the fields in the form are filled. Everything in this works apart from the $('#date_filter_form').submit(); line. I can .hide() the form but can't submit() it for some reason. Documentation says submit() is the same as trigger('submit') so I can't figure out why it...
I am trying to create a button using CSS Gradients plus a icon that goes on top of the gradient. I tried 2 ways and both was a failure.
First:
.btn {
background: -webkit-gradient(linear, 0% 0%, 0% 89%, from(#3171CA), to(#15396F));
background: url(../images/btn.png);
}
I should of knew that wouldn't of worked! But I also heard...
This is what I am trying to do: Once submit a form on my main JSP/HTML page a new page with some link opens. When I click on any of the link the link should open in the parent Window. I.e the Window I started from. How do i do this?
...
Hi everyone, I create website in html and also develop a chatting site in joomsocial community using joomla in same domain.but i dnt no how to integrate joomsocial login form in html page.Plz help me.
...
are there build in functions in latest versions of php specially designed to aid in this task ?
...
Hello,
I have a query invoice which only updates the total values when a field is altered. As I am generating the invoice items using PHP I really need the values to update as soon as the HTML is generated.
How can I call the update_total function the moment the document has finished rendering?
Thanks,
Tim
...
The following code should (?) position #inner1 and #inner2 at the same spot, or shouldn't it?
Anyway, the #inner1 and #inner2 are positioned differently, despite having same parent. How to fix this (position at the same location)?
<html>
<head>
<style>
div {border:1px dotted}
#main {width:800px;height:600px;position:absolute;}
#outer {...
I have a table like this:
<table>
<caption>Caption:</caption>
<thead>
<tr>
<td style="width: 65%;">A</td>
<td class="center" style="width: 5%;">B</td>
<td style="width: 15%;">C</td>
<td style="width: 15%;">D</td>
</tr>
</...
How can I split a long word/url at a certain point when displaying it in a html div?
It should be like:
thisisareallylongwordt
hatneedstobebroken her
e or something like th
at.
...
In my Web Application, i have a data table(Displayed from DB using PreparedStatement). Each row have an edit button. A form is situated below the table. If i click edit button, the data from the row will be filled into the form. So, that i can edit and save it.
Or, i can enter new data in the form and a add new row. The issue is the "S...
How to disable month end Days like 30,31, 28(feb), 29 feb(leep year)? in js calender
...
I have a normal search box on my webpage. It is filled with text: Search this website
This text is removed when you click into the box to type your search query:
onfocus="if(this.value=='Search this website') { this.value=''};
But how can I detect when someone drags text from the page onto the search box, as I often do myself? onfocu...