Hi all,
I have written a file using html and javascript.
In that Vertical scrolling should be there, but i want to stop horizontal scrolling.
How can I do that?
Ok so I want to conditionally add this line of code;
<!--[if ! IE]> <embed src="logo.svg" type="image/svg+xml" /> <![endif]-->
Using:
document.getElementById("logo") .innerHTML='...';
In a if()/else() statement and it don't write it!
If i get rid of the selective comment ( <!--[if ! IE]><![endif]-->) and only put the SVG ( <embed src="logo.svg" type="image/svg+xml" /> ) it work! what should I do?
I found a way around but i think in the Android browser the thing will pop up twice.
here's what I've done ( and its Validated stuff!);
<!DOCTYPE html>
<html>
<head>
<META CHARSET="UTF-8">
<title>SVG Test</title>
<script type="text/javascript">
//<![CDATA[
onload=function()
{
var ua = navigator.userAgent.toLowerCase();
var isAndroid = ua.indexOf("android") > -1; //&& ua.indexOf("mobile");
if(isAndroid) {
document.getElementById("logo").innerHTML='<img src="fin_palais.png"/>';
}
}
//]]>
</script>
</head>
<body>
<div id="logo">
<!--[if lt IE 9]>
<img src="fin_palais.png"/>
<![endif]-->
<!--[if gte IE 9]><!-->
<embed src="fin_palais.svg" type="image/svg+xml" />
<!--<![endif]-->
</div>
</body>
i have a form with a capacha, if the capacha was entered wrong, after submit the page is doing a "history.go(-1)" and all fields include the capacha input are back on the screen
right now i have a js that clear that - but now that i need it in several places, i want to know if it possible to clear a form field after back with something related to the html form or what ever
thanks
i have used html in my java class and in one case i have used username.Username is a variable which gets values dynamically. in one case its value is 'rg@bg' but here instead of d name i m getting d url which it is directed to in my jsp. how do i ensure tht d value of username comes on d display page as it is.
i have tried "@"+username. didnt work
Given this HTML:
<div class="OpenIDSelector">some text</div>
Why does this JQuery selector match it on some browsers and some pages, but not on others?
$('.OpenIdSelector)
NOTE: I ran into this problem and solved it myself, but it was annoying and I didn't find it on StackOverflow already, so I'm posting it as a Q&A pair so someone else won't waste an hour like I did.
I have a window I'm opening with a Javascript function:
function newwindow()
{
window.open('link.html','','width=,height=,resizable=no');
}
I need it that once the new window opens that the focus returns to the original window.
How can I do that?
And where do I put the code - in the new window, or the old one?
Thanks!
I have two quantities Cat A , CatB
Now the items in Cat A can belong to many items in CatB.
and CatB will also have many Items from Cat A.
I thinking of having Table1 for Cat A , Table2 for CatB and Table C for relation ship.
with
PK-A , PK-B
Is that correct.
How should i make my form in html so that user can select multiple values.
Currently i am using select box
Any ideas
Please, have a look at: http://twitter.github.com/bootstrap/base-css.html
There are many examples like this one:
if you look closer to the block borders, you can see that the gray block is under the white one. Using the browser's developer tools you can see that both boxes have an inherited z-index: auto;
I can't reproduce this effect on my website (without using z-index).
So, my question is: Why is the gray block under the white one?
I have some rrdcgi scripts with HTML code which are used to show graphs on my webpage. When I try to run this script from webpage its fine and showing all details perfectly but when i execute this script from command line it shows below error and never returned to command line.
(offline mode: enter name=value pairs on standard input)
Can you please suggest me how can i execute these scripts from command line?
I know that it's not possible to style any given PHP but I do know that it is possible to style the output HTML that the PHP provides you with. I was wondering if there was any method available for me to use that would enable me to style the output from my IF ELSE statement.
if ($result != false) {
print "Your entry has successfully been entered into the blog.";
}
I dont think this is possible but maybe someone knows a way to achieve this. I want to attach an event to an html element to listen to attribute change. So say for instance that I want something to happen when a visibility of a div changes. The reason is that I have no control over the javascript that is switching the visibility, hence the need for an event.
Thanks
What is the best way (using HTML/CSS) to create an iTunes-style layout with the following features:
a left column with a fixed width but
fluid height (scrollbars for
overflow) (BLUE below)
a main content column with
fluid width and height (scrollbars for overflow) (RED below)
a bottom right
box with fixed width and height which
remains stuck to the bottom of the
browser? (GREEN below)
Here is an example:
I'm happy to use Javascript/JQuery if there really isn't a pure CSS solution.
Thanks!
this is my file :
mysite
templates
homepage.html
accounts
a.html
login_view.html
i can get the homepage.html and accounts\a.html on 127.0.0.1:8000
but in http://zjm1126.alwaysdata.net , i can only get the homepage.html ,and cant get
the account\a.html ,
this is my code :
return render_to_response('accounts/login_view.html')
and the accounts/login_view.html is :
{% include "accounts\a.html" %}
what can i do , thanks ,
I have an HTML table that contains lots of rows and columns. Therefore, it has vertical and horizontal scroll bars.
How can I get the dimensions in pixels of these scroll bars in Javascript/jQuerys ?
done some html code updates on my company's asp.net website and the above error appears.
i dont have a line 474 on the errored file.
this error only on IE, and not FF.
anybody?
How do I do the following in Perl in order:
a) curl a page and save it to a variable
b) parse the value of the variable (which is HTML content) for values I want (ex: the info is kept between tags like ... )
Just made a site using great standards compliant semantic HTML and CSS. It looks great in Gecko, Web Kit, but IE7 mangles it (of course). Any progress yet on this front, or do I have to go through a tonne of hacks as is standard with IE.
I have a django html form for address information. There is standard street, city, state/province, postal code, country fields. The country field is a drop down list. How can I make the state/province field a drop down list if the selected country is united states and a free form text box if the country is anything else?
I'd prefer not to have to do a round trip to the server so probably through jquery?
I have some text files with some useful data wrapped in between HTML tags like <td>, <span>, etc. I want to write a program which extracts the data in between the tags.
The text file contains other junk data too. I would also like to store these extracted data into SQL Table. Anyone who can guide me in right direction?
Is it possible to have a textarea with max length in html so that the max length will not be exceeded even when pasting text? I have yet to see anyone implement this correctly, being able to handle the paste event when right-clicking and selecting paste.
Hi,
in all browsers I've trid other than ms internet explorer,
I need to reload before my slider menu is visable..
could anyone shed some light!?
http://www.musical-transformations.com/gallery/index.html
Thanks,
I have an image tag that fires a jquery function using ajax, when clicked, to download images from another source to the server.
At the same time when the image is clicked it opens up a new tab and tries to load the image that is being downloaded. How can I make the link not open until the image is finished downloading to the server?
This is the html
<a target="_blank" href="link_to_full_image" \> <img src="link_to_thumbnail" border=0/></a>
I have 3 HTML combo/drop down boxes. All of them have a distinct name and id.
On a particular event I want to get the value of all three of them.
Can any one give me a code snippet for that?
I have a scenario where a user is emailing another user in an HTML based web app.
For the To: field, the user may select one of a pre-defined list of emails OR enter their own ignoring the pre-defined options.
What would be the best way of doing this from a UI point of view? I've looked at editable select boxes using jQuery but none seem to let you enter your own option.
Is there some other UI mechanism that would work here?