I want to display a certain message on a certain page.
Suppose the name of the page I want to display something on is called "foo_page.html",
How can I do this using javascript?
Since .Net 4 does support generics in XAML, I'd like to create a UserControl using generics, like:
public class MyComboBox<T>
{
}
I can declare the UserControl quite well, but how would I use it in a XAML file?
Or can't this be done in XAML?
Save PNG (etc.) work in this demo in Firefox.
Convert to PNG (etc.) work in Firefox and Chrome.
Is there a way in Chrome to save an image of a canvas element to a local file -- or to a server?
I am working with images of size 2 to 4MB. I want to edit image of resolution 1200x1600. performing scaling, traslation and rotation operations. I want to another images on that and saving it to photo album. My app is crashing(giving memory warning) after i successfully edit one image and save to album.
I have releasing some images when i get…
folks.,
i need to popup image on image hover?the image should be placed just above mouse pointer?
i tried to implement event.x,event.y.. but it is not positoning well in all browsers..?is css need to be used here or please give me javascript code..
Code sample
function Large(obj,id,e)
{
var imgbox=document.getElementById("imgbox");
…
I just need to take a certain html query object and append it to an html element a lot of times. I have this:
var box = $("<div class='box'> </div>");
$("#firstbox").after(box);
and it works fine, but it just adds one 'box' after the #firstbox element. I'd like to do something like this:
var box = $("<div…
recently I created a java class " Custom Layout Manager ", which I want to make it open-source and distribute it. So it's not really a "product", nor a "complete program".
Here's the list of permissions and specifications:
You are free to use and modify with some limitations (packages and classes names, should remain the same,…
I have a model that has an amount and I'm tracking to see if this amount is changed with a Model.amount_changed? with a before_save which works fine but when I check to see amount_was and amount_change? it only returns the updated amount not the previous amount. And all this is happening before it is save. It knows when the…
can you please help me?, i can't explain my question clearly, I define x & y ,i can write plot(f(end,y)) ,but I want to know that how can i must type this code for f(first,y)?thank you!
I trying to update a model on a callback but the validation is causing some havic and I'm controller the material getting saved so I'm looking for way to do update attributes without a validation and I would like to keep it on the update method not on validations for example :conditions =
Something like this?
…
So I'm finally starting to use rest in rails.
I want to have a select_tag with product categories and when one of the categories is selected I want it to update the products on change.
I did this before with
<% form_for :category, :url => { :action => "show" } do |f| %>
<%= select_tag :id,…
In my regex expression, I was trying to match a password between 8 and 16 character, with at least 2 of each of the following: lowercase letters, capital letters, and digits.
In my expression I have:
^((?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,16})$
But I don't understand why it…
WARNING: RubyGems 1.2+ index not found for:
RubyGems will revert to legacy indexes degrading performance.
If anyone can walk me through this problem I will give them $50.00
I've exhausted google, have reinstalled everything.
All i want to to is
gem install ...
that's it
I have asked similar question for Linux RPM (http://stackoverflow.com/questions/2132828/adding-license-agreement-in-rpm-package). Now i have same query for Solaris package. I could not get any helpful link / details if it is possible. But I have found a package which does exactly the same thing but how it…
In a web app, we're looking to display a list of sam accounts for users that are a member of a certain group. Groups could have 500 or more members in many cases and we need the page to be responsive.
With a group of about 500 members it takes 7-8 seconds to get a list of sam accounts for all members…
I'm starting to use Role Management in my website, and I'm current following along on the tutorial from http://www.asp.net/Learn/Security/tutorial-02-vb.aspx .
I'm having a problem with the asp:LoginStatus control. It is not telling me that I am currently logged in after a successful login. This…
hi, i am a php beginner and have a question for you please.
i have a text file with list of first and last names like this:
john,smith
sam,lewis
david,davidson
mike,anderson
in my sort.php file, it sorts that name list by first name in ascending order with index number, which will display like…
I am trying to develop a very simple templated custom server control that resembles GridView. Basically, I want the control to be added in the .aspx page like this:
<cc:SimpleGrid ID="SimpleGrid1" runat="server">
<TemplatedColumn>ID: <%# Eval("ID") %></…
Im having some trouble with joining two tables. This is what my two tables look like:
Table 1
Customer_ID CustomerName Add.
1000 John Smith
1001 Mike Coles
1002 Sam Carter
Table 2
Sensor_ID Location Temp CustIDFK
1000 NY …
I've been working on this for a few hours now and can't find any help on it. Basically, I'm trying to strip a SQL string into various parts (fields, from, where, having, groupBy, orderBy). I refuse to believe that I'm the first person to ever try to do this, so I'd like to ask for some…
I have created XML file called users.xml
Looks like this:
<Users>
<user>
<uin>"0012345"</uin>
<name>black</name>
<email>"bk@hotemail.com"</email>
<created>"3/02/2010"</created>
</user>
<user>…
I have an ObservableCollection that I want to bind to my listbox...
lbRosterList.ItemsSource = App.ViewModel.rosterItemsCollection;
However, in that collection I have another collection within it:
[DataMember]
public ObservableCollection<PersonDetail> ContactInfo
{
…
I just installed MySql 5.1.49, Apache 2.2.16 and PHP 5.3.3 on my Vista Home Basic. I followed the instructions in the "Sam's Teach Yourself", adding:
LoadModule php5_module C:/php/php5apache2_2.dll
PHPIniDir "C:/php/"
and
AddType application/x-httpd-php .php .html
I changed the…
Whenever I complete something in the command line while using Ubuntu and my computer does something of value to me, I enjoy saying thank you, just because it's the polite thing to do. A typical conversation might look something like this:
mtp-sendfile HamishAndyPodcast.mp3…