Set default navigation page to xaml in a library in WP8 - windows-phone-8

My default page is in a library. How do I point this field to it?

Edit the XML code of your WMAppManifest.xml and replace the property NavigationPage of the following line:
<DefaultTask Name="_default" NavigationPage="MainPage.xaml" />
to:
{assemblyName};component/{pathToResource}
where the assemblyName is the name of the assembly of the page you want to navigate to, and pathToResource is the path (inside that project) to the page you want to navigate to.

Related

custom list.phtml template is not used on search result page[magento]

Product/category listing page uses my custom template. But when I search products. Results are displayed in default list.phtml template.
How to tell Magento to use my [list.phtml] template for result page too.
go to catalogsearch.xml in your theme layout folder.(If xml not found, copy the xml file from base/default/layout to your theme layout folder).Then
find <catalogsearch_result_index translate="label">
find inside
<block type="catalog/product_list" name="search_result_list" template="catalog/product/list.phtml">
Replace your template path instead of catalog/product/list.phtml
Hope this helps

How to hide some paths while browsing using the XType browsefield?

In my component dialog, I use browsefield XType to enable the user to browse through the page tree and select a page:
<page jcr:primaryType="cq:Widget"
fieldLabel="Page"
name="./path"
xtype="browsefield" />
At the same time, I would like to make some pages are invisible. Suppose I have the following structure:
pages/
page1/
page1_1/
page1_2/
How do I make pages/page1/page1_2 invisible, so that nobody can select it when he browses through the page tree?
browsefield is a deprecated xtype, it's replacement the pathfield has this feature. Pathfield has a property called predicate which can be used for filtering. You can create and register a custom predicate that returns false for the paths you don't want to be visible in the the dialog. The name of the custom predicate can then be passed to the config of pathfield.
You can find a detailed tutorial on this here : http://www.albertoalmagro.com/2013/05/adobe-cq5-create-predicate-pathfield.html
For more on predicates, the following links can be referred :
http://www.wemblog.com/2013/04/how-to-create-custom-query-predicate-in.html
http://labs.sixdimensions.com/blog/2013-07-10/custom-predicateevaluators-or-how-i-learned-stop-worrying-and-love/

Accessing "test.html" page from the browser at the following url http://mysharepointservername.com/test.html

Which directory should I use to place test.html to access it via the browser by using the following url:
http://mysharepointservername.com/test.html ?
If I place the file to C:\inetpub\wwwroot\wss\VirtualDirectories\80 , I get 404 not found error.
Is there another directory I should use to place test.html?
Thank you in advance
You can create a module in sharepoint and place test.html under that module.
And in elements.xml write:
Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Module Name="CustomPage" Url="">
<File Url="CustomPage\test.html" Name="test.html" Type="Ghostable" />
</Module>
</Elements>
And deploy this module using feature.
In this way you can access the page with http://mysharepointservername.com/test.html

Open generated Web Page with WebBrowser object in VB

I'd like to know if it possible to show HTML page created in VB using WebBrowser object without using files on disk.
That is, create HTML file in memory and show it within WebBrowser object.
Thanks!
Using Visual Basic in .Net Framework...
webBrowser1.DocumentText = "<html><body><a href='http://www.mywebsite.com'>My Web Site</a></body></html>"
In old Visual Basic 6, try...
WebBrowser1.Document.Open
WebBrowser1.Document.Write "<html><body><a href='http://www.mywebsite.com'>My Web Site</a></body></html>"
WebBrowser1.Document.Close
First wait for the DocumentComplete event (navigate to about:blank if you start from scratch), then use the document's IPersistMoniker (recommended if you want to provide a base url) or IPersistStreamInit interface to load HTML content.
You can find an example (the LoadHtmlIntoBrowser method) in the csexwb project.
Well, I've found the solution. It's not so complicated.
The solution is to run from the VB:
*
WebBrowserObject.Navigate "about:HTML TEXT"
It works, I've checked it.

how to set default location in browse tag

Am doing project in j2ee.I use Browse button. I need to fetch images/files from a folder inside my project folder, everytime.I wish to set my project's folder name as a default location for my browse button.How to do that?
am using tis following code in a jsp page:
and calling the value in servlet :
String image= (String) request.getParameter("img");
while browsing ,the whole path is getting displayed but only the name of the image is passing as value in the sevlet.How to get the entire path? or how to set my project folder as default location while browsing?
If this is rendering a standard
<input type="file".../>
Then you have no control over the default directory.
Using flash gains you a bit more control (filetype preset, single/multiple file selection etc.)
I'm not sure if Java Applets have more access/options, hopefully someone can advise.
PS. for the standard input tag, the browser will remember the last location you used, so you only need to navigate once, if you are uploading several files from the same directory.
I actually solved this problem with an interesting trick. Here's how...
Create an external vbscript include file called vbshelper.inc which contains the following code:
function stuffKeys(x)
Set wshShell = CreateObject("WScript.Shell")
wshShell.Sendkeys(x)
end function
Inside your HTML code header, place the following line as your first < Script> element...
< Script type="text/VBScript src="vbshelper.inc">
later, in your HTML code, create the button like this...
< input type="File" id="srcFile" onchange="go_do_something()" onclick="stuffkeys(' C:\Temp\*.txt~')">
Note the space before the C in ' C:\Temp*.txt~' and the tilde ~ after the .txt.