Hi,
i have this page.
login: [email protected]
password: m
As you can see in IE7 the selects for the age, and radio buttons are not well organized. In FF and IE8 no problem.
Any idea?
Regards
Javi
I currently have a wysiwyg iframe where the user can submit input to another area on the page. Once the iframe input is submitted, I set it to clear the content. I want to also automatically focus back into the iframe.
This is the code I currently have:
postContentClr = $("iframe#textarea1IFrame").contents().find("body")
postContentClr.html(" ").focus();
I am using jQuery, I want to check existence of an element in my page. I have done following code, but its not working?
if ($("#btext" + i) != null){
//alert($("#btext" + i).text());
$("#btext" + i).text("Branch " + i);
}
Please tell me what will be the right code?
Thanks
My URLS
the page names example: ?Contact- or ?Product-
some have a longer querystring example: ?Contact-&go=Admin
domain.com/?Contact-&go=Admin
I would like a RewriteRule to use
domain.com/Contact/Admin
thanks
I have a div tag
<div id="img"> <div>
and a script in page
<script type="text/javascript">
function img(){
document.getElementById('img').innerHTML="<a href="/lime/link.html"><img src="/lime/img.png"></a>";}
</script>
how to put the image on the div with link on pageload.
I was playing around with ASP.NET Web Parts which has a "drop down" div. It's all the way to the right of the page. When I click to bring it up, it goes off the window. Usually anything off the viewable area will trigger the bottom scrollbars. How is this possible? See screenshot: http://i42.tinypic.com/4sejww.png
I want to display a list of products horizontally in silverlight 4 page . The list of products will be obtained dynamically. Foreach product i show i need to dispaly the product image,name and its price. Please let me know if anyone had thougts on this.
I'm setting sessions. And then checking the session by another PHP page. When I login using the browser and then checking using the browser then everything is ok.
When I check the is Logged or not by calling the PHP file from a flash file then it can't find any session data.
Why is that? and how to solve it?
my primay key is user_id which is auto incremant UNSIGNED ZERO FILL, i want to display user_id on a page without leading Zero( means 1 instead of 0000000001 )..
how can we do that in php or in mysql
one more question...
if i delete last record( let user_id=21) wwhich have highest id of that table then can we adjust auto increment value to 21 instead of 22 of that table.
I'm starting out in HTML and CSS.
I have a div element on the page, which doesn't fill the whole page.
In it- there's a ul element and some list items in it.
I want to put the list 227px from the top of the div element, but I can't manage to accomplish this- it pushes it more.
Also- between the list items I want a margin of 40 pixels, but it also does more.
What's the problem?
Here's my code:
Html:
<body>
<div class="Hashta">
<div class="Menu">
<ul id="MenuItems">
<li><a href="#" >ONE</a></li>
<li><a href="#" >TWO</a></li>
<li><a href="#" >THREE</a></li>
<li><a href="#" >FOUR</a></li>
</ul>
</div>
</div>
</body>
CSS:
body {
background-color: Gray;
}
.Hashta{
width:874px;
height:650px;
background-color:black;
margin: auto auto 50px auto;
border-radius: 20px;
border: 3px solid darkgray;
moz-box-shadow: 2px 2px 10px black;
webkit-box-shadow: 2px 2px 10px black;
box-shadow: 2px 2px 10px black;
}
.Menu {
margin-top: 227px;
padding-right: 50px;
float:right;
}
#MenuItems {
list-style:none;
}
#MenuItems li {
text-align:center;
position:relative;
padding: 4px 10px 4px 10px;
margin-right:30px;
margin-bottom: 40px;
border:none;
}
#MenuItems li a{
width: 280px;
height: 70px;
background-color: green;
color:White;
font-family:Arial, Helvetica, sans-serif;
font-size:24px;
display:block;
outline:0;
text-decoration:none;
text-shadow: 1px 1px 1px #000;
line-height: 70px;
}
If you want to measure the pixels- you can install this: http://www.mioplanet.com/products/pixelruler/
(click to rotate)
Thanks!
Hello, I have no access to the httpd.conf. How can I redirect the users if the type one folder more like - http://www.example.com/folder/folder2/ -- redirect 404 to the main page.
The users should only have access to this root http://www.example.com/link+custom1+custom2/
and if they type something like that http://www.example.com/link+custom1+custom2/onemorefolder/orTwo/ -- redirect
how can I do that only with .htaccess and without php?
In the View page, code is below:
<% =Html.BeginForm("About", "Home", FormMethod.Post, new {enctype="multipart/form-data "})%>
<input type ="file" name ="postedFile" />
<input type ="submit" name ="upload" value ="Upload" />
<% Html.EndForm(); %>
In the Controller, something like this:
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult About(HttpPostedFile postedFile)
{
//but postedFile is null
View();
}
But postedFile is null, how to do it?
Hi all,
I need to extract icons from MSI package. They appear on the uninstallation page buttons. I tried to unpack using UniExtract, but the icons are missing from the output. Is there a way to extract them as well?
Thanks!
I'm looking for a good general library to grab localized labels for displaying on a web page. I've found some useful solutions at http://stackoverflow.com/questions/19295/database-backed-i18n-for-java-web-app and I will use them but I wanted to see if there was a standard library other than the fmt jstl tags that is already database backed.
Hi, i want to concatenate 2 strings in c++, i can't use char*.
I tried the following but doesn't work:
#define url L"http://domain.com"
wstring s1 = url;
wstring s2 = L"/page.html";
wstring s = s1 + s2;
LPOLESTR o = OLESTR(s);
I need a string with s1 and s2 concatenated. Any info or website that explain more about this ? Thanks.
I am building an internet site, using my local machine as the development box (I have MOSS 2007 installed).
I have a custom master page, packaged in a WSP, so I may use STSADM on the production server to install it.
I have made some pages via SPD (on my local machine) and put them in the "Pages" gallery.
What is the recommended way to get these pages to production.
Also, is the process the same when I make edits to current pages?
I have a page that I made that is going to be used for retrieving shipping rates from UPS by entering the weight and zip. Everything works fine but what I want to add to it is the ability for the user to choose something on a form and have it update the value in a different form box. I think this is done with javascript. Any suggestions will help.
We currently use a GridView to display 1000+ rows of data. Minimum requirement for replacement is a fixed header row, fixed footer and columns would be a plus.
This would have to work across IE 6 and greater.
I've heard good things about Infragistics, but the demo on their page is slow.
So what are my best options? jQuery? YUI? other 3rd party?
Hey, I know that when a user selects a Video I do get a URL for the video.... but can you direct me to a proper implementation because my App just sticks there when I click choose in the simulator and I cannot navigate away from the Video Player page....
Any good tutorial on this?
I am new to Solr and we are using Spring-data for Solr
I have a question may be its too simple but I am unable to comprehend.
Basically I need to search on any field but I have a "zip" field as one of the facet fields.
I have a Solr repository . (Am not sure if the annotations on the Repository are correct.)
public interface MyRepository extends SolrCrudRepository<MyPOJO, String> {
@Query(value = "*:*")
@Facet(fields={"zip"})
public FacetPage<MyPOJO> findByQueryandAnno(String searchTerm,Pageable page);
}
In my Service class I am trying to call this methods by Injecting MyRepository like below
public class MyService {
@Inject
MyRepository solrRepo;
@Inject
SolrTemplate solrTemplate;
public FacetPage<MyPOJO> tryFacets(String searchString){
//Here is where I am struggling
SimpleFacetQuery query =
new SimpleQuery(new SimpleStringCriteria(searchString));
query.setFacetOptions(new FacetOptions("zip"));
//Not sure how to get the Pageable object.
//But the repository doesnt accept without it.
return solrTemplate.queryForPage(query,{Pageable Instance to be passed here})
}
From my jUnit I am loading context files needed for Solr and Spring
//In jUnit the test method looks like this
service.tryFacets("some value");
and it fails with - method not found in the service class at the call to the repository method.
*********EDIT****************
As per ChristophStrobl's advice created a copyfield called multivaluedCopyField and the searchString argument works good. But the facet still isnt working...Now my code looks like this. I get the MyPOJO object as response but the facetcount and the faceted values are missing.
public interface MyRepository extends SolrCrudRepository<MyPOJO, String> {
@Query(value = "*:*")
@Facet(fields={"zip"})
public FacetPage<MyPOJO> findByQueryandAnno(String searchTerm,Pageable page);
}
My service class looks like
public class MyService {
@Inject
MyRepository solrRepo;
public FacetPage<MyPOJO> tryFacets(String searchString){
//Here is where I am struggling
SimpleFacetQuery query =
new SimpleQuery(new SimpleStringCriteria(searchString)).setPageRequest new
PageRequest(0,5));
query.setFacetOptions(new FacetOptions("zip"));
FacetPage<MyPOJO> facetedPOJO=
solrRepo.findByQueryandAnno(searchString,query.getPageRequest());
return facetedPOJO;
}
My jUnit method call is like
service.tryFacets("some value");
I have being using this actionbarsherlok to give some nice style to my app. My doubt is that i can test ABS: fragment code, but i want to check out ABS: Demos code. Is it possible? i cant find it on .zip or web page, just the .apk
em i missing something?
in case we can not look that code, is there a good repository where they teach the way to implement the new tabs that android want us to use (3.0+++)?
I'm attempting to embed an HTML5 audio element pointing to MP3 or OGG data served by a PHP file . When I view the page in Safari, the controls appear, but the UI says "Live Broadcast." When I click play, the audio starts as expected. Once it ends, however, I can't start it playing again by clicking play. Even using the JS API on the audio element and setting currentTime to 0 fails with an index error exception.
I suspected the headers from the PHP script were the problem, particularly missing a content length. But that's not the case. The response headers include a proper Content- Length to indicate the audio has finite size. Furthermore, everything works as expected in Firefox 3.5+. I can click play on the audio element multiple times to hear the sound replay.
If I remove the PHP script from the equation and serve up a static copy of the MP3 file, everything works fine in Safari.
Does this mean Safari is treating audio src URLs with query parameters differently than URLs that don't have them? Anyone have any luck getting this to work?
My simple example page is:
<!DOCTYPE html>
<html>
<head></head>
<body>
<audio controls autobuffer>
<source src="say.php?text=this%20is%20a%20test&format=.ogg" />
<source src="say.php?text=this%20is%20a%20test&format=.mp3" />
</audio>
</body>
</html>
HTTP Headers from PHP script:
HTTP/1.x 200 OK
Date: Sun, 03 Jan 2010 15:39:34 GMT
Server: Apache
X-Powered-By: PHP/5.2.10
Content-Length: 8993
Keep-Alive: timeout=2, max=98
Connection: Keep-Alive
Content-Type: audio/mpeg
HTTP Headers from direct file access:
HTTP/1.x 200 OK
Date: Sun, 03 Jan 2010 20:06:59 GMT
Server: Apache
Last-Modified: Sun, 03 Jan 2010 03:20:02 GMT
Etag: "a404b-c3f-47c3a14937c80"
Accept-Ranges: bytes
Content-Length: 8993
Keep-Alive: timeout=2, max=100
Connection: Keep-Alive
Content-Type: audio/mpeg
I tried hard-coding the Accept-Ranges header into the script too, but no luck.
Please tell me how can i show symbols like "lamada" or Mu using c#.net in desktop application. what i think is we may do it useing ASCII values and convert.toChar();.. if i am right that please give me link of page where i can get ASCII values of all such a sciencetific symbols.
Hi,
I am working on an asp.net web application where I would like to show the user how much Data, time and bandwidth speed (effective) was available to the user when he is downloading a certain page of my application.
This info is to be displayed at the status bar.
Any help is deeply appreciated.
Thanks & Rgards,
Hari
Hello,
I have a simple problem on .xhtml page. This expression is not working :-
<a href="Photos.jsf?albumId=#{item.albumId}&blogId=#{PhotoAlbumsCommonBean.blogId}">
photos
</a>
I get this error :-
Error Parsing /Common/PhotoAlbums.xhtml: Error Traced[line: 20] The reference to entity "blogId" must end with the ';' delimiter.
& is causing some kind of error. Thanks in advance :)