Windows Phone 7 uses Silverlight as one of its "native" development APIs. But does the Windows Phone 7 version of Internet Explorer support Silverlight as a plugin so you can view web-hosted Silverlight content?
I'm trying to convert a asp.net website to asp.net web application. I need to change the build action for every file from "content" to "compile". How can i do this site width. I have a too many files to do this manually.
Trying to use regex refind tag to find the content within the brackets in this example using coldfusion
joe smith <[email protected]>
The resulting text should be
[email protected]
Not having any luck. Any suggestions?
Hi
For my iPhone application I need to read some content of a plain html file on the web. It's just some text within a pre-tag. However I don't want to download the whole file and then get the line I need.
The format is:
TextTextTextTextTextTextTextText
TextTextTextTextTextTextTextText
TextTextTextTextTextTextTextText
TextTextTextTextTextTextTextText
I only need the first line and then close the connection to that resource.
Thanks in advance.
Hi ,
I am switching content template of a ListViewItem at run mode to enable editting the item.For that i am showing a panel with Ok and Cancel options and i need the user to select any of those option before moving to anotheritem. Means i want that panel to behave like a modal dialog.
Any suggestions ?.
Advanced Thanks,
Das
I have an ASP.Net website which uses a MySQL database for the back end. The website is an English e-commerce system, and we are looking at the possibility of translating it into about five other languages (French, Spanish etc). We will be getting human translators to perform the translation - we've looked at automated services but these aren't good enough.
The static text on the site (e.g. headings, buttons etc) can easily be served up in multiple languages via .Net's built in localization features (resx files etc).
The thing that I'm not so sure about it how best to store and retrieve the multi-language content in the database. For example, there is a products table that includes these fields...
productId (int)
categoryId (int)
title (varchar)
summary (varchar)
description (text)
features (text)
The title, summary, description and features text would need to be available in all the different languages.
Here are the two options that I've come up with...
Create additional field for each language
For example we could have titleEn, titleFr, titleEs etc for all the languages, and repeat this for all text columns. We would then adapt our code to use the appropriate field depending on the language selected. This feels a bit hacky, and also would lead to some very large tables. Also, if we wanted to add additional languages in the future it would be time consuming to add even more columns.
Use a lookup table
We could create a new table with the following format...
textId | languageId | content
-------------------------------
10 | EN | Car
10 | FR | Voiture
10 | ES | Coche
11 | EN | Bike
11 | FR | Vélo
We'd then adapt our products table to reference the appropriate textId for the title, summary, description and features instead of having the text stored in the product table. This seems much more elegant, but I can't think of a simple way of getting this data out of the database and onto the page without using complex SQL statements. Of course adding new languages in the future would be very simple compared to the previous option.
I'd be very grateful for any suggestions about the best way to achieve this! Is there any "best practice" guidance out there? Has anyone done this before?
Hi there,
I have some styling based on the primary links active class. I would like to set the class of a link in the primary links to active (<a class="active"...>) based on either the content type or the path.
I have already done some research on this but haven't yet seen anything that seems to match my query.
Would be grateful for any help.
Ben
I have a webpage with a static CSS background, but the content is longer than the height of the image. This causes whitespace at the bottom after the image ends. How can I make the image scroll along with the view of the user's screen?
Thanks in advance!
Here is the div element on my page:
How can I change a class's content?
So from existing which is: class="jcarousel-next jcarousel-next-horizontal"
to class="jcarousel-next jcarousel-next-horizontal jcarousel-next-
disabled jcarousel-next-disabled-horizontal"
Do I need to completely remove it by using removeClass and then re-add?
To get a list of a content type's cck fields, I was hoping to use:
drupal_get_schema('content_type_mycontenttype');
but that leaves out fields with multiple values. Is there a simple call to use to get such a list?
I have a frame and I want to dynamically add content to it with javascript or jquery but I can't do something like $('#myframe').html() like I could for a DIV. Is this possible?
[DllImport("user32.dll")]
public static extern int SetScrollPos(IntPtr hWnd, int nBar, int nPos, bool bRedraw);
[DllImport("user32.dll", CharSet = System.Runtime.InteropServices.CharSet.Auto)]
public static extern int GetScrollPos(int hWnd, int nBar);
So those are the externs im using to move the scroll position, what im doing, is i get the current position, and add or substract an exact amount of pixels, and the scroll bar on my form moves perfectly how i want it, but the content in the control stays stationary. What is the problem here?
I use WebClient from System.Net Namespace of Visual Studio 2008 to download the HTML content.
It done well with normal website but with some 4rum that require authorization such as warez-bb.org, it always return the HTML of the login page.
I wonder if there is a way to send the username and password to the WebClient?
Hello,
I Jquery, one can attach/register an event for dynamic content( which loaded later, through ajax) through live() method. Is there anything similar in YUI
thanks.
I am loading HTML page through ajax and then doing a bunch of searches using selectors:
$.ajax({
...
dataType: "html",
success: function(html) {
$("#id1", html);
$(".class", html);
//...
}
}
Should I extract $(html) into a variable and use it as a content, or it doesn't matter (from performance point)?
success: function(html) {
$html = $(html);
$("#id1", $html);
$(".class", $html);
//...
}
Without accessing private API's to get Content URI's, etc. for SMS, how are we expected to query this data? I am currently in the process of writing my own SMS app and I want to stay as compatible as possible. Without storing the information myself in my own database (such that I can store the text messages so that other programs can access the data when/if they delete my app) and without using private API's how the heck are we suppose to query SMS data?
If I have 2 files each with this:
Hello World (x 1000)
Does that take up more space than 1 file with this:
Hello World (x 2000)
What are the drawbacks of dividing content into multiple smaller files (assuming there's reason to divide them into more files, not like this example)?
Hi,
how can i stop accessing my website content [like image,swf,pages etc.] from other domain?
suppose my server has a myflash.swf file in my server with live url http://www.mydomain.com/flash/myflash.swf . i want this flash can't be accased by any other domain using the live url. is it possable?
thanks in advance.
hi i got list of warning regarding file size when i try to upload an image using file upload.
"POST Content-Length of 12223490 bytes exceeds the limit of 8388608 bytes in Unknown on line 0"
My question is how to avoid displaying warning messages (i got 5 warnings).
My application is supposed to be a single page application and I have the following code that works fine:
home.php:
<div id="container">
</div>
accordion.php:
//Click functions: load content
$('#parents').click(function(){
//Load parent in container
$('#container').load('http://www.blabla.com/entities/parents/parents.php');
});
parents.php:
<div class="entity_wrapper">
Some divs and selectors
</div>
<script type="text/javascript">
$(document).ready(function(){
//Some jQuery / javascript
});
</script>
So the content loads fine, while the scripts dynamically loaded execute fine as well.
I apply this system repetitively and it continues to work smoothly.
I've seen that there are a lot of frameworks available on SPA's (such as backbone.js) but I don't understand why I need them if this works fine.
From the backbone.js website:
When working on a web application that involves a lot of JavaScript,
one of the first things you learn is to stop tying your data to the
DOM. It's all too easy to create JavaScript applications that end up
as tangled piles of jQuery selectors and callbacks, all trying
frantically to keep data in sync between the HTML UI, your JavaScript
logic, and the database on your server. For rich client-side
applications, a more structured approach is often helpful.
Well, I totally don't have the feeling that I'm going through the stuff they mention.
Adding the javascript per page works really well for me.
They are html containers with clear scope and the javascript is just related to that part.
More over, the front end doesn't do that much, most of the logic is managed based on Ajax calls to external PHP scripts. Sometimes the js can be a bit more extended for some functionalities, but all just loads as smooth in less than a second.
If you think that this is bad coding, please tell me why I cannot do this and more importantly, what is the alternative I should apply. At the moment, I really don't see a reason on why I would change this approach as it just works too well.
I'm kinda stuck on this question because it just worries me sick as it seems to easy to be true. Why would people go through hard times if it would be as easy as this...
Assume a web page that returns binary content:
http://localhost/website/Default.aspx?FileId=value
and we have some files with known Ids and checksums (i.e. MD5).
How it's possible to extract whole response and calculate it's check-sum via some visual studio webtest ?
I want to take a backup of my existing site and restore it on a different Sharepoint server. I know its easily possible through stsadm backup restore. But I dont want the content of my lists to appear in the restored sites. Is there any way to achieve this using backup or export command????
Hi,
I query "content//sms/" and don't know what some fields are. They are -
Thread ID
Protocol
Status
Reply_Path_Present
Service_Center
I check them in LogCat. I find them like below
Thread ID : 1 to 6 etc..
Protocol : null / 0
Status : -1
Reply_Path_Present : null / 0
Service_Center : null
Please tell me what they are.
I have an li navigation with dividers created using the code shown below. I'd like to have two of these | elements but different colours, is it possible to define different colours for both?
#navigation li:before {
content: "|";
color: #800836;
}
I'd like another but with #F2659A and right next to the existing.
Here is the live url to see how things look right now:
http://www.jordancharters.co.uk/nakedradish/