Hi, im trying to upload HTML into a database which does work for some files but not all.
my $fileContents;
if( $md5Con =~ m/\.php$/g ) {
my $ftp = Net::FTP->new($DB_ftpserver, Debug => 0) or die "Cannot connect to some.host.name: $@";
$ftp->login($DB_ftpuser, $DB_ftppass) or die "Cannot login ", $ftp->message;
ftp->get("/" ....
All,
How to make the div more presentable in the below code.
i.e, on mouseover the div should look like as same as title attribute or even better
And the text on it should also look presentable
<style type="text/css">
#div1 { width: 200px; height: 30px; background-color: #a9a9a9; color: #fff; position: absolute; }
</style>
<script sr...
So I have a website and I'm using a basic menu located at the top right corner of the screen. It's links are as follows:
| Home | Blog | Results | Pictures | Our Location |
Form time to time I need to add a new link to the menu or change where one of the links points to. This means that on every page that the menu exist I must manuall...
I have this code for listing mysql records and putting it into a table according to the address inputted. My problem is, how to do just the same but this time, making use of textboxes to project the contents of the record corresponding to the same data inputted.
I'm just a beginner with no talent. Maybe you could give me some idea on ho...
So I have a menu in a php file that looks like this (This is the whole file. I'm totally new to PHP.)
menu.php:
<li id="current"><a href="#"><span>Home</span></a></li>
<li><a href="http://blog.me.net/"><span>Blog</span></a></li>
<li><a href="http://www.me.net/R"><span>Results</span></a>...
WordPress spits posts in this format:
<h2>Some header</h>
<p>First paragraph of the post</p>
<p>Second paragraph of the post</p>
etc.
To get my cool styling on the first paragraph (it's one of those things that looks good only sparingly) I need to hook into the get_posts function to filter its output with a preg_replace.
The goal is ...
I have a standard html drop down box.
I want to run js code after the user selected an item without a separate submit button.
Onchange event does not fire when the user selects the 1st item (actually the previously selected item) in the select box.
How can I make the combo box react to the click even if the previously selected item is...
Hi,
Have a query based on the following CSS and HTML code (see below)
I have a background image that spans the whole browser page (left to right), which is not what I'm after.
How can I get the background image to stay within the boundaries of my main content canvas, i.e.centered 850x600px and anything outside just be white?
Thanks.
...
This works fine in Webkit, but when I go to Firefox (Or IE8) it totally messed up. I've been staring at this for so long that I can't find any errors at all with it, so maybe one of you guys can point out where I'm going wrong.
CSS:
body {
font-family: Georgia, serif;
margin: 0px;
padding: 0px;
background: #222;
}
hea...
will it get "laggy" if i fetch 1 million link elements and put it in the DOM.
cause i want a navigation list on top..its kinda like the one Apple's got on their site and you can scroll left or right with your keyboard. the only difference is that the center image will be get larger in size compared to the others.
the link elements will...
Is there a general best practice for creating somewhat complex HTML elements in jQuery? I've tried a few different ways.
First I tried using createElement and chaining alot of those together with AppendTo and the like:
var badge = $(document.createElement("div")).attr("class", "wrapper1").appendTo("body");
$(document.createElement("div...
I'm having issues with this page in Chrome:
http://www.pieterdedecker.be/index.htm
For those of you that don't have Chrome, here's what happens:
How can I fix this glitch?
...
Hello,
I want to add helpful text (in javascript WITHOUT ANY FRAMEWORK USE) in input fields text and textarea something like this but dont know what its called
As it is used in me.com but I dont want to submit the values that are used as helpers.
Sorry for bad english.
Thank You.
...
Hi all, hopefully a simple question here.
I'm running a Wordpress blog that has a bunch of links to different cities, which point to a location on a Google map.
My current setup involves having an iframe for each link, and that iframe pops up in a thickbox when it is clicked.
Now that my list of cities has grown, I have many, many ifr...
All,
On some mouse over, div1 is displayed.How to display the div next to the mouse pointer so that even mouseover at the end of the context the div should show up next to the mouse pointer.
<style type="text/css">
#div1 { width: 200px; height: 30px; background-color: #a9a9a9; color: #fff; position: absolute; }
</style>
<script src="jq...
I'm making a vertical navigation menu using css and jquery to make the submenus hidden by default but clicking on a menu item expands it to show the submenus.
<div id="navmenu">
<ul id="menu">
<li><a href="welcome.html" target="content">Welcome</a>
<ul class="hide">
<li><a href="other.php" target="content">blank</a> </li> ...
I'm looking for a free substitute for a library called Awesomium, that would allow me to display a local html page on top of a rendered openGL scene, such that the user could interact with the webpage (ie. click buttons), but also interact with the scene, when the mouse is no longer on top of the web page window.
Any suggestions? Or any...
What is the CSS code to do a page break when printing? Or better yet, is there some print CSS framework like JQuery is to web page DOM manipulation? I need to print web pages with control like Adobe PDF, but without using a third party plug-in. Prints need to be precise, like controlling what pixels hit the top of each page, (if we wa...
Hi everone! I need to parse an HTML file and i've got something like this:
<TAG1>
<TAG1>
TEXT_TO_FIND
KEY
<TAG1>
</TAG1>
<TAG1>
</TAG1>
</TAG1>
</TAG1>
Taking into account that there are multiple levels of anidation. How can I get the text TEXT_TO_FIND?
In plain english, what I ...
All,
How to Position the following div relative to mouse position so that the mouse and div are not out ofsync at theend of the page.May be just like a tooltip which always sjows the perfect position at the end of the page..
<style type="text/css">
#div1 { width: 200px; height: 30px; background-color: #a9a9a9; color: #fff; position: ab...