<%# Page Language="C#" AutoEventWireup="true" CodeFile="Test.aspx.cs" Inherits="Test" %>
<%# Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<link href="StyleSheet.css" rel="stylesheet" type="text/css" />
<link href="Styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<asp:scriptmanager ID="sc1" runat="server"></asp:scriptmanager>
<asp:LinkButton ID="LinkButton1" runat="server" CssClass="links"
Visible="true">LinkButtonABCDEFGHIJKLMNOPQRSTUVWXYZ</asp:LinkButton>
<asp:Panel ID="Panel1" runat="server" Width="100%" Height="100%" style="display:none;">
Display text.
</asp:Panel>
<cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server"
TargetControlID="Panel1" PopupControlID="LinkButton1">
</cc1:ModalPopupExtender>
</form>
This is my code. I have tried on IE8, chrome, Safari and in all three as the page loads the LinkButton just disappears. Am I doing something wrong there?
I don't know whether I remember correctly, but your TargetControlID should be your LinkButton which should activate the popup. There is some convention to do so. I read the book Asp.net Ajax in Action, where it was described. Unfortunately I don't remember why. Your PopupControlID should be the panel.
So I guess it should look like
<asp:LinkButton ID="LinkButton1" runat="server" CssClass="links"
Visible="true">LinkButtonABCDEFGHIJKLMNOPQRSTUVWXYZ</asp:LinkButton>
<asp:Panel ID="Panel1" runat="server" Width="100%" Height="100%" style="display:none;">
</asp:Panel>
<cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server"
TargetControlID="LinkButton1" PopupControlID="Panel1">
</cc1:ModalPopupExtender>
Take a look at the sample here.
You want to set PopupControlID="LinkButton1"
You don't have anything defined within your Panel btw. Your panel has no content.
you want to put:
<asp:Panel>
Some Stuff
</asp:Panel>
Related
I have add all necessaries dependenceis and the lib was add in my file jsp.
So I don't know what else to do. Can anyone help me?
<%# page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%# taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%# taglib uri="http://www.springframework.ortitle hereg/tags/form" prefix="form"%>
<%# taglib uri="http://www.springframework.org/tags" prefix="s" %>
<html>
head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<form:form action="/casadocodigo/produtos" method="post"
commandName="produto">
<div>
<label>Titulo</label>
<input type="text" name="titulo">
<form:erros path="titulo"/>
</div>
u added head tag like this 'head>' in jsp
change it to '' and try again
I am trying to generate a barcode, using ShieldUI for Wicket.
For the barcode, I also need to display the text.
I am trying to set the size of the text, but the output is not good, the barcode somehow overflows of setting the text size.
Barcode barcode = new Barcode(fieldName);
BarcodeOptions options = barcode.getOptions();
options.setValue("123456");
options.setType(BarcodeOptions.Type.CODE_128);
options.setHeight(30);
options.setWidth(120);
options.text.enabled=true;
options.text.style.setFontSize("8"); //if I remove this, the barcode
//shows ok, but the textsize is not the one that I desire
item.add(barcode);
Here is the HTML:
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:wicket="http://wicket.apache.org/" lang="en" xml:lang="en">
<head>
<meta charset="utf-8" />
<link rel="stylesheet" type="text/css"
href="egp/css/shieldui-all.min.css" />
<script type="text/javascript" src="egp/js/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="egp/js/shieldui-all.min.js"></script>
<script type="text/javascript" src="egp/js/shieldui-barcode.min.js"></script>
<wicket:head>
</wicket:head>
</head>
<body>
<table wicket:id="forEach">
<tr>
<td>
<div
wicket:id="barcode">
</div>
</td>
</tr>
</table>
</body>
</html>
This is the result:
Click to see the image
I have also noticed that problem and reported to ShieldUI. They have uploaded a fix. The problem was fixed by changing fontSize from string to integer. Probably you need to download latest version and test.
I am new to html and css. I was trying to create a test Image Gallery to check how fancy box works. I followed all the instructions from youtube and other sites but still I am not able to get the thing to work.
All the required files were loaded.
I apologise for what most may feel is a really simple question. But this is my first attempt so please bear with me.
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Untitled Document</title>
<link href="test.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
<link rel="stylesheet" href="/fancybox/source/jquery.fancybox.css" type="text/css" media="screen" />
<script type="text/javascript" src="/fancybox/source/jquery.fancybox.pack.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$(".fancybox").fancybox();
});
</script>
</head>
<body>
<div id="container">
<div id="title">Gallery </div>
<div class="gallery">
<ul>
<li><a class="fancybox" rel="group" href="Images/Gallery/ls/image1"><img src="Images/Gallery/ts/image1"></a></li>
<li><a class="fancybox" rel="group" href="Images/Gallery/ls/image4"><img src="Images/Gallery/ts/image4"></a></li>
</ul>
<ul>
<li><a class="fancybox" rel="group" href="Images/Gallery/ls/image6"><img src="Images/Gallery/ts/image6"></a></li>
<li><a class="fancybox" rel="group" href="Images/Gallery/ls/image8"><img src="Images/Gallery/ts/image8"></a></li>
</ul>
</div>
<div id="footer">footer text</div>
</div>
</body>
</html>
I'm having problems with my HTML and jQuery Code. I was wondering if someone could tell me what's wrong with it. Here's the code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Main Page</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Scripts -->
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.1.0-rc.1/jquery.mobile-1.1.0-rc.1.min.js"></script>
<!-- Stylesheets -->
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.0-rc.1/jquery.mobile-1.1.0-rc.1.min.css" />
<!-- Color Scheme -->
<!-- Beige: #eee8cd; Green: #008b8b; Blue: #203471; -->
</head>
<body>
<div id="MainPage" style="background:#008b8b;color:#203471" data-role="page">
<div style="background:#008b8b;color:#203471" data-role="content">
<p style="background:#008b8b;color:#203471"><img alt="" src="Images/Header.png" style="width:100%" /></p>
<p style="background:#008b8b;color:#eee8cd">The content for the main page is here</p>
<a style="background:#eee8cd;color:#203471" href="AboutUs.htm" data-role="button">About Us</a>
<a style="background:#eee8cd;color:#203471" href="ContactUs.htm" data-role="button">Contact Us</a>
</div>
<div style="background:#203471;color:#eee8cd" data-role="footer">
<h4>Main Page Footer</h4>
</div>
</div>
</body>
</html>
There are two problems that I am having problems figuring out:
1) When I put this code on my web server and navigate to it via my iPhone it is fine when the phone is held in the vertical position. When the phone is moved into the horizontal position though, the buttons seem to be displayed over the text and are not workable. Any ideas on how to resolve this?
2) I tried to create a custom stylesheet.css and link to it via the class attribute of the various tags. This would not work so I had to put the inline code (for example:)
<div style="background:#203471;color:#eee8cd"
Can someone show me how to create a stylesheet.css with these attributes and "tag" them in the HTML so that this works?
Thanks So Much.
Well, you've got a link to jQuery where your link to your CSS should go. Check out www.codecademy.com !
I've separated inline css to its own and seems to render fine.
Play with this fiddle here http://jsfiddle.net/kVqWJ/
You can include css files in your html file many ways:
1)
<style type="text/css">
//your style here
</style>
2)
<link rel="stylesheet" type="text/css" href="css url here">
A quick googling will help. The Mozilla developer network is a great place to start.
I have this page, the superfish menu does not show over the google earth plugin but under!
This problem is happening in IE8 and Google Chrome.
Any Ideas?
To run the following code run it under localhost (that is the domain registered with the google earth api key)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Untitled Page</title>
<link type="text/css" rel="Stylesheet" href="http://users.tpg.com.au/j_birch/plugins/superfish/css/superfish.css" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="http://users.tpg.com.au/j_birch/plugins/superfish/js/superfish.js"></script>
<script type="text/javascript" src="https://www.google.com/jsapi?key=ABQIAAAAFoBwRF7WovCjsFJemYop1hT2yXp_ZAY8_ufC3CFXhHIE1NvwkxTpGk76aE2Yul2N6gAS9CZLeDBtuA"></script>
<script>
$(document).ready(function() {
$('ul.sf-menu').superfish();
});
var ge;
google.load("earth", "1");
function init() {
google.earth.createInstance('map3d', initCallback, failureCallback);
}
function initCallback(instance) {
ge = instance;
ge.getWindow().setVisibility(true);
}
function failureCallback(errorCode) {
}
</script>
</head>
<body onload="init()">
<ul id="sample-menu-1" class="sf-menu">
<li class="current">
menu item
<ul>
<li>
menu item
</li>
<li class="current">
menu item
</li>
</ul>
</li>
</ul>
<div id="map3d" style="width: 500px; height: 380px;"></div>
</body>
</html>
It is not possible to apply z-index layering of arbitrary HTML content on top of the Google-Earth-Plugin window. There is a long standing feature request for that functionality here:
http://code.google.com/p/earth-api-samples/issues/detail?id=9
In the comments to that request there are workarounds and demos posted involving an IFRAME shim, but that works only for iframe boxed content. Due to low-level details of how plugins work within browsers, I think it's unlikely z-index layering of arbitrary content over the plugin window will be possible anytime soon, especially across all browsers.