Hi,
I have an ordered list in HTML.
I would like to add styling only to the numbers (1,2,3,...), and not to the list items themselves.
Is there a way to refer to these numbers ?
Thanks !
I have the following problem. I have a webservice, which accepts a post request with some json data in the request body and which also returns Json data.
Now I want to build a user friendly HTML page to test this service. I have a form to fill in data, when the user clicks the button, the JSON should be build from the form data and POSTed to my webservice, the response should be displayed to the user. How do I achieve that?
#exceptions is a html table. I try to run the code below, but it doesn't remove the table row.
$('#exceptions').find('tr').each(function(){
var flag=false;
var val = 'excalibur';
$(this).find('td').each(function(){
if($(this).text().toLowerCase() == val)
flag = true;
});
if(flag)
$(this).parent().remove($(this));
});
What is the correct way to do it?
hey Guys,
I need to run a string of html through a regex function that checks to see if the attributes are closed in quotes, and if they aren't then close them.
for example i want
<img src=http://www.domain.com/image.gif border=0>
to turn into
<img src='http://www.domain.com/image.gif' border='0'>
Can anyone help me?
hi when i write css or html i found that i want add two name like this
web-development
web_development
which one is better according SEO or write style name, file name or image name.
I'm trying to clean some html text with javascript, there are white spaces included before and after some words (text is poorly formatted).
Currently I have this regex:
$("#" + target + " *").replaceText(/([\S][\u05B0-\u05C4]*)/gi, '<span class="marked">$1<\/span>');
This will capture all the non white-space characters and wrap them in a span element, but will not capture spaces between words (I need the span).
How would you solve this?
I used it before, and was reminded of it when someone asked about a tool to strip unsused CSS from a stylsheet.
I went back to the link, but it's gone, what happened to it? Is it gone forever or does anyone know of a backup? Or a similar tool that can still check your CSS against the HTML and strip orphan CSS.
Thanks.
Link (to broken site for reference).
Is it possible to have a bunch of <select> dropdowns in html that only display a small (say 10 pixels wide) icon, but when you click it the drop down has a list with the icons beside a descriptive string. (Let's see if ASCII art works on SO):
[X]
| X - Disable |
| v/ - Enable |
| O - Ignore |
+-------------+
[O]
[v]
[X]
Can that be done in CSS? Or in jQuery?
Try running the code, I know the problem is in the 1. part.
Thanks in advance,
P.S. I'm a newbie in JS.
<html>
<head>
<script>
{
//1. part
var Cookies = "";
function createCookie(name,value,days) {
if (days) {
var date = new Date();
date.setTime(date.getTime()+(days*24*60*60*1000));
var expires = "; expires="+date.toGMTString();
}
else var expires = "";
document.cookie = name+"="+value+expires+"; path=/";
}
function readCookie(name) {
var nameEQ = name + "=";
var ca = document.cookie.split(';');
for(var i=0;i < ca.length;i++) {
var c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
}
return null;
}
function eraseCookie(name) {
createCookie(name,"",-1);
}
//2. part
function saveIt(name) {
var x = document.forms['cookieform'].cookievalue.value;
if (!x)
alert('Please fill in a value in the input box.');
else {
Cookies.create(name,x,7);
alert('Cookie created');
}
}
function readIt(name) {
alert('The value of the cookie is ' + Cookies[name]);
}
function eraseIt(name) {
Cookies.erase(name);
alert('Cookie erased');
}
function init() {
for (var i=1;i<3;i++) {
var x = Cookies['ppkcookie' + i];
if (x) alert('Cookie ppkcookie' + i + '\nthat you set on a previous visit, is still active.\nIts value is ' + x);
}
}
}
</script>
<body>
<form name = "forma">
<input type = "text" name = "cookievalue">
<input type = "button" value = "Spremi" onClick = "saveIt('ppkcookie1')">
<input type = "button" value = "Ispisi" onClick = "readIt('ppkcookie1')">
</form>
</body>
</html>
The CSS Grammer as following works well under firefox but doesn't work under IE browser,Why and how to let the css only be affect on the elemnts directly under the parent element?
CSS:
div{font:18px}
.boxdivdiv{font:12px;}
--------------------------
--
HTML:
level1
level2
level3
level3
level2
level3
level3
Hello,
I've to create a static web site, only .html files.
Each page will have the same layout.
I need a kind of template engine or a tool to generate about 200pages with minimal efforts...
only the body of the page will be different
Any ideas?
Thanks
Hi all,
I want to know is there any option/work sround for $_SERVER['HTTP_REFERER']. Because 'HTTP_REFERER' can not be trusted.
Then What is other way to know that from which url the request has came from?.
Here is the situation -
http:// abc.com/one.htmlwill have an iframe having src=http:// xyz.com/giv.php?param=1.
How giv.php on xyz.com will know that request is coming from http:// abc.com/one.html?
hi, i want to convert a swf to image on my website. a user makes some changes on the stage and if he press a button "get image link", the swf stage will be converted to an image and its image link will appear within a box. like imageshack.. so user can use it in forums as image. how can i do this? i even dont know it is about flash or html...
This might seem like a bit of a design/css question but i really need some help.
This is the page http://library.permilia.com/Gavin/version2.0_beta/lead.html
It works on every browsers imaginable except chrome.
By it works i mean it applies a class .error that sets the borders to 1px solid #f00 which is a red border. In chrome for some reason you cannot change it no matter what!
Anybody got any ideas?
I have a list of items sorted alphabetically:
list = [a,b,c,d,e,f,g,h,i,j]
I'm able to output the list in an html table horizonally like so:
| a , b , c , d |
| e , f , g , h |
| i , j , , |
What's the algorithm to create the table vertically like this:
| a , d , g , j |
| b , e , h , |
| c , f , i , |
I'm using python, but your answer can be in any language or even pseudocode.
Thanks
I made a facebook content locker(PHP + HTML + JAVA) for my website, so to access the site user must press the 'facebook share "in the middle of the screen.After pressing this button, it opens facebook pop-up and user can share or NOT my link because locker disappear in 30 seconds since clicked on this button(so I put it).
Is there any possibility, any function that content locker disappear only after the user has actually given share in facebook pop-up window,I mean after my site address appears on facebook ?
Thanks a lot
i need a regular expressions string to get all anchor tags in a page with a specific css class name, in c#/vb.net
this is what i got so far
"<a.*?href=""(.*?)"".*?>(.*?)</a>"
but my attempts to add "class=name" isnt working, also is it possible to find links where the class name appears either before or after the href with one expression ?
i am familiar with 3rd party html libraries, but thats an overkill for what i have in mind, so is the webbrowser control.
I have HTML content stored in a variable. How do I extract data that is found between a set of common tags in the page? For example, I am interested in the data (represented by DATA kept between a set of tags which one line after the other:
...
<td class="jumlah">*DATA*</td>
<td class="ud"><a href="">*DATA*</a></td>
...
I have created a html page in php and upon submission i validates that page using PHP. After validating i want to show an alert msg to show its status like showing any greeting or request for re-enter.
I have dont validation. Now i m using
header( 'Location: http://localhost/assignment/WebForm.htm' ) ;
to redirect user to same page but with a alert msg at page load or something like that. What I need to do ?
There is a page with drop-down menu "Products" overlapped by next content in IE.
It works fine under Gecko or Webkit browsers.
http://orbitscripts.com/easily-manage-advertising-across-all-of-your-websites.html
z-index property makes no sence.
I have no solutions yet.
Thanx in advance
I need to hide a column as well as other elements when my page is printed , and in order to do that I have a print style sheet, everything works fine, except for the column I want to make disappear, the strange thing is that my stylesheet works in IE , but it didn't in Mozilla and chrome, why's that?
Html code
<col width="10%" class="art-editcolumn"/>
and here's the CSS class:
.art-editcolumn
{
display: none;
}
Hope you can help me out with this.
It's been a long day of designing and I ran into a problem today. The website www.dcninc.com/newtest/security_testing.php is a new design I'm working on at work right now.
If you view it in Firefox you will notice there is no padding on the 2 right boxes (I did that on purpose to trouble shoot my problem) However if you view that same page in IE, it adds padding to the right side. Here is my CSS and HTML below.
http://pastebin.com/hRxZp9ub
http://pastebin.com/YwSYn7ti
How can I get my footer to be at the bottom of the container, after everything in main?
Here's the site: (It's fine on the homepage, but not on any of the others)
http://dl.dropbox.com/u/122695/ds/index.html