I second Lens suggestion about using a combination of a .NET library (a dll-file), base and ajax. There's a more expanded explanation on umbraco /base in the wiki here:
At the moment in time i think i may have solved the issue using user-controls. Not a great way but i need to explore it a bit more. However thanks for the suggestions and the reference, I will know by the end of the day if i can achieve it my way or not so fingers crossed i guess!
Ok, my method is terrible, i get so got so far and suddenly realised "how am i going to load the nodes"
I hate to keep asking for help as i dont want to annoy but if someone could point me in the direction of what i should be coding it will be much appreiciated!
I have done the introduction and created the hello world but i dont see how this could solve my problem. Apologies for my naievity.
public static XPathNodeIterator getAllNodes(int startnode, int uptolevel, string documenttypealias){ code goes here ...}
The method above should return a list of all nodes starting from a certain node, down to a certain level and show only those nodes with a specific documenttype.
I've used jQuery/AJAX to make calls to pages in Umbraco that load HTML-content snippets and inserts them into the current page without reloading the page. Take a look at:
If you click on any of the headlines with the orange icons, the content that is "dropped down" is loaded from Umbraco using jQuery/AJAX. In Umbraco I use an XSLT- script to generate the HTML-code that is served. An example of a page that serves a particular snippet of code is found here:
New to Umbraco, hopefully I'm just missing something, and someone can help me out.
Using the admin backend, I get javascript errors on every CWS stylesheet opened up. Error is "sys is undefined". When I edit stylesheets, I get the following error upon saving: 'Umbraco is undefined". I can, however, make changes through FTP.
I'm using IE8, Vista, Umbraco 4.0.4.2, runway was installed before adding CWS.
Javascript
This is an extension of my last thread.
Is it possible to call xsl macros while using javascript?
If not what can i use instead to create a collection of states on one page showing different nodes?
Cheers
Alec
* xslt macros works on server, javascript on client.
* macros can create javascript, or hidden fields which can be used by js
I read your previous post, and I think what you need is a combination of an ASP.net library, base, and ajax calls.
Base allows you to call methods from a DLL, where the path of the URL is converted to variables, like this:
http://www.yourdomain.com/base/namespace/methodname/variable1/variable2.aspx
Here is an example from my project:
http://www.mydomain.com/base/ws/deletenote/1015.aspx
where ws is the namespace in the DLL, deletenote a method that takes 1 argument: the ID of the database row or the note ID which is 1015 in this case.
Here is more information on base: http://umbraco.org/documentation/books/introduction-to-base
And my project which is relying on base: http://our.umbraco.org/projects/webstickies
I second Lens suggestion about using a combination of a .NET library (a dll-file), base and ajax. There's a more expanded explanation on umbraco /base in the wiki here:
http://our.umbraco.org/wiki/reference/umbraco-base
Regards
Jesper Hauge
Thanks for the replies!
At the moment in time i think i may have solved the issue using user-controls. Not a great way but i need to explore it a bit more. However thanks for the suggestions and the reference, I will know by the end of the day if i can achieve it my way or not so fingers crossed i guess!
+1 for both, useful references ftw!
Alec
Ok, my method is terrible, i get so got so far and suddenly realised "how am i going to load the nodes"
I hate to keep asking for help as i dont want to annoy but if someone could point me in the direction of what i should be coding it will be much appreiciated!
I have done the introduction and created the hello world but i dont see how this could solve my problem. Apologies for my naievity.
Alec
Hi,
A combination of jquery and a .net library would work well to load nodes, you could even get this with XSLT.
* Create your library of methods you plan to call (getAllNotes for example?), example library for base can be found here: http://webstickies.svn.beanstalkapp.com/webstickies/trunk/WebStickies/webstickies/baseLibrary.cs
* Enable base: http://umbraco.org/documentation/books/introduction-to-base/simple-base-samples
* Load jQuery in your pages and start building and calling the URLs with Ajax calls:
The resulting XMl, or text can be parsed with jQuery, or you can write your own javascript functions.
* You can test base by loading the URL in a browser: http://mydomain.com/base/superman/getAllNodes/startnodes/uptolevel/documenttypealias.aspx
the method would accept the following arguments:
The method above should return a list of all nodes starting from a certain node, down to a certain level and show only those nodes with a specific documenttype.
Hope this clearer,
Len.
Hi,
Thank you very much Len. I'm sorry you had to go out of your way to help a newbie but it really is appreicated! I shall let you know how it goes!
Many thanks,
Alec
+1 for awesome help!
I've used jQuery/AJAX to make calls to pages in Umbraco that load HTML-content snippets and inserts them into the current page without reloading the page. Take a look at:
http://www.arosarkitekter.se/sv/arkitektur
If you click on any of the headlines with the orange icons, the content that is "dropped down" is loaded from Umbraco using jQuery/AJAX. In Umbraco I use an XSLT- script to generate the HTML-code that is served. An example of a page that serves a particular snippet of code is found here:
http://www.arosarkitekter.se/sv/arkitektur/bad-och-idrott
These HTML-snippet serving pages don't take any arguments, but you could easily pass parameters via jQuery/AJAX:
Parameters are passed as name/value pairs (name and id with the values "John" and "100").
Please ignore this if I my answer is totally out of context - I haven't followed the discussion in the previous thread you mention.
/Thomas Kahn
New to Umbraco, hopefully I'm just missing something, and someone can help me out.
Using the admin backend, I get javascript errors on every CWS stylesheet opened up. Error is "sys is undefined". When I edit stylesheets, I get the following error upon saving: 'Umbraco is undefined". I can, however, make changes through FTP.
I'm using IE8, Vista, Umbraco 4.0.4.2, runway was installed before adding CWS.
Thanks, Douglas
is working on a reply...