I was building something using jQuery's AutoComplete plugin last week, but today I found that it's not working.
After some debugging, it seems that the external scripts I've been loading no longer exist:
http://dev.jquery.com/view/trunk/plugins/autocomplete/lib/jquery.bgiframe.min.js
http://dev.jquery.com/view/trunk/plugins/autocomplete/lib/jquery.dimensions.js
http://dev.jquery.com/view/trunk/plugins/autocomplete/jquery.autocomplete.js
Even the demo on the plugin page no longer works:
http://docs.jquery.com/Plugins/autocomplete
Was the plugin deprecated over the weekend and I didn't know it? Or is there some way to let them know that the files aren't showing up?
Here's a link to the static delivery on the google CDN:
http://code.google.com/apis/libraries/
I'm not sure they do the plugins, but you can get the main library this way.
Here are some quick links to get your missing scripts:
http://docs.jquery.com/Plugins/bgiframe
http://plugins.jquery.com/project/dimensions
http://docs.jquery.com/Plugins/autocomplete
Like #Paddy said in the comments above, I would HIGHLY recommend pulling these down into your project and creating local references to each instead of relying on the FQDN of the scripts on another host to remain unchanged forever.
UPDATE:
Note that I myself have noticed some downloads going missing recently on jquery.com, so you may have trouble finding the downloads. If so, I would recommend checking if google's cache has a hard link to them - I've been able to find a couple this way.
Related
I have a C# Windows Store App with a WebView which loads some local HTML. I do this via the NavigateToString method. I want to include jQuery but so far the only way I can get this to work is either using the ajax hosted libraries or pasting the entire library into a script tag on the same page.
I've tried putting it in the Assets folder, ensuring that its set to Content / Copy If Newer, and I've tried the following paths to it with no success
Assets/jquery-2.1.0.min.js
/Assets/jquery-2.1.0.min.js
./Assets/jquery-2.1.0.min.js
~/Assets/jquery-2.1.0.min.js
ms-appx:///Assets/jquery-2.1.0.min.js
I've tried putting it in a /js subfolder in the app, as I've seen this done in some examples online. I've also tried adding JQuery through NuGet. Neither of these steps really made sense to me and they obviously didn't work, but I thought they were worth a try.
As usual, I got the inspiration to try one more thing while finishing up my StackOverflow question. This works:
ms-appx-web:///Assets/jquery-2.1.0.min.js
This URI Scheme ms-appx-web is mentioned in this msdn post, but it doesn't explicitly state in which cases it should be used over ms-appx:. I guess accessing local resources from a WebView is one of those cases.
I get the feeling that this question is either too basic or too complex to be covered by any documentation on pushSharp. But how exactly do I incorporate it into my project. I am used to Java/php, etc and have never really looked at C# before. I have been reading whatever I can find but am not really sure what I should be looking at.
I have an ashx file that is handling my ajax calls and is currently using the example code from http://www.codeproject.com/Tips/434338/Android-GCM-Push-Notification to send push notifications. I would really like to incorporate pushSharp so that I can do this for ios and windows as well but am feeling a bit lost as to how to do this.
With Java I would compile the library as a jar and include that in a project. Would I do the same here by compiling the whole pushsharp project as a dll or each folder (android/ios etc) or have I got this completely wrong? Any suggestions, or pointing me to the relevant tutorials/documentation would be greatly appreciated.
Thanks #k3b did some research on this without considering pushsharp as being any different and got it resolved. thanks.
Using ASP.NET 4.0, IIS 7.5.
I have a website engine, I have just implemented a way for this to tell if it's being loaded on mobile and instead of loading Controls\MyControl.ascx it loads Mobile\Controls\MyControl.ascx. This works well for my controls and also my MasterPage.Master file.
What I can't figure out however is how I can do the same with Default.aspx. This needs to be done on the fly programatically as I need to be able to check if it's mobile version. I was thinking of doing something on a pre-init event in globals but not sure if that's the best way.
Note: I don't want to use inline code on Default.aspx and just display different content base on my Mobile flag as my scenario goes one step further by basing the file on customer as well and this would mean having one huge Default.aspx for all customers which wouldn't be manageable.
Changing the default document on the fly is not possible in any practical sense.
Writing to the web.config on the fly to load a mobile version of a default page is quite frankly terrible and not an answer to the true context of your issue. I would feel irresponsible as a developer if I even proposed this as an answer to loading a mobile version of a default page.
I was trying to help you solve your problem and not just answer the base question in the title. As we all know, changing the web.config will restart your application and would not serve as a true solution, as you could not do this and achieve any kind of performance.
Here is the BEST alternative (IMHO) to dealing with mobile browsers.
http://51degrees.codeplex.com/
HTH!
For anyone else looking at this I have found a solution but I am not sure I will implement it as I don't like the idea of updating the web.config file at run time. Using the Microsoft.Web.Administration namespace you can update the server.webServer -> defaultDocument section programmatically. Doing this allows you to change the path to default.aspx and it will load based on the variables you set.
This link should provide more information: http://blogs.msdn.com/b/saurabh_singh/archive/2007/11/24/accessing-iis-7-0-features-programmatically-from-configuration-file-s-c.aspx
Also, the Microsoft.Web.Administration dll isn't available directly in VS so you need to add it from %windir%\syswow64\inetsrv (64bit version).
I'm trying to get into the Amazon advertizing API to use with one of my apps. I heard recently that there were changes and needed an AssociateTag (broughtin from the affiliate program)
After using samples from this link
http://aws.amazon.com/code/2480?_encoding=UTF8&queryArg=searchQuery&x=0&fromSearch=1&y=0&searchPath=code&searchQuery=Advertising
and
http://flyingpies.wordpress.com/2009/08/13/signing-amazon-product-advertising-api-cwcf-part-2/
I can't seem to use those samples anymore. after some digging online I found that I was supposed to add an AssociateTag to the itemSource request variable, but I created a dummy login to facilitate that andthe output is pretty much the same. can anyone help me with this?
I had the exact same issue as I based my application on the flyingpies.wordpress example and couldn't get it to work by adding in the Associate Tag Id and the latest web service>
I downloaded this example:
http://aws.amazon.com/code/Product-Advertising-API/2481
And made some small changes and got it all working...
The main one changing the namespace to:
http://webservices.amazon.com/AWSECommerceService/2011-08-01
Throughout all the code......
I think I may have updated the code in a couple of other places and can help you if these errors occur..
Background info: 2 semesters of C#(WinForms), plenty of HTML/CSS skill, brand new to asp.net.
I'm building a site for a friend who's a photographer. It's just a gallery site, but he'd like to be able to update the galleries himself and he's not tech savvy in the least. So I'm using the following approach to the problem:
Using ASP.NET 4 WebForms:
I'm using System.IO to get the names of the folders which represent the "Galleries" and populating a TreeView control for navigation.
When a "Gallery" is selected, I have code that builds a (HTML)list of the image files and populates an UpdatePanel with this list.
As this is all based on the folders/files, I'm building him an secure admin page to upload files to new or existing galleries(folders). He'll also be able to edit(move/delete) the existing files from there.
I got it all to work, which was a nice little victory, but I'm realizing this approach is not optimal, as none of the unique galleries are findable via search engine or even URL; the SEO value is nill; the browser back/forward buttons are useless...
Can you guys/gals recommend a better way to go about this?
Is there a way to modify what I've already done to optimize the project?
I'll gladly start over to do this right.
Thanks
Couple of suggestions, if you are doing this for fun - and want to learn something, consider using ASP.Net MVC instead. Both will work, but doing it with MVC will give you more up-to-date and marketable skills.
Second, unless you really want to write the whole thing from scratch, consider using a package to do most of what you want and then customize it.
Something like this would work quite well: http://www.galleryserverpro.com/ and is open source, free/cheap and well supported.
SInce you are new to asp.net, you can learn a lot by picking thru the open source code and seeing how other people with more experience have already solved the very same issues.
When a "Gallery" is selected, I have
code that builds a (HTML)list of the
image files and populates an
UpdatePanel with this list.
Well, most of your problem is sitting inside this sentence. get rid of the UpdatePanel. When you are making ajax request, you are not able to allow browser history. so SEO, back/forward nav. buttons are always issue with updatepanel.
http://ajaxhistory.com/