html

How can I disable the phpMyAdmin login page?

I use phpmyadmin, and when entering this adress: www.mydomain.com/phpmyadmin a login page appears. Is there any way of disabling it, so it doesn't appear/exist? Thanks ...

Fill SVG path element with a background-image

Is it possible to set a backgound-image for a svg path element? For instance, if I set the element's class to wall, the css style .wall {fill: red;} works, but .wall{background-image: url(wall.jpg)} does not, neither .wall {background-color: red;}. ...

How to obtain consistent javascript prompt string and innerHTML

I have a paragraph, which I would like to edit using javascript prompt function. All work ok while I didn't enter < or >. They looks good in html, but when I would like to edit them again, I see ugly &gt; and &lt; The issues can be easy reproduced via following scenario: press Edit-button, Enter string <<<>>>. press Edit-button again....

How to hyperlink android html assets when using chrome client?

I have a main page (main.html) in the assets folder that I am displaying with: webview.setWebChromeClient(new MyWebChromeClient()); webview.getSettings().setJavaScriptEnabled(true); webview.addJavascriptInterface(new VersionCallbackScript(), "demo"); webview.loadUrl("file:///android_asset/main.html"); and I want to put a link in the ...

Javascript/JQuery variables combined with GET variables in URL headache

I have a form, where a user selects a chart from the Google Graph API. These variables are submitted to the URL, via the GET method (this has to happen, I can't do POST). <form name="chart" method="get" > <select name="chartType" <option name="oMeter" value="http:\/\/chart.apis.google.com\/chart?chxl=0:|0|50|100&chxt=y...

Styling <select> tag for iPhone

When a select tag is used in a html page, is there a way to style the text size in the scroll wheel that shows on the iPhone? Linda ...

JQuery .html() question

Hey, I have a menu made with HTML, using a simple UL with lots of LIs. Each item contains a link with class "primary". When a list item (anywhere in a list item - not just the text) is clicked, jquery checks to see if the item contains a link with class "primary", and if so it loads the specified page into a hidden div (which I refer to...

The image's dimension is different from when it's loading and after it loads.

I have a page that loads a lot of fairly large images (about 200 of 100Kb images [about 600 x 400 px]). What I'm trying to do is manipulate the photo if it's in portrait, as opposed to landscape. The problem I'm experiencing is that when i use javascript to grab a portrait photo's properties when it's loading, the height is significa...

How to create a DIV inside another DIV?

I was trying to create DIVs inside div. But i am facing problem in centering the div. I followed http://stackoverflow.com/questions/114543/how-to-center-div-in-div Using the approach suggested in above question, the DIV was centered horizontally but not vertically. http://jsbin.com/oyemu4 For the time being i am using margin-top: ...

How to programmatically provide site structure and url path to Google search

Searching Stackoverflow on Google I get this result: Inspecting the HTML source of the Stack Overflow frontpage I can't find any reference of "A language-indipendent collaboratively edited question and answer site for programmers" stuff. I thought it was something related to meta description, but it is not true. Also, where the Log In...

View source of PHP, Javascript, and HTML?

I've got a .php file with javascript, php, and html. I want to include a button/link to view the source of the entire file "pretty printed", but I can't seem to get anything to work. What is the best way to do this? ...

Is this a bug in IE9 Beta?

I have something like this in my web forms: <input type="hidden" name="myField" value="defaultValue" /> Later on, in some Javascript, I am overwriting the default value before I submit the page to the server. var formField = document.getElementsByName("myField")[0]; formField.setAttribute("value", "myNewValue"); var form = document...

Cross-browser sizing of floated divs inside of floated divs

I'd like to get the following sizing behavior on a row of data. The 'abcd...' field is a variable size, and I'd like as much of it displayed as possible after all the other fields have taken up their required space. The '0123...' field is a variable size, and I'd like fully displayed right after the first field. The 'X' field is a know...

Is it possible to edit DOM elements that get loaded via an <iframe> with jQuery?

I have the following HTML code: <body> ... <div id="users"> <iframe src="http://control.intranet/userlist.php" height="100"> </div> ... </body> Where the //control.intranet/userlist.php loads a list of users from our intranet control panel. This list looks like this: <div class="user"> <span class="name">Boda Cydo<...

Why would you give a style tag an id

Hi have noticed a few sites that give the style tag an id such as: <style id=style-id></style> Can anyone explain firstly why you would do this and also the benefits of doin so? ...

How can I pass a parameter via submit button?

hi In my code for an mini online book store i have a following line repeating 5 times with different value for 'name' parameter <input name="JSP-2" type="submit" value="Buy"> On clicking the button Buy, the application redirects to a file buy.jsp where it gets the value of name and displays corresponding details of the book. In my...

Combining multiple SVGs to avoid HTTP requests

Hi, We all know CSS sprites - a method to combine multiple images into one and thus avoiding the need for many HTTP requests. However, I am using SVG, so, combining them into one is not as obvious. How would I accomplish this with SVG? Is it wise idea to put the SVG into the document at the bottom? What if it's an application and not a ...

How to dispaly image from MySQL table to PHP page in table format ?

I am working on image uploader in which the user uploads the image to the mysql database via a simple HTML/PHP form. It works, and now I want to retrieve the saved images from MySQL in a HTML table format. But I am not successful. I am very much a novice in PHP. I have attached the currently used code... can someone please help me creat...

resize images using % in css

I am trying to create a liquid web layout using % for as many things as i can. I have hit a bump when resizing images. both: <img src="source" style="width: 20%; height: 20%;"/> and .wall_picture_block img{ width: 20%; height: 20%; } don't work properly with the height attribte. They resize the image width to 20% of the container...

help with adding an url href

hello, i am confused about how i can add a link to the following code onReady: function() { new Ext.TabPanel({ fullscreen: true, type: 'dark', sortable: true, items: [{ title: 'Tab 1', html: '1', cls: 'card1' to be able to directly load a url when i click the...